feat(spec): add userActions.refresh toggle to ListView (objectui#2634)#3158
Merged
Conversation
The ListView UserActionsConfig exposed toolbar toggles for sort / search / filter / rowHeight but had no toggle for a manual data-refresh action, so consumers had no spec-canonical way to reload a list without a full page reload (objectui#2634). Add `refresh: boolean` (default true) alongside the existing toggles. objectui's ListView reads `userActions.refresh` to gate its toolbar Refresh button; the liveness note for `userActions` is updated to record the new live sub-key. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01C7Z2cbcb14wb99upTD6LNw
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
📓 Docs Drift CheckThis PR changes 1 package(s): 102 hand-written doc(s) reference the affected code and may need an implementation-accuracy re-verification:
|
`content/docs/references/ui/{view,page}.mdx` are generated from the spec
(gen:schema + gen:docs). Adding `userActions.refresh` made them drift; this
regenerates them so `check:docs` passes.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01C7Z2cbcb14wb99upTD6LNw
os-zhuang
marked this pull request as ready for review
July 18, 2026 02:58
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.
Background
The ListView
UserActionsConfigexposes toolbar toggles forsort/search/filter/rowHeight/addRecordForm/editInline, but had no toggle for a manual data-refresh action. Consumers therefore had no spec-canonical way to declare/gate a "reload the list without a full page reload" affordance (objectui#2634).Change
src/ui/view.zod.ts— addrefresh: z.boolean().default(true)toUserActionsConfigSchema, alongside the existing toggles (allows opt-out; visible by default).src/ui/view.test.ts— assert the default (true) and thatuserActions.refresh: falseround-trips.liveness/view.json— update theuserActionsliveness note to recordrefreshas a live sub-key (consumed by objectuiListView.tsxtoolbar; objectui#2634).Consumer
objectui's
ListViewreadsuserActions.refreshto gate its new toolbar Refresh button — seeobjectstack-ai/objectuibranchclaude/defect-list-refresh-entry-i9qw1s. That side ships independently of a spec release (runtime-defensive read + legacyshowRefreshfallback); this PR makes the toggle first-class in the protocol so the type layer aligns after publish.Verification
packages/specfull test suite: 6895 passed ✅check:liveness: all governed-type properties classified ✅check:spec-changes: up to date ✅api-surface.jsontracks public exports, unaffected by an internal field; docs/skill-refs don't enumerateuserActionssub-keys)Related
🤖 Generated with Claude Code
https://claude.ai/code/session_01C7Z2cbcb14wb99upTD6LNw
Generated by Claude Code