feat(fields): always-visible "Browse All" button on LookupField#1092
Merged
feat(fields): always-visible "Browse All" button on LookupField#1092
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…or direct RecordPickerDialog access Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] [UX Enhancement] Always show 'Browse All' button in Lookup fields
feat(fields): always-visible "Browse All" button on LookupField
Mar 19, 2026
Contributor
|
@copilot 还是没有看到这个按钮 |
Copilot stopped work on behalf of
hotlong due to an error
March 19, 2026 05:53
Contributor
There was a problem hiding this comment.
Pull request overview
This PR improves LookupField discoverability by adding an always-visible “Browse All” (table icon) button that opens the enterprise RecordPickerDialog even when the quick-select popover dataset is small.
Changes:
- Add an always-visible icon button next to the LookupField popover trigger (when a DataSource is available) to open RecordPickerDialog directly.
- Add unit tests covering button visibility, dialog opening via click, and non-rendering when no dataSource exists.
- Update Lookup field docs and changelog to document the new entry point alongside the existing “Show All Results” flow.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| packages/fields/src/widgets/LookupField.tsx | Adds a flex row wrapper and an unconditional (when hasDataSource) “Browse All” icon button that opens RecordPickerDialog. |
| packages/fields/src/record-picker.test.tsx | Adds tests ensuring the new button renders, opens the dialog, and is hidden without a dataSource. |
| content/docs/fields/lookup.mdx | Documents the new “Browse All” button and clarifies the two ways to open RecordPickerDialog. |
| CHANGELOG.md | Adds an Unreleased entry for the always-visible “Browse All” button improvement. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
RecordPickerDialog was only reachable via the in-popover "Show All Results" link, which is conditionally rendered when
total > pageSize. For most datasets (<50 records), enterprise lookup features (multi-column table, sort/filter, cell renderers) were completely undiscoverable.Changes
ButtonwithTablePropertiesicon adjacent to thePopoverTriggerinside a flex row. Rendered unconditionally whenhasDataSourceis true. OpensRecordPickerDialogdirectly — independent of popover state or record count.[Unreleased].The existing conditional "Show All Results" inside the popover is preserved unchanged — both paths work independently.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.