docs: mark P2-1/2/3/5 complete; update README and landing page

- LOTUS_TODO.md: [x] P2-1 (upstream JumpToTime), P2-2 (custom sounds),
  P2-3 (sort rooms), P2-5 (quiet hours)
- README.md: new Notification Enhancements section (custom sounds, quiet
  hours); Room sort order added to UX & Composer section
- landing/index.html: three new comparison rows — custom notification
  sounds, quiet hours, room sort order

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-03 20:32:22 -04:00
parent 5ae84cbeaf
commit 6d0b778755
2 changed files with 18 additions and 4 deletions
+12 -4
View File
@@ -488,7 +488,7 @@ Body: { "order": 0.5 }
---
### [ ] P2-1 · Jump to Date
### [x] P2-1 · Jump to Date
**What:** A calendar date picker accessible from the room header (small calendar icon). Selecting a date navigates the timeline to the first message on or after that date.
API: `GET /_matrix/client/v1/rooms/{roomId}/timestamp_to_event?ts={epochMs}&dir=f`
@@ -498,9 +498,11 @@ Returns `{ event_id, origin_server_ts }`. Then scroll the timeline to that event
**Where:** `src/app/features/room/RoomViewHeader.tsx` (button), new `JumpToDate.tsx` component.
**Complexity:** Medium.
**COMPLETED June 2026 — already upstream.** JumpToTime.tsx in upstream Cinny is a full date+time picker that calls mx.timestampToEvent() and wires into RoomViewHeader.tsx:215 via navigateRoom(). No custom work needed.
---
### [ ] P2-2 · Custom Notification Sounds
### [x] P2-2 · Custom Notification Sounds
**What:** Let users pick from a set of built-in notification sounds for mentions, messages, and DMs. Features:
@@ -515,9 +517,11 @@ Returns `{ event_id, origin_server_ts }`. Then scroll the timeline to that event
**[AUDIT REQUIRED]** — Find exactly where notification sounds play in the codebase. Search for `new Audio(` or `.play()` in `src/app/`. Confirm how many distinct notification categories currently exist.
**Complexity:** Medium.
**COMPLETED June 2026.** messageSoundId / inviteSoundId settings ('notification'|'invite'|'call'|'none'). Shared NOTIFICATION_SOUND_MAP in src/app/utils/notificationSounds.ts. Settings → Notifications expands the sound toggle to show Message Sound and Invite Sound selectors with ▶ preview buttons. Audio element src updates reactively via useEffect. playPreview() catches .play() rejections.
---
### [ ] P2-3 · Sort Non-Space Rooms on Home Page
### [x] P2-3 · Sort Non-Space Rooms on Home Page
**What:** A sort control on the Home tab for orphan rooms (rooms not in any space). Options:
@@ -529,6 +533,8 @@ Returns `{ event_id, origin_server_ts }`. Then scroll the timeline to that event
**[AUDIT REQUIRED]** — Find where orphan rooms are listed on the Home tab. Confirm which hook/atom provides the room list (`useOrphanRooms()` in `roomList.ts`). Verify the sort is applied purely client-side with no server calls needed.
**Complexity:** Medium.
**COMPLETED June 2026.** homeRoomSort: 'recent'|'alpha'|'unread' setting (default 'recent'). factoryRoomIdByUnread comparator in Home.tsx. Sort icon button in Rooms NavCategoryHeader opens PopOut menu. Persists via settings. Collapsed state always shows unread-only regardless of sort.
---
### [ ] P2-4 · Export Room History
@@ -547,7 +553,7 @@ Returns `{ event_id, origin_server_ts }`. Then scroll the timeline to that event
---
### [ ] P2-5 · Notification Quiet Hours
### [x] P2-5 · Notification Quiet Hours
**What:** Set a daily time window when browser notifications are suppressed (e.g., 11:00 PM 8:00 AM). Toggle + start/end time pickers in Settings → Notifications.
**Architecture:**
@@ -570,6 +576,8 @@ function isQuietHours(settings): boolean {
**[AUDIT REQUIRED]** — Find the exact location in the codebase where browser `Notification` objects are created. Confirm no other code paths trigger sounds/notifications that also need to be suppressed.
**Complexity:** Medium.
**COMPLETED June 2026.** quietHoursEnabled/Start/End settings (defaults false/'23:00'/'08:00'). isInQuietHours() handles overnight spans; start===end=disabled. Both InviteNotifications and MessageNotifications gate notify()+playSound() behind quiet hours check. Settings → Notifications: Quiet Hours card with Switch + two <input type="time"> pickers.
---
### [ ] P2-6 · Room Activity / Moderation Log