Skip to content

feat: functional smart cards and extended task properties - #10

Open
risingwolf21 wants to merge 1 commit into
productionfrom
claude/smart-cards-extended-tasks
Open

feat: functional smart cards and extended task properties#10
risingwolf21 wants to merge 1 commit into
productionfrom
claude/smart-cards-extended-tasks

Conversation

@risingwolf21

Copy link
Copy Markdown
Owner

Summary

  • Functional smart cards — Due Today, Planned, All, Done load tasks from all databases in parallel (useAllTasks hook) and show live counts. Clicking opens a new SmartListView with cross-database filtered tasks (toggle/delete works per task)
  • Reminders card — navigates directly to the database named "Reminders" if one exists; greyed out otherwise
  • Marked / Urgent — kept visual but greyed out (no Notion property convention set up yet)
  • Extended task model — tasks now carry description, dueTime, location, and tags; auto-detected from Notion properties by common names (e.g. "Description", "Notes", "Location", "Tags")
  • AddTaskRow — date + time pickers side by side; "Add details" expands to show description, location, tags fields (only shown when the database has those properties)
  • TaskItem — renders description, date+time badge with clock icon, location badge with pin icon, and tag chips inline

How properties are detected

Field Notion property type Names matched
Description rich_text Description, Notes, Note, Details
Location rich_text Location, Place, Address
Tags multi_select Tags, Tag, Labels, Label, Category…
Due time part of date property (time component of existing date prop)

Test plan

  • Smart card counts update after databases load
  • Clicking "Due Today" shows tasks with dueDate <= today across all lists
  • Clicking "Planned" shows tasks with future due dates
  • Clicking "All" shows all incomplete tasks across all lists
  • Clicking "Done" shows completed tasks across all lists
  • Toggling/deleting a task in smart view reflects immediately
  • Reminders card navigates to "Reminders" database (or is greyed out if not found)
  • Adding a task with date + time stores the combined datetime in Notion
  • "Add details" expands only when database has matching properties
  • TaskItem shows description, location, tags, and time correctly

Generated by Claude Code

Smart cards (Due Today, Planned, All, Done) now load tasks from all
databases in parallel via useAllTasks and show live counts. Clicking
a card opens SmartListView with cross-database filtered tasks. The
Reminders card navigates to the database named "Reminders" if it exists.
Marked/Urgent remain visual-only (no matching Notion properties).

Extended task model adds description, due time, location, and tags.
notionProps auto-detects these by common property names. AddTaskRow
gains date+time pickers and an expandable "Add details" section for
the extra fields. TaskItem renders them as inline badges.
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.

2 participants