@itrocks/handbook 0.0.13 → 0.0.16
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/AGENTS.md +2 -0
- package/docs/framework-changes/architecture/browser-components.md +10 -0
- package/docs/framework-changes/architecture/html-templates-and-targets.md +3 -0
- package/docs/framework-changes/documentation/markdown.md +12 -0
- package/docs/framework-usage/coding-conventions.md +3 -2
- package/package.json +1 -1
package/AGENTS.md
CHANGED
|
@@ -8,6 +8,8 @@ Paths below are relative to this package.
|
|
|
8
8
|
- Update instructions or conventions for AI agents: [agent conventions](docs/agent-conventions/README.md).
|
|
9
9
|
|
|
10
10
|
If a task spans several categories, read each applicable guide.
|
|
11
|
+
For any front-end change, follow
|
|
12
|
+
[interactive browser verification](docs/framework-changes/architecture/browser-components.md#interactive-browser-verification).
|
|
11
13
|
|
|
12
14
|
## Commits
|
|
13
15
|
|
|
@@ -11,6 +11,16 @@ Use semantic selectors and guard repeated activation when components do not alre
|
|
|
11
11
|
Load heavy or optional behaviour inside the callback. Browser subpath imports use explicit `.js` extensions.
|
|
12
12
|
Keep structure in HTML, behaviour in TypeScript and visual state in SCSS, sharing documented classes and attributes.
|
|
13
13
|
|
|
14
|
+
## Interactive browser verification
|
|
15
|
+
|
|
16
|
+
Test every front-end change interactively in a browser before delivery. Exercise the complete affected workflows in
|
|
17
|
+
the application, including related screens and actions that share the same UI. For business objects, follow the
|
|
18
|
+
applicable paths through the list, record view, edit form and save, then reopen the record to check the result.
|
|
19
|
+
|
|
20
|
+
Check that interactions work without errors, the workflow is easy to use, and the visible layout and behaviour
|
|
21
|
+
match the requested design and the rest of the application. Check relevant viewport sizes and dynamic navigation.
|
|
22
|
+
Use isolated test data when a workflow writes data. Builds and automated tests complement the interactive pass.
|
|
23
|
+
|
|
14
24
|
## Plugins and navigation
|
|
15
25
|
|
|
16
26
|
A host extends `HasPlugins<Host>`, accepts `Partial<Options<Host>>`, establishes its base state, then calls
|
|
@@ -11,6 +11,9 @@ For the structure of new object views, lists, forms and structured modal content
|
|
|
11
11
|
Author page and fragment markup in HTML templates. Server actions prepare data; browser code enhances the rendered DOM.
|
|
12
12
|
Do not assemble view markup in TypeScript strings or construct entire views with DOM creation calls.
|
|
13
13
|
|
|
14
|
+
Keep HTML nesting as shallow as possible and favour native semantic elements.
|
|
15
|
+
Use CSS for layout and visual styling. Remove wrappers that serve only a visual purpose.
|
|
16
|
+
|
|
14
17
|
The rendered standalone document and the DOM after fragment insertion must pass the
|
|
15
18
|
[W3C Nu HTML Checker](https://validator.w3.org/nu/). Validate rendered output, with template expressions resolved,
|
|
16
19
|
including conditional branches and representative dynamic values. Check source templates for valid HTML structure too.
|
|
@@ -19,6 +19,18 @@ Name context-specific sections explicitly. Keep manual setup and adapter wiring
|
|
|
19
19
|
already supplies them. Put dependency binding details in [dependency documentation](dependencies.md), linked from
|
|
20
20
|
the relevant context section.
|
|
21
21
|
|
|
22
|
+
## AI authorship
|
|
23
|
+
|
|
24
|
+
When AI writes a new document, add this notice near the top. In a package README, place it after the opening
|
|
25
|
+
description. In supporting documentation, place it after the title.
|
|
26
|
+
|
|
27
|
+
*This documentation was written by an artificial intelligence and may contain errors or approximations.
|
|
28
|
+
It has not yet been fully reviewed by a human. If anything seems unclear or incomplete,
|
|
29
|
+
please feel free to contact the author of this package.*
|
|
30
|
+
|
|
31
|
+
When AI edits an existing document, keep any existing notice. If the document has no notice, assume it has been
|
|
32
|
+
reviewed and approved by a human and leave the authorship unstated.
|
|
33
|
+
|
|
22
34
|
## Formatting
|
|
23
35
|
|
|
24
36
|
- Limit source lines to 120 columns, including Markdown syntax. Only indivisible content such as URLs may exceed it.
|
|
@@ -37,8 +37,9 @@ inferring placement from position thresholds.
|
|
|
37
37
|
- Put `{` on the next line for classes, interfaces, functions, methods and constructors.
|
|
38
38
|
- Keep `{` on the control line for conditions, loops, `switch`, `try`, `catch` and `finally`.
|
|
39
39
|
- Put `else`, `catch` and `finally` on a new line after the preceding `}`.
|
|
40
|
-
-
|
|
41
|
-
as `
|
|
40
|
+
- An `if` or `else` body may stay on the same line without braces only if the line fits within 120 columns and the
|
|
41
|
+
body is a single control-flow exit, such as `break`, `continue` or a `return` of nothing, a variable or a literal.
|
|
42
|
+
Otherwise, use braces and start the body on the next line. In an `if`/`else` pair, use braces for both or neither.
|
|
42
43
|
- For empty constructors, keep `{}` on the closing parameter line, including after a multiline parameter list.
|
|
43
44
|
- Leave a blank line after a non-empty class opening brace and before its closing brace.
|
|
44
45
|
|
package/package.json
CHANGED