Skip to content

190580 Show filter dialog by pressing ctrl+f or / - #5156

Merged
auto-submit[bot] merged 4 commits into
flutter:mainfrom
ievdokdm:190580-search
Sep 24, 2026
Merged

auto-submit[bot] merged 4 commits into
flutter:mainfrom
ievdokdm:190580-search

Conversation

@ievdokdm

Copy link
Copy Markdown
Contributor

@flutter-dashboard flutter-dashboard Bot added the CICD Run CI/CD label Sep 23, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request introduces keyboard shortcuts (such as '/' and 'Ctrl+F') to open the filter dialog in the presubmit view, ensuring the regex input field is automatically focused upon opening. It also updates the error dialog to support text selection and adds corresponding widget tests. Regarding the feedback, the reviewer noted that the manual focus request inside 'addPostFrameCallback' in 'FilterDialog' is redundant because the 'TextField' already has its 'autofocus' property set, which can be safely removed to simplify the code.

Comment thread dashboard/lib/widgets/filter_dialog.dart Outdated
@ievdokdm
ievdokdm requested a review from jtmcdole September 23, 2026 23:33
/// A dialog that allows users to filter jobs in the Presubmit Dashboard.
class FilterDialog extends StatefulWidget {
const FilterDialog({super.key});
const FilterDialog({super.key, this.autofocusRegex = false});

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.

Why not always auto-focus the text box?

@jtmcdole jtmcdole 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.

welcome to the wonderful world of focusNodes.

@ievdokdm ievdokdm added the autosubmit Merge PR when tree becomes green via auto submit App. label Sep 24, 2026
@auto-submit
auto-submit Bot merged commit 6e7d349 into flutter:main Sep 24, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App. CICD Run CI/CD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature request: "command/control+f" shortcut to search on flutter dashboard

2 participants