feat(home): sort projects by updated, created, or title - #1396
feat(home): sort projects by updated, created, or title#1396bobbyquantum wants to merge 4 commits into
Conversation
Add a sort menu to the home header so writers can order the project grid by recently updated (default), recently created, or title. Shared projects are now interleaved with owned projects instead of appended. The choice is persisted in localStorage.
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Team Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
🚀 Frontend preview deployed for #1396 This is a frontend-only preview (no backend). It runs in local/offline mode; point it at an existing server at runtime through the setup flow if needed. On PR close or label removal, the cleanup workflow attempts to delete this branch's Pages deployments; note that Cloudflare keeps the latest deployment for a branch, so the preview URL may remain reachable after cleanup. |
|
🚀 Frontend preview deployed for #1396 This is a frontend-only preview (no backend). It runs in local/offline mode; point it at an existing server at runtime through the setup flow if needed. On PR close or label removal, the cleanup workflow attempts to delete this branch's Pages deployments; note that Cloudflare keeps the latest deployment for a branch, so the preview URL may remain reachable after cleanup. |
V8 numbers branch blocks per process, so shards that never executed a file report its branches under different block ids than the shard that did. Summing them invented zero-hit branches and halved SonarCloud's new-code condition coverage. Skip BRDA entries from records with no line hits.
|
🚀 Frontend preview deployed for #1396 This is a frontend-only preview (no backend). It runs in local/offline mode; point it at an existing server at runtime through the setup flow if needed. On PR close or label removal, the cleanup workflow attempts to delete this branch's Pages deployments; note that Cloudflare keeps the latest deployment for a branch, so the preview URL may remain reachable after cleanup. |
Shards that only import a file still record module-level line hits, so skipping branch records from zero-hit shards was not enough. Match branch entries on the same line by sorted position instead of by V8 block id, which differs between processes.
|
🚀 Frontend preview deployed for #1396 This is a frontend-only preview (no backend). It runs in local/offline mode; point it at an existing server at runtime through the setup flow if needed. On PR close or label removal, the cleanup workflow attempts to delete this branch's Pages deployments; note that Cloudflare keeps the latest deployment for a branch, so the preview URL may remain reachable after cleanup. |
|



What
Adds a sort menu to the home page header so the project grid can be ordered by:
The chosen order is persisted in
localStorage(inkweld-home-project-sort) and restored on the next visit. Unknown or unreadable stored values fall back to the default.Why
The home page had search but no way to change project order. The server already returned owned projects newest-updated first, but shared projects were simply appended after them, and local mode had no defined order at all. Shared projects are now interleaved with owned projects according to the selected sort, and local mode consistently shows newest-updated first.
Reviewer notes
sortProjectItemshelper inhome.component.ts; ties fall back to a case-insensitive title compare so results are stable.home.sortinhome.json.project-card.first()create a single project per test, so the new default ordering does not affect them.