@imfusion/web-ui 0.11.1-dev.2.g8a30ca7e → 0.11.1-dev.3.ga6fcf91c
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
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
|
|
12
12
|
- Agent skills — Nikolaus Brunner <brunner@imfusion.com>
|
|
13
13
|
- `imf-web-ui-conventions` exempts React components from the explicit return type on exported functions.
|
|
14
|
+
- The `project-structure` topic keeps a route's only view, such as a form, in the route file and moves views to the `-`
|
|
15
|
+
folder only when the page composes several. `imf-web-ui-audit` reports by views, not line counts.
|
|
14
16
|
- The `imf-web-ui-conventions` audit checklist names the assets box "Photographs: WebP", like its topic heading.
|
|
15
17
|
|
|
16
18
|
---
|
package/package.json
CHANGED
|
@@ -66,9 +66,8 @@ 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. A route
|
|
70
|
-
|
|
71
|
-
keep in its `-` folder. Report the line counts, with the move as the fix.
|
|
69
|
+
`npm install <package>@<Web UI's version>` as the fix. A route file that holds several views inline is a Deviation, and so is
|
|
70
|
+
a route whose only view sits alone in its `-` folder. Name the views, with the move as the fix.
|
|
72
71
|
|
|
73
72
|
## Topics
|
|
74
73
|
|
|
@@ -37,9 +37,9 @@ the route file's name: `route.tsx` gets `-route/`, `products.tsx` gets `-product
|
|
|
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
38
|
views with their props types, hooks, `.module.css` files, and tests.
|
|
39
39
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
The route component is the page. When the page is a single view, such as a form, that view is the route component and stays
|
|
41
|
+
in the route file, hooks included. When the page composes several views, each view goes in the `-` folder and the route
|
|
42
|
+
component wires them together. Small presentational helpers stay inline.
|
|
43
43
|
|
|
44
44
|
`partials/` holds only parts that more than one route uses.
|
|
45
45
|
|