Skip to content

feat(studio): add Entity form tabs layout metadata - #283

Merged
thsnkhn merged 7 commits into
hapyco:mainfrom
SaadNiaziDev:feat/studio-form-tabs
Sep 22, 2026
Merged

thsnkhn merged 7 commits into
hapyco:mainfrom
SaadNiaziDev:feat/studio-form-tabs

Conversation

@SaadNiaziDev

@SaadNiaziDev SaadNiaziDev commented Sep 18, 2026 •

Copy link
Copy Markdown
Collaborator

Adds optional Entity tabs with inline fields, column breaks, and section headings. Metadata sync stores the layout in entity.form while only storage fields enter the schema and Record APIs.

Studio shows every explicitly authored tab, including a single tab, and retains the plain form when tabs are absent. Manual Record IDs remain editable. Shared tab primitives provide keyboard navigation and preserve drafts across tabs.

Validation rejects mixed fields/tabs, empty tabs, duplicate identities, and storage settings on layout markers. The editor schema and authoring documentation match the runtime contract. The Entity generator creates one general tab.

Validation: 103 Studio tests, production and embedded builds, Go suite (asset-dependent suites passed after building embedded assets), focused combined metadata/jobs checks, and browser checks for manual IDs, single/flat layouts, keyboard navigation, and draft retention. PostgreSQL integration tests were skipped because DYGO_TEST_DATABASE_URL was not configured.

SaadNiaziDev and others added 7 commits September 18, 2026 20:21
Allow Entity YAML to author form tabs with column/section markers,
persist the layout on entity.form, and render multi-tab forms in
Studio while keeping single-tab and flat Entities backward compatible.

Co-authored-by: Cursor <cursoragent@cursor.com>
Keep framework-bundled currency metadata aligned with the app-owned
tabs dogfood Entity used by Studio form rendering.

Co-authored-by: Cursor <cursoragent@cursor.com>
Remove the temporary multi-tab Currency layout used only to exercise
Studio form tabs; keep the shared form-tabs feature intact.

Co-authored-by: Cursor <cursoragent@cursor.com>
Keep layout markers out of storage fieldType and pad hooks entity rows for the form column so CI matches the new scan shape.

Co-authored-by: Cursor <cursoragent@cursor.com>
Point tab fields back at the shared field def; layout markers stay runtime-validated only so fieldType stays aligned with the storage registry.

Co-authored-by: Cursor <cursoragent@cursor.com>
@thsnkhn
thsnkhn marked this pull request as ready for review September 22, 2026 08:40
@thsnkhn
thsnkhn merged commit 40fac9d into hapyco:main Sep 22, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants