improvement(url-state): shared sort/search url-state helpers + task and log selection deep links#5652
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
PR SummaryMedium Risk Overview Search behavior fix: URL params now store the raw input value; filtering and API calls trim on read, so trailing spaces stay typable during multi-word search. Deep links: Scheduled tasks use Docs and the Reviewed by Cursor Bugbot for commit 9cea09d. Configure here. |
Greptile SummaryThis PR centralizes URL-backed search and sort behavior across the Sim app. The main changes are:
Confidence Score: 5/5This looks safe to merge.
Important Files Changed
Reviews (7): Last reviewed commit: "fix(url-state): reset chunk page in the ..." | Re-trigger Greptile |
|
@cursor review |
70dce27 to
5ad9d26
Compare
|
@cursor review |
|
@cursor review |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
2 issues from previous reviews remain unresolved.
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit e6e6e01. Configure here.
e6e6e01 to
c69fedd
Compare
|
@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 c69fedd. Configure here.
…nd log selection deep links
…ck, void settings search setter
… for task modal, unified executionId write path
… document schedules-refetch invariant
…r, trim chunk query read
c69fedd to
4810673
Compare
|
@cursor review |
|
@cursor review |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 9cea09d. Configure here.

Stacked on #5648 — will retarget to
stagingonce that merges.Summary
createSortParams(lib/url-state) +useUrlSort— one definition of thesort+dirconvention with defaulted and nullable modes; migrates tables, knowledge, knowledge docs, recently-deleted, logs, files, and the chunk viewuseDebouncedSearchSetter— the canonical debounced search-param setter; migrates 13 grouped/single sites and fixes a live bug where 5 surfaces wrote the trimmed value to a param controlling the input (typed trailing spaces were eaten, making multi-word search untypable)useSettingsSearch— collapses the 7 identical settings search bindingsuseStateobject to a?taskId=occurrence-id param (derive the object; Back closes the modal; mutation-driven closes usehistory: 'replace')?executionIdin sync (history: 'replace'), so the deep link no longer goes stale after the first click.claude/rules/sim-url-state.md+ theyou-might-not-need-url-statecommand updated to prescribe the shared helpersType of Change
Testing
Typecheck + biome clean; multi-angle adversarial review applied (folder-sort parity, deleted-export sweep, trim-on-read audit across every consumer, menu-id ⊆ columns verified per surface)
Checklist