Skip to content

Conversation

@Deep-Analyzer
Copy link

Implemented functionalities:

  1. Introduce the 'item-collapse' setting to manage card states: collapsed (hidden metadata, encoded as true), expanded (visible metadata, encoded as false), or undefined (no metadata attached, encoded as null).
  2. Add a 'Show/Hide Metadata' button (chevron down or chevron right icon) to each card with metadata, allowing users to control metadata visibility.
  3. Add a 'Show/Hide Metadata' button in the board's tab menu to control metadata visibility for the entire board. A new setting under 'Board Header Buttons' allows users to disable this feature (hide the button). Implemented behavior:
    • if no cards have metadata, the button click is ignored;
    • if all cards with metadata are either collapsed or expanded, the button toggles their state (make them all expanded or collapsed);
    • if some cards are collapsed and others expanded, clicking the button will collapse all of them.

Merging this PR will close issue #445 ([Feature] Meta Data Toggle Button to Show or Hide), also listed under the Todo section on the Obsidian Kanban Roadmap.

Example screenshots:
Screenshot from 2024-08-14 01-43-58

Screenshot from 2024-08-14 01-48-37

Screenshot from 2024-08-14 01-49-19

Screenshot from 2024-08-14 01-49-33

… (collapsed vs expanded, i.e., hiding or showing metadata). 2) Add a button to the card component to toggle its state.
…d, expanded, or undefined (when no metadata is attached), and thus, fix the behavior of the 'Show/Hide metadata' button. 2. Ensure items' state changes are correctly handled in previously missed cases, such as when board settings or linked page metadata are updated.
…issing to load older Kanban boards without metadata visibility control.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant