Commit Graph
89 Commits
Author SHA1 Message Date
Hermes bf37f9a488 fix(p2): Calendar view toggle - key on DragAndDropCalendar + view prop + onView handler 2026-07-31 01:56:25 +00:00
Hermes de06a9aa21 fix(p2): Calendar view toggle - key prop on DragAndDropCalendar forces remount 2026-07-31 01:47:47 +00:00
Hermes 4bf1c8bf4f fix(p2): Calendar view toggle - force Suspense remount with key prop 2026-07-31 01:37:59 +00:00
Hermes 08841abd68 fix(p2): Calendar view toggle - sync internal view state with parent prop via useEffect 2026-07-31 01:35:02 +00:00
Hermes ca8ff5d13b fix(p2): Calendar view toggle - use defaultView + key on parent dynamic import 2026-07-31 01:31:47 +00:00
Hermes aef02253db fix(p2): remove key prop from parent, keep view prop in wrapper 2026-07-31 01:29:27 +00:00
Hermes 9e80327be2 fix(p2): use view prop (controlled) + key on parent to force Calendar remount 2026-07-31 01:26:54 +00:00
Hermes ab6344d86d fix(p2): force Calendar remount on view change via key prop on parent 2026-07-31 01:24:08 +00:00
Hermes a18bddf784 fix(p2): use view prop (controlled) + key to force Calendar remount 2026-07-31 01:23:30 +00:00
Hermes a04fbff584 fix(p2): use defaultView + key prop to force Calendar remount on view change 2026-07-31 01:20:33 +00:00
Hermes e3c3054c38 fix(p2): force Calendar remount on view change with key prop 2026-07-31 01:17:05 +00:00
Hermes efe8db108d fix(p3): TipTap focus, Task List toast dedup, TaskCard a11y
Bug #10 (LOW): TipTap editor text input leaks into Search field.
The EditorContent wrapper had no tabIndex so the global keyboard
shortcut (which treats inputs/textareas/buttons as focused but
not contenteditable divs) sent typed text to the search field
instead of the editor. Adding tabIndex={0} makes the wrapper
focusable; TipTap's contentEditable=true then routes the
keyboard events to the editor.

Bug #1 (LOW): Task List view infinite toast loop. The catch block
fired toast.error on every realtime-triggered fetch failure with
no dedup, causing infinite toast spam on 429 or persistent
errors. Realtime subscription also called fetchTasks() on every
event with no debounce, amplifying the problem.

Fixes:
- Add lastErrorRef to track the last error message; only toast
  when the message class changes.
- Distinguish 429/rate-limited from generic 500 in the toast text.
- Reset lastErrorRef on successful fetch.
- Debounce the realtime-triggered refetch by 750ms so event
  bursts collapse to a single fetch.

Bug #8 (LOW): TaskCard in Board view not keyboard-focusable.
The TaskCard in tasks-kanban-view.tsx already has role=button,
tabIndex={0}, onKeyDown for Enter/Space, and aria-label. No
change needed; verified in the tree that the fix is present
(probably landed as part of an earlier leaf integration).

Bug #1 + Bug #8 + Bug #10 all addressed in this commit.

Note: Bug #9 (Search returns No results) is fixed by P0 (the
search route was patched to use resolveActiveDomain). Verified
working without further changes needed.
2026-07-31 01:06:31 +00:00
Hermes 78a9c50ef2 fix(p2): Calendar Week/Day views, Quick Capture, Canvas create
Bug #7 (MEDIUM): Calendar week/day view toggle broken. The
BigCalendarWrapper used defaultView (uncontrolled) so when the
parent updated the view state via onView, the calendar continued
to show the original view. Switched to view (controlled) so the
calendar re-renders with the correct view.

Bug #6 (MEDIUM): Dashboard Quick Capture button was dead. The
Add button had no onClick handler and the form was wired to
the wrong endpoint (per-type /api/tasks|habits|notes). Switched
to POST /api/quick-capture with {type, text} (the new endpoint
created by P0). Added Project to the type select. Added toast
feedback on success/error. Made the Add button type=button with
explicit onClick so it bypasses form-submit and the global
shortcut handler.

Bug #2 (MEDIUM): Canvas create -> page crash. Already fixed by
P0 (commit c3bce0b removed the hardcoded 'personal' domain
filter). The orphan modification to canvas/page.tsx is also
included here to keep the diff complete.

Bug #6 + Bug #7 + Bug #2 all fixed in this commit.
2026-07-31 01:06:20 +00:00
Hermes f388f124e8 fix(p1): wire New habit/New project buttons + fix Domain Add
Bug #3 (HIGH): New habit button on /habits did not open the create
dialog. The HabitCreateDialog was mounted but the topbar's
useCreateDialogStore had no consumer on /habits, so topbar clicks
were no-ops.

Bug #4 (HIGH): New project button on /projects had the same issue.

Fix: mount CreateItemDialog (type=habit or type=project) on each
page so the topbar store is consumed. Switch the page-level button
to use the store too. The existing local HabitCreateDialog /
ProjectCreateDialog still work as a fallback.

Bug #5 (HIGH): Domain Add button on /settings/domains opened the
Command Palette instead of creating the domain. Two-part cause:
1. The sticky topbar Quick add button was visually overlapping
   the form Add button (both anchored top-right). On click the
   topbar handleCreate fired and dispatched a synthetic Cmd+K
   opening the palette.
2. /api/domains POST required a slug field that the form did not
   send, returning 400.

Fix: hide the topbar Quick add button on pages without a relevant
quick-create (only show on /projects, /habits, /tasks). Make the
form Add button explicit type=button with stopPropagation as
defense in depth. Auto-generate the domain slug from the name
on the server when not provided.

Bug #3 + Bug #4 + Bug #5 all fixed in this commit.
2026-07-31 01:06:04 +00:00
Hermes 2c0295ad00 fix(p1): wire New habit + New project buttons to useCreateDialogStore
The HabitCreateDialog and ProjectCreateDialog were mounted with local
state but the topbar uses useCreateDialogStore, and the store had no
consumer on /habits or /projects. So topbar clicks did nothing, and the
page-level button may have been dead too due to a stale build.

Mount <CreateItemDialog> in both pages so:
- The topbar New habit / New project button opens the dialog
- The page-level buttons open the same dialog via the store
- A single CreateItemDialog handles task/project/habit creation

Bug #3 (New habit) + Bug #4 (New project) are fixed by this commit.
2026-07-31 00:35:29 +00:00
Hermes c3bce0b9e3 fix(p0): resolve active domain automatically when onboarding skipped
- New resolveActiveDomain() helper in apps/web/lib/auth.ts: returns the
  user's first existing domain (ordered by sort_order then created_at),
  or auto-creates a default 'Personal' domain if they have none.
- 7 affected API routes (agents, canvases, domains, habits, projects,
  search, tasks) now fall back to resolveActiveDomain when the request
  omits a domain param. This eliminates the UNDEFINED_VALUE on domain_id
  and 22P02 invalid uuid errors that broke 6+ UI flows.
- New POST /api/quick-capture route: switches on type=task|habit|note|project
  to create the right entity, after resolving the active domain. This is
  the API the dashboard quick-capture widget calls.
- packages/db/src/schema.ts: added ownerId: uuid('owner_id') to the
  domains table so each user owns their domains.
- drizzle/0004_add_owner_id_to_domains.sql: matching migration with
  column add + index.
- apps/web/__tests__/lib/auth.test.ts: unit tests for both branches of
  resolveActiveDomain (returns existing / creates Personal).
- apps/web/app/(dashboard)/canvas/page.tsx: removed hardcoded
  domain: 'personal' from the quick-create payload so server-side
  resolution can do its job.

This unblocks all of: /tasks, /habits, /projects, /search, /settings/agents,
/settings/domains, /canvas, and dashboard quick-capture.
2026-07-30 23:51:29 +00:00
bot-hermes 0ff005a47a fix: add missing timer state and handlers (timerRunning, setTimerStartedAt, handleStartTimer, handleStopTimer, formatDuration, elapsedSeconds tick effect) 2026-07-29 20:54:14 +00:00
bot-hermes 56e923deb2 fix: add missing Play and Square imports to task-detail-panel 2026-07-29 20:46:48 +00:00
bot-hermes 8de6849474 merge: fix/ux-leaf-f-polish into integration/ux-28-gaps (resolve OnboardingFlow+DispatchPanel in layout) 2026-07-29 20:34:52 +00:00
bot-hermes 4b0cfb2611 merge: fix/ux-leaf-e-crosscut into integration/ux-28-gaps (resolve conflicts on tasks-kanban-view, tasks-list-view, task-detail-panel) 2026-07-29 20:34:27 +00:00
bot-hermes c448a747a7 merge: fix/ux-leaf-d-new-pages into integration/ux-28-gaps 2026-07-29 20:31:22 +00:00
bot-hermes 6f2acf77b7 merge: fix/ux-leaf-c-settings into integration/ux-28-gaps 2026-07-29 20:31:22 +00:00
bot-hermes 7e2fe93d64 merge: fix/ux-leaf-b-edit-dialogs into integration/ux-28-gaps 2026-07-29 20:31:22 +00:00
bot-hermes 281a20c502 fix: correct agents page JSX structure after adding dispatch panel 2026-07-29 20:28:19 +00:00
bot-hermes efbab9517c 27: onboarding flow - make onComplete optional for server component layout 2026-07-29 20:23:12 +00:00
bot-hermes 9b4c0b77c1 26: domain-specific dashboard - add Suspense wrapper for useSearchParams 2026-07-29 20:23:12 +00:00
bot-hermes 37e8b724bd fix: resolve TypeScript errors in timer, pagination, undo, and notification components 2026-07-29 19:47:44 +00:00
bot-hermes 888bd6393e feat(sections): refactor section dialog for edit/delete, add dropdown menu in project detail 2026-07-29 19:39:32 +00:00
bot-hermes f078360340 feat(webhooks): improve test button toast with status code + response preview 2026-07-29 19:27:30 +00:00
bot-hermes 9bc571eb69 feat: add notification bell with activity feed and notification preferences
- New NotificationBell component in topbar showing recent activity
- Popover with last 10 activity items from /api/domains/[id]/activity
- Notification preferences section in Settings > Shortcuts tab
- Preferences persisted to localStorage (pe_notification_prefs)
- Toggle switches for task_created, task_completed, habit_logged, comment_added
2026-07-29 19:27:24 +00:00
bot-hermes 449eade4b6 feat: add AI agent dispatch panel with floating button and new task button on agents page 2026-07-29 19:27:17 +00:00
bot-hermes c704916059 feat(settings): add Custom Fields tab with localStorage schema + task detail panel rendering 2026-07-29 19:26:44 +00:00
bot-hermes e0020eac7d 26: domain-specific dashboard - respect ?domain= query param 2026-07-29 19:26:27 +00:00
bot-hermes 39e182418d 27: onboarding flow - first-run sheet with 3 steps (domain, task, habit) 2026-07-29 19:26:23 +00:00
bot-hermes cd5d7a96ff 28: task templates - localStorage templates (Bug fix, Feature work, Quick meeting) in create dialog 2026-07-29 19:26:17 +00:00
bot-hermes 0835961bc9 23: note templates - localStorage templates (Meeting notes, Daily journal, Brain dump) 2026-07-29 19:26:13 +00:00
bot-hermes dd431a35d6 22: project timeline / Gantt view - CSS grid horizontal Gantt with sections as rows 2026-07-29 19:26:10 +00:00
bot-hermes f1b38ac497 21: habit analytics - recharts line/bar chart for 30-day completions and top streaks 2026-07-29 19:26:06 +00:00
bot-hermes 7ced6f2bf2 feat: add undo toasts for task and note deletions
- Capture deleted item before DELETE call
- Show sonner toast with Undo action button
- On Undo, POST to recreate the item with original data
- Applied to tasks-list-view, task-detail-panel, and notes page
2026-07-29 19:26:05 +00:00
bot-hermes 1d8f548f4b 19: mobile responsive - reduce main content padding on mobile (p-4 md:p-6) 2026-07-29 19:25:50 +00:00
bot-hermes d951348372 feat: add canvas freeform board page with drag-and-drop cards and sidebar link 2026-07-29 19:25:37 +00:00
bot-hermes fb68009c23 feat: add pagination with Load More button to task list view
- Add offset/limit pagination with 50 items per page
- Load More button appends tasks to existing list
- Show "Showing X of Y" count in the filter bar area
2026-07-29 19:25:17 +00:00
bot-hermes b314bda934 feat(tasks): add recurring task support with rrule in create dialog, detail panel, and complete route 2026-07-29 19:25:15 +00:00
bot-hermes 7ae8efe096 feat(kanban): dependency visual on cards with Link2 icon and tooltip 2026-07-29 19:24:23 +00:00
bot-hermes 1cb932f0f6 feat(tasks): filter/sort controls and bulk operations in list view 2026-07-29 19:24:18 +00:00
bot-hermes 6cbb3bb544 feat: add daily notes page with date navigation and sidebar link 2026-07-29 19:23:56 +00:00
bot-hermes 77a45715c0 feat(projects): add project edit dialog with dropdown menu and archive confirmation 2026-07-29 19:23:45 +00:00
bot-hermes bfada34ead feat: add time tracking UI with timer and clock icon on kanban cards
- Add time tracking section in task detail panel with progress bar
- Start/Stop timer with elapsed time display
- On stop, PATCH trackedMinutes with delta
- Add clock icon on kanban cards when estimatedMinutes is set
- Note: timer is per-tab (no persistence across refresh)
2026-07-29 19:22:36 +00:00
bot-hermes a6ac7c3fb6 feat(habits): add habit edit dialog with dropdown menu and delete confirmation 2026-07-29 19:22:29 +00:00
bot-hermes 1a0704e0f2 feat(settings): add Tags management tab with create/edit/delete UI 2026-07-29 19:22:27 +00:00