Skip to content

fix(forms): make :project specific fields searchable - #121048

Merged
TkDodo merged 1 commit into
masterfrom
tkdodo/fix/de-1491-search-fields-not-showing-up
Aug 3, 2026
Merged

fix(forms): make :project specific fields searchable#121048
TkDodo merged 1 commit into
masterfrom
tkdodo/fix/de-1491-search-fields-not-showing-up

Conversation

@TkDodo

@TkDodo TkDodo commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

Project-scoped form fields (routes containing :projectId) are now included in
the settings command palette search. Previously isSettingsRoute dropped any
field whose route had a :projectId placeholder, so fields like the Seer
"Handoff to Agent" option never surfaced — searching for their label returned
nothing, even though the extracted registry entry was correct.

The :projectId exclusion existed because the generated to only resolves
:orgId, leaving :projectId literal in the path. That turns out to be fine:
navigating to such a route lands on ProjectSettingsLayout, which detects the
:projectId placeholder and opens the context picker for the user to choose a
project. :teamId and :appId remain excluded since their layouts don't have
that redirect.

Refs DE-1491

@linear-code

linear-code Bot commented Aug 3, 2026

Copy link
Copy Markdown

DE-1491

@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Aug 3, 2026
@TkDodo
TkDodo marked this pull request as ready for review August 3, 2026 09:10
@TkDodo
TkDodo requested a review from a team as a code owner August 3, 2026 09:10

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Want reviews to match your repository better? Bugbot Learning can learn team-specific rules from PR activity. A team admin can enable Learning in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit b543614. Configure here.

}
if (route.includes(':projectId')) {
return false;
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Field hash lost after project picker

Medium Severity

Including :projectId routes puts field entries with a hash deep-link through ProjectSettingsLayout, which calls navigateTo with only location.pathname. That drops the hash, so after the user picks a project they land on the settings page without scrolling to or focusing the matched field.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit b543614. Configure here.

}
if (route.includes(':projectId')) {
return false;
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ambiguous project section titles

Medium Severity

titleFromRoute only strips :orgId / account, so every newly included project route still starts with projects and becomes a section titled Projects. Distinct pages such as alerts, filters, and ownership all share that label, and the same string is reused in field keywords.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit b543614. Configure here.

@priscilawebdev priscilawebdev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙏

@TkDodo
TkDodo merged commit d69800f into master Aug 3, 2026
72 checks passed
@TkDodo
TkDodo deleted the tkdodo/fix/de-1491-search-fields-not-showing-up branch August 3, 2026 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants