feat(spec): interface pages own their view metadata directly (revise ADR-0047 iron rule)#2050
Merged
Merged
Conversation
…ADR-0047 iron rule)
Airtable parity: an interface (list) page now defines its data surface DIRECTLY
as metadata — columns, base filter, sort — instead of inheriting them from a
referenced object view ("sourceView"). There is no "inherit from a separate
view" concept anymore; the page IS the view definition.
Spec (packages/spec/src/ui):
- page.zod.ts — InterfacePageConfigSchema gains its own `columns`
(string[] | ListColumnSchema[]) and `sort`; `filterBy` clarified as the
always-on base filter. `sourceView` is now @deprecated, kept only as a
runtime back-compat fallback.
- page.form.ts — the inspector follows Airtable's IA: Data (Source → Columns →
Filter By → Levels) · Appearance · User filters · User actions. The
"Source View" picker is removed and replaced by a Columns field picker
(widget: field-multi, dependsOn: source). Iron-rule helptext rewritten.
Showcase migrated to the new model (define columns directly, drop sourceView):
- task-triage.page.ts, task-workbench.page.ts.
Pairs with the objectui runtime change that reads page-owned columns/sort with
a view→object fallback. Browser-verified: the page editor shows Source/Columns/
Filter By (no Source View); picking columns re-renders the preview live; both
showcase pages render their own column sets (workbench shows Estimate (h), which
the object default view omits — proving independence).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…rectly (supersede iron rule) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
📓 Docs Drift CheckThis PR changes 1 package(s): 89 hand-written doc(s) reference the affected code and may need an implementation-accuracy re-verification:
|
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.
Summary
Validating the Studio config panel against Airtable's Interface Designer surfaced that Airtable has no "inherit from a separate view" concept — an interface page defines its data surface (columns, sort, base filter, visualizations, toolbar) directly. This brings ObjectStack to parity and removes the confusing "Source View" picker.
Spec (
packages/spec/src/ui)InterfacePageConfigSchemagains its owncolumns(string[] | ListColumnSchema[]) andsort;filterByis the always-on base filter.sourceViewis now@deprecated, kept only as a runtime back-compat fallback.Data (Source → Columns → Filter By → Levels) · Appearance · User filters · User actions.The Source View picker is removed, replaced by a Columns field picker (
widget: field-multi,dependsOn: source). Iron-rule helptext rewritten.ADR
Showcase migrated to the new model
task-triage.page.ts,task-workbench.page.tsdefinecolumnsdirectly and dropsourceView.Verification (browser, live backend)
# / 标题 / 状态 / 优先级).Pairs with the objectui runtime PR (InterfaceListPage reads page-owned
columns/sortwith a view→object fallback).🤖 Generated with Claude Code