mirror of
https://github.com/hanzoai/ui.git
synced 2026-11-20 22:36:27 +00:00
* feat(@hanzo/data): Twenty-grade record views (table/board/detail/editors) — clean-room Bring the Hanzo Base data-app layer to Airtable/Twenty-class polish, 100% original (no Twenty code — GPL kept at arm's length; Twenty observed as a running-UI reference only). New in pkg/data (published as @hanzo/[email protected]): - RecordsView shell: table <-> board switch, search, filter builder, sort builder, board group-by, optional saved views — one ViewConfig, applied via pure view/logic. - DataTable (Twenty-grade): click-to-sort headers, drag-resize + drag-reorder columns, row selection + select-all, inline cell editing, pagination, hover-open, honest states. - BoardView: kanban grouped by a select/status/boolean/relation field; drag-between-lanes emits the record patch (optimistic, reverts on failure). - RecordDetail: titled, inline-editable panel + related slot; RecordForm gains fieldOptions. - Field editors upgraded: searchable select dropdown w/ color chips, month-grid calendar, relation record-picker, file upload, validated JSON, sliding boolean toggle. - Pure logic (sort/filter/search/group/paginate/view) — gui-free, 37 unit tests, exported on subpaths (@hanzo/data/{table,board,view}/logic). - Self-contained primitives (Menu/CheckBox/Toggle/Calendar) on the minimal proven gui surface. - gui.config.ts + gui.d.ts so the package type-checks the v5 shorthands standalone. @hanzo/ui/primitives/bases/data re-exports @hanzo/data (the bases surface convention). tsc --noEmit clean; vitest 37/37. * feat(@hanzo/ui): v8 unified lib on @hanzo/gui — product + record (@hanzo/data) layers The one cross-platform, presentational, host-agnostic, clean-room component library. Product/app layer (charts, metrics, page headers, status tags, empty states, combobox, slide-over, toasts, drag-reorder, field rows, marks) at '@hanzo/ui'; metadata-driven record layer composed from @hanzo/data at '@hanzo/ui/data'; calm dark-first tokens + motion vocabulary. Web + native + desktop. Retires the shadcn @hanzo/ui (5.x) → @hanzo/ui-shadcn; this gui-based line carries the name forward at 8.0.0. tsc --noEmit clean, vitest 12/12. Manifest: CONSOLIDATION.md. * refactor(ui): retire shadcn @hanzo/ui → @hanzo/ui-shadcn (name freed for v8) Rename the legacy shadcn/Radix line (pkgs/ui, 5.7.0) to @hanzo/ui-shadcn so the gui-based unified library can carry the @hanzo/ui name forward at v8. Code is untouched — only the package name changes; the published @hanzo/[email protected] stays on npm for external ^5.x consumers. Internal workspace consumers keep resolving the shadcn line with ZERO source edits via workspace aliases (@hanzo/ui → @hanzo/ui-shadcn): - app (@hanzo/ui-web): dependency workspace alias - commerce: devDependency workspace alias (source imports @hanzo/ui/*), peer stays @hanzo/ui>=5.0.0 for external consumers - checkout, agent-ui: peer ranges unchanged (no source imports) Proven: app + commerce node_modules/@hanzo/ui resolve to @hanzo/[email protected]. Drive-by (unblocks workspace install/CI): pkgs/data pinned the now-unpublished @hanzogui/[email protected] — patch-forward to 7.3.0 (published latest, same major, matches pkg/ui). * build(ui,data): emit compiled .d.ts — retire raw-.tsx type surface @hanzo/[email protected] + @hanzo/[email protected]: types/exports now point at flat compiled declarations (tsc -p tsconfig.build.json → types/), matching @hanzo/[email protected]. src/gui-env.d.ts bakes the GuiCustomConfig augmentation into each package's own compilation so shorthand props resolve internally — consumers no longer type-check vendor .tsx (the 171-phantom-error/hoisted- linker fragility). --------- Co-authored-by: hanzo-dev <[email protected]> Co-authored-by: Hanzo Dev <[email protected]>
20 lines
478 B
JSON
20 lines
478 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2022",
|
|
"lib": ["ES2022", "DOM", "DOM.Iterable"],
|
|
"module": "ESNext",
|
|
"moduleResolution": "Bundler",
|
|
"jsx": "react-jsx",
|
|
"strict": true,
|
|
"noEmit": true,
|
|
"isolatedModules": true,
|
|
"esModuleInterop": true,
|
|
"skipLibCheck": true,
|
|
"resolveJsonModule": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"types": ["react"]
|
|
},
|
|
"include": ["src"],
|
|
"exclude": ["node_modules", "dist", "types"]
|
|
}
|