Skip to content

Feature/two row view#882

Open
waldemar-p wants to merge 3 commits into
ransome1:mainfrom
waldemar-p:feature/two-row-view
Open

Feature/two row view#882
waldemar-p wants to merge 3 commits into
ransome1:mainfrom
waldemar-p:feature/two-row-view

Conversation

@waldemar-p

Copy link
Copy Markdown

This branch introduces an optional two-row view for displaying todos, where badges (due dates, projects, contexts, etc.) appear on a second row below the todo text.

  • Adds a multiLineView setting with automatic migration for existing users
  • Adds a settings UI toggle to enable/disable the two-row view
  • When enabled, badge patterns are cleaned from the todo body text and rendered in a dedicated row-badges container
  • Includes localized labels for all supported languages

- Add multiLineView setting with migration from older versions
- Add settings UI toggle for two-row view
- Implement badge rendering in separate row below todo text
- Clean badge patterns from todo body text in multiLineView mode
- Add localized setting labels for all supported languages
- Add CSS layout for row-text and row-badges in multiLineView mode
- Wrap row content in flex container for better alignment
- Override ReactMarkdown paragraph rendering to prevent extra spacing
- Adjust row padding and alignment for multiLineView mode
- Add gap between row elements for consistent spacing
- Simplify badge pattern matching by reusing existing expressions array
- Consolidate date badge rendering (due/t) into single loop
- Consolidate list badge rendering (projects/contexts) into single loop
- Remove redundant badgeIndex tracking in favor of semantic keys
- Simplify paragraph component override in multiLineComponents
- Extract multiLineView from settings destructuring for consistency
- Fix migration to always set multiLineView to false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

1 participant