Compare commits

...
1 Commits
Author SHA1 Message Date
Denozordec 2d29a892f9 feat(web): integrate shadcn and enhance data grid styles
quality / changes (push) Successful in 8s
quality / commitlint (push) Skipped
quality / docker-check (push) Skipped
quality / openapi (push) Successful in 31s
quality / web (push) Successful in 1m7s
quality / go (push) Successful in 1m10s
quality / bird2 (push) Successful in 17s
CD / quality (push) Successful in 3m20s
CD / publish (push) Successful in 4m5s
- Added `shadcn` dependency to the project for improved styling.
- Updated `kitDataGridTableClassNames` to include a new base class for pinned cells.
- Enhanced global styles by importing `shadcn/tailwind.css`.
- Added tests to verify new class names in the data grid component.
2026-08-23 02:33:22 +07:00
5 changed files with 1333 additions and 1 deletions
+1
View File
@@ -40,6 +40,7 @@
"react-dom": "^19.2.0", "react-dom": "^19.2.0",
"react-hook-form": "^7.60.0", "react-hook-form": "^7.60.0",
"recharts": "3.8.0", "recharts": "3.8.0",
"shadcn": "^4.19.0",
"sonner": "^1.7.0", "sonner": "^1.7.0",
"zod": "^3.25.0" "zod": "^3.25.0"
}, },
@@ -15,6 +15,9 @@ describe('kitDataGridTableLayout', () => {
it('kit tableClassNames совпадает с filtering-2 edgeCell', () => { it('kit tableClassNames совпадает с filtering-2 edgeCell', () => {
expect(kitDataGridTableClassNames.edgeCell).toBe('first:ps-3 last:pe-3') expect(kitDataGridTableClassNames.edgeCell).toBe('first:ps-3 last:pe-3')
expect(kitDataGridTableClassNames.base).toBe(
'[&_[data-pinned]]:bg-(--frame-panel-bg)',
)
}) })
it('именованные opts: auto + pin', () => { it('именованные opts: auto + pin', () => {
@@ -81,8 +81,9 @@ export function kitDataGridTableLayout(
} }
} }
/** filtering-2 edge inset — единственный tableClassNames в kit, не в domain. */ /** filtering-2 edge inset + Frame-surface pinned cells (not page --background). */
export const kitDataGridTableClassNames = { export const kitDataGridTableClassNames = {
base: '[&_[data-pinned]]:bg-(--frame-panel-bg)',
edgeCell: 'first:ps-3 last:pe-3', edgeCell: 'first:ps-3 last:pe-3',
} as const } as const
+1
View File
@@ -1,5 +1,6 @@
@import "tailwindcss"; @import "tailwindcss";
@import "tw-animate-css"; @import "tw-animate-css";
@import "shadcn/tailwind.css";
@source "../"; @source "../";
@source "../../../apps/web/src"; @source "../../../apps/web/src";
+1326
View File
File diff suppressed because it is too large Load Diff