@imfusion/web-ui 0.10.1-dev.58.gfb9bd6a3 → 0.10.1-dev.59.gdb86c93c

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -111,6 +111,7 @@ never changes the character width, so columns stay aligned. CoFo Sans Mono still
111
111
 
112
112
  ### Changed
113
113
 
114
+ - The `project-structure` topic sets when a single-route part is inlined into its route file: a component under 50 lines, with no `use*` hook, no stylesheet or test of its own, leaving the route file under 250 lines. `imf-web-ui-audit` reports a breach as a Deviation. — Nikolaus Brunner <brunner@imfusion.com>
114
115
  - The `Meter` track is translucent ink (8% `fg-main`), so it stays visible on tinted surfaces such as a selected table row. — Nikolaus Brunner <brunner@imfusion.com>
115
116
  - `Table` reads lighter: the header has no band, its mono labels are muted with a 1px rule under them, body rows have no rules, and cells get more vertical padding. A selected row sits one neutral step darker than a hovered row, in place of the primary tint. — Nikolaus Brunner <brunner@imfusion.com>
116
117
  - [`AppShell.Header`](src/components/app-shell/app-shell.mdx) is a page row that shows at every width, below the shell's bar on mobile. — Nikolaus Brunner <brunner@imfusion.com>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@imfusion/web-ui",
3
- "version": "0.10.1-dev.58.gfb9bd6a3",
3
+ "version": "0.10.1-dev.59.gdb86c93c",
4
4
  "description": "The official Web UI component library for ImFusion web apps",
5
5
  "author": "ImFusion GmbH",
6
6
  "homepage": "https://imfusion.com",
@@ -66,7 +66,9 @@ next action is the add from that topic. A Vite config that reads tsconfig `paths
66
66
  `vite-tsconfig-paths`) is Broken: it loads the React types package as React once Web UI comes from the registry. The fix is
67
67
  to drop it and give the `#/` alias through `imports` in `package.json`. A major or minor mismatch between the project and Web
68
68
  UI on a package listed under Aligned runtime packages in the `tooling` topic is a Deviation. Report both versions, with
69
- `npm install <package>@<Web UI's version>` as the fix.
69
+ `npm install <package>@<Web UI's version>` as the fix. A route-local file that the inline rule in the `project-structure`
70
+ topic says belongs in its route file is a Deviation, and so is a route file over 250 lines that inlines parts the rule would
71
+ keep in its `-` folder. Report the line counts, with the move as the fix.
70
72
 
71
73
  ## Topics
72
74
 
@@ -35,8 +35,11 @@ A route file holds its search schema and `validateSearch`, its loaders, and its
35
35
  Route-local code that outgrows small in-file components (views, forms, hooks, tests) goes in a sibling folder named `-` plus
36
36
  the route file's name: `route.tsx` gets `-route/`, `products.tsx` gets `-products/`. TanStack Router ignores files and
37
37
  folders with a leading `-` when it builds the route tree, so the folder never becomes a route. The folder holds the route's
38
- views with their props types, hooks, `.module.css` files, and tests. A component small enough to sit in the route file stays
39
- there.
38
+ views with their props types, hooks, `.module.css` files, and tests.
39
+
40
+ A part used by one route file is inlined into it when it is a component under 50 lines, calls no `use*` hook, has no
41
+ stylesheet or test of its own, and leaves that route file under 250 lines. Every other single-route part goes in the `-`
42
+ folder. The thresholds keep tiny wrappers out of their own files without letting a route file grow into a page of views.
40
43
 
41
44
  `partials/` holds only parts that more than one route uses.
42
45