Skip to content

refactor: feed and overview views, unified date formats - #14

Merged
ljm12914 merged 1 commit into
mainfrom
refactor/feed
Nov 24, 2026
Merged

ljm12914 merged 1 commit into
mainfrom
refactor/feed

Conversation

@ljm12914

Copy link
Copy Markdown
Member

Summary

  • Feed view: split into layout, toolbar, sources, status, row and reader parts.
    • Rows load by window over the full ordered ids through feed.getState(query, around) and feed.getRows(ids).
    • The open item stays pinned while filters change.
    • View menus and header actions come from the shared tab view menu.
  • Overview: tasks, recent pages and unread feed items each use the shared virtual list with batched row reads (pages.overviewIndex / pages.overviewRows).
  • Base components: VirtualList, WindowRows and Dialog.
  • Paper state in the feed: trashing, restoring, undoing or permanently deleting a linked paper elsewhere updates the loaded rows, row menus and the reader in place.
    • Scroll position and selection are kept.
    • An unrelated page edit makes no feed IPC call.
    • Purging a page no longer reloads the feed unless a feed source was purged.
  • Date formats: one formatter per precision in shared/content/time.ts, used by main and renderer. Output is the same in every language and follows the app time zone:
    • second: yyyy-MM-dd HH:mm:ss
    • minute: yyyy-MM-dd HH:mm
    • hour: yyyy-MM-dd HH:00
    • day: yyyy-MM-dd
    • month: yyyy-MM
    • Hour text input also accepts yyyy-MM-dd HH:00.

Checks

  • Typecheck, lint, Knip and the database baseline check pass.
  • Tests pass: workspace and database 285, feed 45.
  • Feed, overview, library and knowledge perf workflows pass their absolute limits.
  • Real-input smoke testing is still to do.
  • Native date inputs and the calendar's own text are left for the calendar round.

🤖 Generated with Claude Code

- Feed: split the view into layout, toolbar, sources, status, row and
  reader parts on a shared virtual list with batched row reads.
- Overview: tasks, recent pages and unread feed items load by window.
- Feed rows follow their paper being trashed, restored or deleted
  elsewhere, without reloading the whole list.
- Dates and times use fixed numeric formats by precision in every
  language: yyyy-MM-dd HH:mm:ss, HH:mm, HH:00, yyyy-MM-dd, yyyy-MM.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ljm12914
ljm12914 merged commit 56ba5fa into main Nov 24, 2026
1 check passed
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