feat(files): default sort by updated and add updated sort option#4279
feat(files): default sort by updated and add updated sort option#4279waleedlatif1 merged 2 commits intostagingfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
PR SummaryMedium Risk Overview Introduces Reviewed by Cursor Bugbot for commit 3eab29a. Configure here. |
Greptile SummaryThis PR adds an Confidence Score: 5/5Safe to merge — migration is additive, all read/write paths are correctly updated, and remaining findings are P2 style suggestions. All P0/P1 concerns are absent: migration is a safe additive column with a default, TypeScript interface change is fully propagated across mapped call sites, and default sort fallback works correctly. The two open findings are P2 style suggestions (column order inconsistency and missing updatedAt bump on file materialization). apps/sim/lib/copilot/tools/handlers/materialize-file.ts — missing updatedAt bump during materialization Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[User Action] --> B{Action Type}
B -->|Upload| C[uploadWorkspaceFile\nDB default: updatedAt = now]
B -->|Edit Content| D[updateWorkspaceFileContent\nupdatedAt = new Date]
B -->|Rename| E[renameWorkspaceFile\nupdatedAt = new Date]
B -->|Restore| F[restoreWorkspaceFile\nupdatedAt = new Date]
B -->|Materialize from Chat| G[materialize-file.ts\nupdatedAt NOT bumped]
C --> H[WorkspaceFileRecord.updatedAt]
D --> H
E --> H
F --> H
G --> H
H --> I[Files page\nDefault sort: updated desc]
Reviews (2): Last reviewed commit: "feat(files): show Last Updated column" | Re-trigger Greptile |
Matches the visible-column pattern already used on Knowledge and Tables so users can see the value they're sorting by. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
954aa9a to
3eab29a
Compare
|
@greptile |
|
@cursor review |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 3eab29a. Configure here.
Summary
updated_atcolumn toworkspace_filestable; bumped on content update, rename, and restoreupdatedAtthroughWorkspaceFileRecordand APIType of Change
Testing
Tested manually — file list now sorts by most-recently-updated by default; renaming a file bumps it to the top.
Checklist