intent-format 0.0.0-stage → 1.2.1

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.
Files changed (175) hide show
  1. package/.github/ISSUE_TEMPLATE/1-something-wrong.yml +18 -0
  2. package/.github/ISSUE_TEMPLATE/2-idea.yml +11 -0
  3. package/.github/ISSUE_TEMPLATE/config.yml +5 -0
  4. package/AGENTS.md +11 -0
  5. package/CHANGELOG.md +288 -0
  6. package/CLAUDE.md +1 -0
  7. package/CODE_OF_CONDUCT.md +128 -0
  8. package/CONTRIBUTING.md +19 -0
  9. package/LICENSE +21 -0
  10. package/README.md +72 -2
  11. package/SECURITY.md +10 -0
  12. package/VERSION +1 -0
  13. package/examples/example-app/AGENTS.md +19 -0
  14. package/examples/example-app/CLAUDE.md +1 -0
  15. package/examples/example-app/V1.0/apis/_index.md +14 -0
  16. package/examples/example-app/V1.0/apis/ap000001-list-items.md +20 -0
  17. package/examples/example-app/V1.0/apis/ap000002-save-item.md +28 -0
  18. package/examples/example-app/V1.0/backend/_index.md +15 -0
  19. package/examples/example-app/V1.0/backend/bn000001-app-server.md +24 -0
  20. package/examples/example-app/V1.0/backend/bn000002-main-database.md +22 -0
  21. package/examples/example-app/V1.0/backend/bn000003-file-storage.md +22 -0
  22. package/examples/example-app/V1.0/comments/_index.md +13 -0
  23. package/examples/example-app/V1.0/comments/cm000001-empty-list-message.md +15 -0
  24. package/examples/example-app/V1.0/components/_index.md +16 -0
  25. package/examples/example-app/V1.0/components/cp000001-button.md +32 -0
  26. package/examples/example-app/V1.0/components/cp000002-text-field.md +31 -0
  27. package/examples/example-app/V1.0/components/cp000003-item-row.md +34 -0
  28. package/examples/example-app/V1.0/components/cp000004-top-bar.md +26 -0
  29. package/examples/example-app/V1.0/decisions/_index.md +13 -0
  30. package/examples/example-app/V1.0/decisions/dc000001-where-do-item-images-live.md +26 -0
  31. package/examples/example-app/V1.0/edge-cases/_index.md +13 -0
  32. package/examples/example-app/V1.0/edge-cases/ec000001-save-fails.md +24 -0
  33. package/examples/example-app/V1.0/features/_index.md +17 -0
  34. package/examples/example-app/V1.0/features/ft000001-items.md +22 -0
  35. package/examples/example-app/V1.0/features/ft000002-account.md +21 -0
  36. package/examples/example-app/V1.0/features/ft000003-browse-items.md +26 -0
  37. package/examples/example-app/V1.0/features/ft000004-edit-an-item.md +33 -0
  38. package/examples/example-app/V1.0/features/ft000005-change-settings.md +21 -0
  39. package/examples/example-app/V1.0/ia/_index.md +13 -0
  40. package/examples/example-app/V1.0/ia/ia000001-main-map.md +23 -0
  41. package/examples/example-app/V1.0/intent-format.md +12 -0
  42. package/examples/example-app/V1.0/project.md +51 -0
  43. package/examples/example-app/V1.0/roles/_index.md +14 -0
  44. package/examples/example-app/V1.0/roles/ro000001-member.md +22 -0
  45. package/examples/example-app/V1.0/roles/ro000002-admin.md +19 -0
  46. package/examples/example-app/V1.0/rules/_index.md +13 -0
  47. package/examples/example-app/V1.0/rules/rl000001-item-name-is-required.md +20 -0
  48. package/examples/example-app/V1.0/screens/_index.md +17 -0
  49. package/examples/example-app/V1.0/screens/sc000001-home.md +18 -0
  50. package/examples/example-app/V1.0/screens/sc000002-item-list.md +43 -0
  51. package/examples/example-app/V1.0/screens/sc000003-item-detail.md +24 -0
  52. package/examples/example-app/V1.0/screens/sc000004-edit-item.md +35 -0
  53. package/examples/example-app/V1.0/screens/sc000005-settings.md +19 -0
  54. package/examples/example-app/V1.0/shells/_index.md +8 -0
  55. package/examples/example-app/V1.0/tech/_index.md +14 -0
  56. package/examples/example-app/V1.0/tech/tc000001-ui-framework.md +23 -0
  57. package/examples/example-app/V1.0/tech/tc000002-relational-database.md +25 -0
  58. package/examples/example-app/V1.0/userflows/_index.md +14 -0
  59. package/examples/example-app/V1.0/userflows/uf000001-create-an-item.md +66 -0
  60. package/examples/example-app/V1.0/userflows/uf000002-edit-an-item.md +47 -0
  61. package/examples/example-app/V1.1/CHANGES.md +12 -0
  62. package/examples/example-app/V1.1/apis/_index.md +14 -0
  63. package/examples/example-app/V1.1/apis/ap000001-list-items.md +20 -0
  64. package/examples/example-app/V1.1/apis/ap000002-save-item.md +28 -0
  65. package/examples/example-app/V1.1/backend/_index.md +15 -0
  66. package/examples/example-app/V1.1/backend/bn000001-app-server.md +24 -0
  67. package/examples/example-app/V1.1/backend/bn000002-main-database.md +22 -0
  68. package/examples/example-app/V1.1/backend/bn000003-file-storage.md +22 -0
  69. package/examples/example-app/V1.1/comments/_index.md +14 -0
  70. package/examples/example-app/V1.1/comments/cm000001-empty-list-message.md +15 -0
  71. package/examples/example-app/V1.1/comments/cm000002-filter-placement.md +12 -0
  72. package/examples/example-app/V1.1/components/_index.md +16 -0
  73. package/examples/example-app/V1.1/components/cp000001-button.md +32 -0
  74. package/examples/example-app/V1.1/components/cp000002-text-field.md +32 -0
  75. package/examples/example-app/V1.1/components/cp000003-item-row.md +34 -0
  76. package/examples/example-app/V1.1/components/cp000004-top-bar.md +26 -0
  77. package/examples/example-app/V1.1/decisions/_index.md +13 -0
  78. package/examples/example-app/V1.1/decisions/dc000001-where-do-item-images-live.md +26 -0
  79. package/examples/example-app/V1.1/edge-cases/_index.md +13 -0
  80. package/examples/example-app/V1.1/edge-cases/ec000001-save-fails.md +24 -0
  81. package/examples/example-app/V1.1/features/_index.md +17 -0
  82. package/examples/example-app/V1.1/features/ft000001-items.md +22 -0
  83. package/examples/example-app/V1.1/features/ft000002-account.md +21 -0
  84. package/examples/example-app/V1.1/features/ft000003-browse-items.md +26 -0
  85. package/examples/example-app/V1.1/features/ft000004-edit-an-item.md +33 -0
  86. package/examples/example-app/V1.1/features/ft000005-change-settings.md +21 -0
  87. package/examples/example-app/V1.1/ia/_index.md +13 -0
  88. package/examples/example-app/V1.1/ia/ia000001-main-map.md +23 -0
  89. package/examples/example-app/V1.1/intent-format.md +13 -0
  90. package/examples/example-app/V1.1/project.md +51 -0
  91. package/examples/example-app/V1.1/roles/_index.md +14 -0
  92. package/examples/example-app/V1.1/roles/ro000001-member.md +22 -0
  93. package/examples/example-app/V1.1/roles/ro000002-admin.md +19 -0
  94. package/examples/example-app/V1.1/rules/_index.md +13 -0
  95. package/examples/example-app/V1.1/rules/rl000001-item-name-is-required.md +20 -0
  96. package/examples/example-app/V1.1/screens/_index.md +17 -0
  97. package/examples/example-app/V1.1/screens/sc000001-home.md +18 -0
  98. package/examples/example-app/V1.1/screens/sc000002-item-list.md +44 -0
  99. package/examples/example-app/V1.1/screens/sc000003-item-detail.md +24 -0
  100. package/examples/example-app/V1.1/screens/sc000004-edit-item.md +35 -0
  101. package/examples/example-app/V1.1/screens/sc000005-settings.md +19 -0
  102. package/examples/example-app/V1.1/shells/_index.md +8 -0
  103. package/examples/example-app/V1.1/tech/_index.md +14 -0
  104. package/examples/example-app/V1.1/tech/tc000001-ui-framework.md +23 -0
  105. package/examples/example-app/V1.1/tech/tc000002-relational-database.md +25 -0
  106. package/examples/example-app/V1.1/userflows/_index.md +14 -0
  107. package/examples/example-app/V1.1/userflows/uf000001-create-an-item.md +66 -0
  108. package/examples/example-app/V1.1/userflows/uf000002-edit-an-item.md +47 -0
  109. package/examples/example-app/_ids.md +78 -0
  110. package/examples/example-app/_index.md +14 -0
  111. package/examples/example-app/inputs/brief.md +3 -0
  112. package/examples/example-app/inputs/links.md +3 -0
  113. package/kit/cli/README.md +128 -0
  114. package/kit/cli/intent-format.mjs +342 -0
  115. package/kit/cli/lib/agents.mjs +39 -0
  116. package/kit/cli/lib/check.mjs +412 -0
  117. package/kit/cli/lib/create.mjs +190 -0
  118. package/kit/cli/lib/frame.mjs +182 -0
  119. package/kit/cli/lib/generate.mjs +418 -0
  120. package/kit/cli/lib/kit.mjs +203 -0
  121. package/kit/cli/lib/migrate.mjs +97 -0
  122. package/kit/cli/lib/model.mjs +409 -0
  123. package/kit/cli/lib/next.mjs +134 -0
  124. package/kit/cli/lib/open.mjs +34 -0
  125. package/kit/cli/lib/parse.mjs +260 -0
  126. package/kit/cli/lib/project.mjs +120 -0
  127. package/kit/cli/lib/regen.mjs +112 -0
  128. package/kit/cli/lib/relations.mjs +380 -0
  129. package/kit/cli/lib/rename.mjs +23 -0
  130. package/kit/cli/lib/schema.mjs +185 -0
  131. package/kit/cli/lib/templates.mjs +41 -0
  132. package/kit/cli/lib/util.mjs +165 -0
  133. package/kit/cli/test/nav.mjs +145 -0
  134. package/kit/cli/test/roles.mjs +85 -0
  135. package/kit/cli/test/smoke.mjs +716 -0
  136. package/kit/skills/intent-format/SKILL.md +91 -0
  137. package/kit/skills/intent-format/links.md +142 -0
  138. package/kit/skills/intent-format/types/_overview.md +73 -0
  139. package/kit/skills/intent-format/types/api.md +111 -0
  140. package/kit/skills/intent-format/types/backend.md +110 -0
  141. package/kit/skills/intent-format/types/comment.md +66 -0
  142. package/kit/skills/intent-format/types/component.md +139 -0
  143. package/kit/skills/intent-format/types/decision.md +91 -0
  144. package/kit/skills/intent-format/types/edge-case.md +107 -0
  145. package/kit/skills/intent-format/types/feature.md +154 -0
  146. package/kit/skills/intent-format/types/ia.md +106 -0
  147. package/kit/skills/intent-format/types/project.md +131 -0
  148. package/kit/skills/intent-format/types/role.md +98 -0
  149. package/kit/skills/intent-format/types/rule.md +100 -0
  150. package/kit/skills/intent-format/types/screen.md +153 -0
  151. package/kit/skills/intent-format/types/shell.md +156 -0
  152. package/kit/skills/intent-format/types/tech.md +109 -0
  153. package/kit/skills/intent-format/types/userflow.md +197 -0
  154. package/kit/skills/kb-cold-start/SKILL.md +124 -0
  155. package/kit/skills/kb-cold-start/kickoff-questionnaire.md +42 -0
  156. package/kit/skills/kb-cold-start/templates.md +108 -0
  157. package/package.json +30 -4
  158. package/rationale.md +180 -0
  159. package/schema.json +5895 -0
  160. package/spec.md +1173 -0
  161. package/templates/api.md +16 -0
  162. package/templates/backend.md +15 -0
  163. package/templates/comment.md +11 -0
  164. package/templates/component.md +15 -0
  165. package/templates/decision.md +23 -0
  166. package/templates/edge-case.md +14 -0
  167. package/templates/feature.md +14 -0
  168. package/templates/ia.md +14 -0
  169. package/templates/project.md +34 -0
  170. package/templates/role.md +14 -0
  171. package/templates/rule.md +14 -0
  172. package/templates/screen.md +14 -0
  173. package/templates/shell.md +24 -0
  174. package/templates/tech.md +18 -0
  175. package/templates/userflow.md +20 -0
@@ -0,0 +1,22 @@
1
+ ---
2
+ standard: IntentFormat/1.2
3
+ type: role
4
+ id: RO000001
5
+ name: Member
6
+ status: In design
7
+ platform: [Web, Mobile]
8
+ ---
9
+ # Member · #RO000001
10
+ > ⚙ #RO000001V1.0 · V1.0 released
11
+
12
+ ## Description
13
+ Keeps a personal list of items; mostly on the phone, several times a week.
14
+
15
+ ## Why
16
+ The product exists for this user; every story names them.
17
+
18
+ ## ⚙ Stories
19
+ - [#PR000001 Example app](../project.md) · story: User stories
20
+ - [#FT000003 Browse items](../features/ft000003-browse-items.md) · story: R1
21
+ - [#FT000004 Edit an item](../features/ft000004-edit-an-item.md) · story: R1
22
+ - [#FT000005 Change settings](../features/ft000005-change-settings.md) · story: R1
@@ -0,0 +1,19 @@
1
+ ---
2
+ standard: IntentFormat/1.2
3
+ type: role
4
+ id: RO000002
5
+ name: Admin
6
+ status: Idea
7
+ platform: Web
8
+ ---
9
+ # Admin · #RO000002
10
+ > ⚙ #RO000002V1.0 · V1.0 released
11
+
12
+ ## Description
13
+ Reviews the items of all Members, on the web.
14
+
15
+ ## Why
16
+ Someone has to keep the shared list clean. [likely]
17
+
18
+ ## ⚙ Stories
19
+ - [#PR000001 Example app](../project.md) · story: User stories
@@ -0,0 +1,13 @@
1
+ ---
2
+ standard: IntentFormat/1.2
3
+ type: index
4
+ name: Rules
5
+ ---
6
+ # Rules
7
+
8
+ One business rule stated once, in plain words; every other card references it.
9
+
10
+ ## ⚙ Contents
11
+ | ID | Name | Status | One-liner | Blind spots |
12
+ |---|---|---|---|---|
13
+ | [#RL000001](rl000001-item-name-is-required.md) | Item name is required | Approved | If the item name is empty, then the system shall refuse to save the item and say why. | 0 |
@@ -0,0 +1,20 @@
1
+ ---
2
+ standard: IntentFormat/1.2
3
+ type: rule
4
+ id: RL000001
5
+ name: Item name is required
6
+ status: Approved
7
+ ---
8
+ # Item name is required · #RL000001
9
+ > ⚙ #RL000001V1.0 · V1.0 released
10
+
11
+ ## Description
12
+ **R1 · EARS** If the item name is empty, then the system shall refuse to save the item and say why.
13
+
14
+ ## Why
15
+ An item without a name cannot be found again in the list.
16
+
17
+ ## ⚙ Applied in
18
+ - [#SC000004 Edit item](../screens/sc000004-edit-item.md)
19
+ - [#UF000001 Create an item](../userflows/uf000001-create-an-item.md) · at: #FS000003
20
+ - [#UF000002 Edit an item](../userflows/uf000002-edit-an-item.md) · at: #FS000008
@@ -0,0 +1,17 @@
1
+ ---
2
+ standard: IntentFormat/1.2
3
+ type: index
4
+ name: Screens
5
+ ---
6
+ # Screens
7
+
8
+ A place the user can be: what it is for and what it is made of.
9
+
10
+ ## ⚙ Contents
11
+ | ID | Name | Status | Feature | One-liner | Blind spots |
12
+ |---|---|---|---|---|---|
13
+ | [#SC000001](sc000001-home.md) | Home | In design | — | The starting point of the app. | 0 |
14
+ | [#SC000002](sc000002-item-list.md) | Item list | In design | [#FT000003 Browse items](../features/ft000003-browse-items.md) | Shows all of a Member's items as rows; choosing a row opens Item detail. | 0 |
15
+ | [#SC000003](sc000003-item-detail.md) | Item detail | In design | [#FT000003 Browse items](../features/ft000003-browse-items.md) | Shows one item with all its details. | 0 |
16
+ | [#SC000004](sc000004-edit-item.md) | Edit item | In design | [#FT000004 Edit an item](../features/ft000004-edit-an-item.md) | Lets a Member change an item's name and notes. | 0 |
17
+ | [#SC000005](sc000005-settings.md) | Settings | Idea | [#FT000005 Change settings](../features/ft000005-change-settings.md) | Lets a Member change how the app behaves. | 0 |
@@ -0,0 +1,18 @@
1
+ ---
2
+ standard: IntentFormat/1.2
3
+ type: screen
4
+ id: SC000001
5
+ name: Home
6
+ status: In design
7
+ ---
8
+ # Home · #SC000001
9
+ > ⚙ #SC000001V1.0 · V1.0 released
10
+
11
+ ## Description
12
+ The starting point of the app.
13
+
14
+ ## Components
15
+ 1. [#CP000004 Top bar](../components/cp000004-top-bar.md)
16
+
17
+ ## ⚙ On maps
18
+ - [#IA000001 Main map](../ia/ia000001-main-map.md)
@@ -0,0 +1,43 @@
1
+ ---
2
+ standard: IntentFormat/1.2
3
+ type: screen
4
+ id: SC000002
5
+ name: Item list
6
+ status: In design
7
+ feature: FT000003
8
+ ---
9
+ # Item list · #SC000002
10
+ > ⚙ #SC000002V1.0 · V1.0 released
11
+
12
+ ## Description
13
+ Shows all of a Member's items as rows; choosing a row opens Item detail.
14
+
15
+ **R1 · GWT**
16
+ Given a Member with no items
17
+ When the Item list opens
18
+ Then an empty-list message and a create button are shown
19
+
20
+ ## Components
21
+ 1. [#CP000004 Top bar](../components/cp000004-top-bar.md)
22
+ 2. [#CP000003 Item row](../components/cp000003-item-row.md) — one per item
23
+ 3. [#CP000001 Button](../components/cp000001-button.md) — creates an item
24
+
25
+ ## Variants
26
+ ### Picker · #SV000001
27
+ <a id="sv000001"></a>
28
+ opens-as: Side panel
29
+
30
+ 1. [#CP000003 Item row](../components/cp000003-item-row.md) · variant: Compact
31
+
32
+ ## APIs
33
+ - [#AP000001 List items](../apis/ap000001-list-items.md)
34
+
35
+ ## Comments
36
+ - [#CM000001 Empty-list message](../comments/cm000001-empty-list-message.md)
37
+
38
+ ## ⚙ On maps
39
+ - [#IA000001 Main map](../ia/ia000001-main-map.md) · under: #SC000001
40
+
41
+ ## ⚙ In user flows
42
+ - [#UF000001 Create an item](../userflows/uf000001-create-an-item.md) · at: #FS000001
43
+ - [#UF000001 Create an item](../userflows/uf000001-create-an-item.md) · at: #FS000005
@@ -0,0 +1,24 @@
1
+ ---
2
+ standard: IntentFormat/1.2
3
+ type: screen
4
+ id: SC000003
5
+ name: Item detail
6
+ status: In design
7
+ feature: FT000003
8
+ ---
9
+ # Item detail · #SC000003
10
+ > ⚙ #SC000003V1.0 · V1.0 released
11
+
12
+ ## Description
13
+ Shows one item with all its details.
14
+
15
+ ## Components
16
+ 1. [#CP000004 Top bar](../components/cp000004-top-bar.md)
17
+ 2. [#CP000001 Button](../components/cp000001-button.md) — edits the item
18
+
19
+ ## ⚙ On maps
20
+ - [#IA000001 Main map](../ia/ia000001-main-map.md) · under: #SC000002
21
+
22
+ ## ⚙ In user flows
23
+ - [#UF000002 Edit an item](../userflows/uf000002-edit-an-item.md) · at: #FS000006
24
+ - [#UF000002 Edit an item](../userflows/uf000002-edit-an-item.md) · at: #FS000009
@@ -0,0 +1,35 @@
1
+ ---
2
+ standard: IntentFormat/1.2
3
+ type: screen
4
+ id: SC000004
5
+ name: Edit item
6
+ status: In design
7
+ feature: FT000004
8
+ opens-as: Side panel
9
+ ---
10
+ # Edit item · #SC000004
11
+ > ⚙ #SC000004V1.0 · V1.0 released
12
+
13
+ ## Description
14
+ Lets a Member change an item's name and notes.
15
+
16
+ ## Rules
17
+ - [#RL000001 Item name is required](../rules/rl000001-item-name-is-required.md)
18
+
19
+ ## Components
20
+ 1. [#CP000004 Top bar](../components/cp000004-top-bar.md)
21
+ 2. [#CP000002 Text field](../components/cp000002-text-field.md) — item name
22
+ 3. [#CP000001 Button](../components/cp000001-button.md) — saves the item
23
+
24
+ ## APIs
25
+ - [#AP000002 Save item](../apis/ap000002-save-item.md)
26
+
27
+ ## ⚙ On maps
28
+ - [#IA000001 Main map](../ia/ia000001-main-map.md) · under: #SC000003
29
+
30
+ ## ⚙ In user flows
31
+ - [#UF000001 Create an item](../userflows/uf000001-create-an-item.md) · at: #FS000002
32
+ - [#UF000002 Edit an item](../userflows/uf000002-edit-an-item.md) · at: #FS000007
33
+
34
+ ## ⚙ Edge cases
35
+ - [#EC000001 Save fails](../edge-cases/ec000001-save-fails.md) · severity: Medium
@@ -0,0 +1,19 @@
1
+ ---
2
+ standard: IntentFormat/1.2
3
+ type: screen
4
+ id: SC000005
5
+ name: Settings
6
+ status: Idea
7
+ feature: FT000005
8
+ ---
9
+ # Settings · #SC000005
10
+ > ⚙ #SC000005V1.0 · V1.0 released
11
+
12
+ ## Description
13
+ Lets a Member change how the app behaves.
14
+
15
+ ## Components
16
+ 1. [#CP000004 Top bar](../components/cp000004-top-bar.md)
17
+
18
+ ## ⚙ On maps
19
+ - [#IA000001 Main map](../ia/ia000001-main-map.md) · under: #SC000001
@@ -0,0 +1,8 @@
1
+ ---
2
+ standard: IntentFormat/1.2
3
+ type: index
4
+ name: Shells
5
+ ---
6
+ # Shells
7
+
8
+ The frame around places: what is always there, where it leads, and the rules for whatever it frames. Described once, resolved per placement.
@@ -0,0 +1,14 @@
1
+ ---
2
+ standard: IntentFormat/1.2
3
+ type: index
4
+ name: Tech
5
+ ---
6
+ # Tech
7
+
8
+ A technology the product uses or considers: what it is, why, and the alternatives.
9
+
10
+ ## ⚙ Contents
11
+ | ID | Name | Status | One-liner | Blind spots |
12
+ |---|---|---|---|---|
13
+ | [#TC000001](tc000001-ui-framework.md) | UI framework | Adopted | Renders every screen and component of the app. | 0 |
14
+ | [#TC000002](tc000002-relational-database.md) | Relational database | Adopted | Keeps items and settings in tables with transactions. | 0 |
@@ -0,0 +1,23 @@
1
+ ---
2
+ standard: IntentFormat/1.2
3
+ type: tech
4
+ id: TC000001
5
+ name: UI framework
6
+ status: Adopted
7
+ category: Frontend
8
+ ---
9
+ # UI framework · #TC000001
10
+ > ⚙ #TC000001V1.0 · V1.0 released
11
+
12
+ ## Description
13
+ Renders every screen and component of the app.
14
+
15
+ ## Why
16
+ One component model for the web and mobile screens.
17
+
18
+ ## Alternatives
19
+ none
20
+
21
+ ## ⚙ Used by
22
+ - [#PR000001 Example app](../project.md)
23
+ - [#CP000004 Top bar](../components/cp000004-top-bar.md)
@@ -0,0 +1,25 @@
1
+ ---
2
+ standard: IntentFormat/1.2
3
+ type: tech
4
+ id: TC000002
5
+ name: Relational database
6
+ status: Adopted
7
+ category: Data & storage
8
+ tech-version: "16"
9
+ license: Open source
10
+ ---
11
+ # Relational database · #TC000002
12
+ > ⚙ #TC000002V1.0 · V1.0 released
13
+
14
+ ## Description
15
+ Keeps items and settings in tables with transactions.
16
+
17
+ ## Why
18
+ Items have a fixed shape and need safe concurrent updates.
19
+
20
+ ## Alternatives
21
+ - [~ Document database]
22
+
23
+ ## ⚙ Used by
24
+ - [#PR000001 Example app](../project.md)
25
+ - [#BN000002 Main database](../backend/bn000002-main-database.md)
@@ -0,0 +1,14 @@
1
+ ---
2
+ standard: IntentFormat/1.2
3
+ type: index
4
+ name: User flows
5
+ ---
6
+ # User flows
7
+
8
+ A journey in one file: typed steps, an ordered step list per variant, and fork wiring.
9
+
10
+ ## ⚙ Contents
11
+ | ID | Name | Status | Feature | One-liner | Blind spots |
12
+ |---|---|---|---|---|---|
13
+ | [#UF000001](uf000001-create-an-item.md) | Create an item | In design | [#FT000004 Edit an item](../features/ft000004-edit-an-item.md) | A Member adds a new item from the Item list and returns to the list with the item saved. | 0 |
14
+ | [#UF000002](uf000002-edit-an-item.md) | Edit an item | In design | [#FT000004 Edit an item](../features/ft000004-edit-an-item.md) | A Member changes an existing item and returns to its details. | 0 |
@@ -0,0 +1,66 @@
1
+ ---
2
+ standard: IntentFormat/1.2
3
+ type: userflow
4
+ id: UF000001
5
+ name: Create an item
6
+ status: In design
7
+ feature: FT000004
8
+ ---
9
+ # Create an item · #UF000001
10
+ > ⚙ #UF000001V1.0 · V1.0 released
11
+
12
+ ## Description
13
+ A Member adds a new item from the Item list and returns to the list with the item saved.
14
+
15
+ ## Why
16
+ The main use case of Items: without it nothing gets into the list.
17
+
18
+ ## Step list
19
+ 1. [#FS000001 Start from the list](#fs000001)
20
+ 2. [#FS000002 Enter item details](#fs000002)
21
+ 3. [#FS000003 Name valid?](#fs000003)
22
+ 4. [#FS000004 Save the item](#fs000004)
23
+ 5. [#FS000005 Item created](#fs000005)
24
+
25
+ ### Quick add
26
+ platform: Mobile
27
+
28
+ 1. [#FS000001 Start from the list](#fs000001)
29
+ 2. [#FS000002 Enter item details](#fs000002)
30
+ 3. [#FS000004 Save the item](#fs000004)
31
+ 4. [#FS000005 Item created](#fs000005)
32
+
33
+ ## Steps
34
+ ### ○ Start from the list · #FS000001
35
+ <a id="fs000001"></a>
36
+
37
+ - Entry: the Member taps Create on the Item list.
38
+ - Screen: [#SC000002 Item list](../screens/sc000002-item-list.md)
39
+
40
+ ### □ Enter item details · #FS000002
41
+ <a id="fs000002"></a>
42
+
43
+ - Screen: [#SC000004 Edit item](../screens/sc000004-edit-item.md)
44
+ - Component: [#CP000002 Text field](../components/cp000002-text-field.md)
45
+
46
+ The Member types a name and optional notes.
47
+
48
+ ### ◇ Name valid? · #FS000003
49
+ <a id="fs000003"></a>
50
+
51
+ - Branch: Yes → [#FS000004 Save the item](#fs000004) · primary
52
+ - Branch: No → [#FS000002 Enter item details](#fs000002) · rule: #RL000001
53
+
54
+ ### ⚡ Save the item · #FS000004
55
+ <a id="fs000004"></a>
56
+
57
+ - API: [#AP000002 Save item](../apis/ap000002-save-item.md)
58
+
59
+ ### ◎ Item created · #FS000005
60
+ <a id="fs000005"></a>
61
+
62
+ - Outcome: the new item is saved and shown on the Item list.
63
+ - Screen: [#SC000002 Item list](../screens/sc000002-item-list.md)
64
+
65
+ ## ⚙ Edge cases
66
+ - [#EC000001 Save fails](../edge-cases/ec000001-save-fails.md) · at: #FS000004 · severity: Medium
@@ -0,0 +1,47 @@
1
+ ---
2
+ standard: IntentFormat/1.2
3
+ type: userflow
4
+ id: UF000002
5
+ name: Edit an item
6
+ status: In design
7
+ feature: FT000004
8
+ ---
9
+ # Edit an item · #UF000002
10
+ > ⚙ #UF000002V1.0 · V1.0 released
11
+
12
+ ## Description
13
+ A Member changes an existing item and returns to its details.
14
+
15
+ ## Why
16
+ Details change; the list must follow.
17
+
18
+ ## Step list
19
+ 1. [#FS000006 Open the item](#fs000006)
20
+ 2. [#FS000007 Change the details](#fs000007)
21
+ 3. [#FS000008 Save the changes](#fs000008)
22
+ 4. [#FS000009 Item updated](#fs000009)
23
+
24
+ ## Steps
25
+ ### ○ Open the item · #FS000006
26
+ <a id="fs000006"></a>
27
+
28
+ - Entry: the Member chooses an item on the Item list.
29
+ - Screen: [#SC000003 Item detail](../screens/sc000003-item-detail.md)
30
+
31
+ ### □ Change the details · #FS000007
32
+ <a id="fs000007"></a>
33
+
34
+ - Screen: [#SC000004 Edit item](../screens/sc000004-edit-item.md)
35
+ - Component: [#CP000002 Text field](../components/cp000002-text-field.md)
36
+
37
+ ### ⚡ Save the changes · #FS000008
38
+ <a id="fs000008"></a>
39
+
40
+ - API: [#AP000002 Save item](../apis/ap000002-save-item.md)
41
+ - Applies rule: [#RL000001 Item name is required](../rules/rl000001-item-name-is-required.md)
42
+
43
+ ### ◎ Item updated · #FS000009
44
+ <a id="fs000009"></a>
45
+
46
+ - Outcome: the changes are saved and shown on Item detail.
47
+ - Screen: [#SC000003 Item detail](../screens/sc000003-item-detail.md)
@@ -0,0 +1,12 @@
1
+ ---
2
+ standard: IntentFormat/1.2
3
+ type: index
4
+ name: Changes
5
+ ---
6
+ # Changes · V1.1 · based on V1.0
7
+
8
+ ## ⚙ New
9
+ - [#CM000002 Filter placement](comments/cm000002-filter-placement.md)
10
+
11
+ ## ⚙ Changed
12
+ - [#SC000002 Item list](screens/sc000002-item-list.md) · changed: Components
@@ -0,0 +1,14 @@
1
+ ---
2
+ standard: IntentFormat/1.2
3
+ type: index
4
+ name: APIs
5
+ ---
6
+ # APIs
7
+
8
+ One API call: method, endpoint, what it does and the backend node that serves it.
9
+
10
+ ## ⚙ Contents
11
+ | ID | Name | Status | One-liner | Blind spots |
12
+ |---|---|---|---|---|
13
+ | [#AP000001](ap000001-list-items.md) | List items | In build | Returns the items of the signed-in Member, newest first. | 0 |
14
+ | [#AP000002](ap000002-save-item.md) | Save item | In build | Creates or updates one item and returns the stored version. | 0 |
@@ -0,0 +1,20 @@
1
+ ---
2
+ standard: IntentFormat/1.2
3
+ type: api
4
+ id: AP000001
5
+ name: List items
6
+ status: In build
7
+ method: GET
8
+ endpoint: /items
9
+ ---
10
+ # List items · #AP000001
11
+ > ⚙ #AP000001V1.1 · V1.1 in-progress · based on V1.0 · unchanged
12
+
13
+ ## Description
14
+ Returns the items of the signed-in Member, newest first.
15
+
16
+ ## Served by
17
+ - [#BN000001 App server](../backend/bn000001-app-server.md)
18
+
19
+ ## ⚙ Called from
20
+ - [#SC000002 Item list](../screens/sc000002-item-list.md)
@@ -0,0 +1,28 @@
1
+ ---
2
+ standard: IntentFormat/1.2
3
+ type: api
4
+ id: AP000002
5
+ name: Save item
6
+ status: In build
7
+ method: PUT
8
+ endpoint: /items/{id}
9
+ ---
10
+ # Save item · #AP000002
11
+ > ⚙ #AP000002V1.1 · V1.1 in-progress · based on V1.0 · unchanged
12
+
13
+ ## Description
14
+ Creates or updates one item and returns the stored version.
15
+
16
+ ## Served by
17
+ - [#BN000001 App server](../backend/bn000001-app-server.md)
18
+
19
+ ## ⚙ Called from
20
+ - [#SC000004 Edit item](../screens/sc000004-edit-item.md)
21
+ - [#UF000001 Create an item](../userflows/uf000001-create-an-item.md) · at: #FS000004
22
+ - [#UF000002 Edit an item](../userflows/uf000002-edit-an-item.md) · at: #FS000008
23
+
24
+ ## ⚙ Edge cases
25
+ - [#EC000001 Save fails](../edge-cases/ec000001-save-fails.md) · severity: Medium
26
+
27
+ ## ⚙ Decisions
28
+ - [#DC000001 Where do item images live?](../decisions/dc000001-where-do-item-images-live.md) · status: Open
@@ -0,0 +1,15 @@
1
+ ---
2
+ standard: IntentFormat/1.2
3
+ type: index
4
+ name: Backend
5
+ ---
6
+ # Backend
7
+
8
+ A backend node of this product and its connections.
9
+
10
+ ## ⚙ Contents
11
+ | ID | Name | Status | One-liner | Blind spots |
12
+ |---|---|---|---|---|
13
+ | [#BN000001](bn000001-app-server.md) | App server | In build | Serves the item APIs and reads and writes the stored data. | 0 |
14
+ | [#BN000002](bn000002-main-database.md) | Main database | In build | Stores items and settings. | 0 |
15
+ | [#BN000003](bn000003-file-storage.md) | File storage | Idea | Keeps files attached to items. | 0 |
@@ -0,0 +1,24 @@
1
+ ---
2
+ standard: IntentFormat/1.2
3
+ type: backend
4
+ id: BN000001
5
+ name: App server
6
+ status: In build
7
+ backend-type: server
8
+ ---
9
+ # App server · #BN000001
10
+ > ⚙ #BN000001V1.1 · V1.1 in-progress · based on V1.0 · unchanged
11
+
12
+ ## Description
13
+ Serves the item APIs and reads and writes the stored data.
14
+
15
+ ## Connections
16
+ - [#BN000002 Main database](bn000002-main-database.md) · kind: stores
17
+ - [#BN000003 File storage](bn000003-file-storage.md) · kind: stores
18
+
19
+ ## Built with
20
+ - [~ Server runtime]
21
+
22
+ ## ⚙ Serves
23
+ - [#AP000001 List items](../apis/ap000001-list-items.md)
24
+ - [#AP000002 Save item](../apis/ap000002-save-item.md)
@@ -0,0 +1,22 @@
1
+ ---
2
+ standard: IntentFormat/1.2
3
+ type: backend
4
+ id: BN000002
5
+ name: Main database
6
+ status: In build
7
+ backend-type: database
8
+ ---
9
+ # Main database · #BN000002
10
+ > ⚙ #BN000002V1.1 · V1.1 in-progress · based on V1.0 · unchanged
11
+
12
+ ## Description
13
+ Stores items and settings.
14
+
15
+ ## Connections
16
+ none
17
+
18
+ ## Built with
19
+ - [#TC000002 Relational database](../tech/tc000002-relational-database.md)
20
+
21
+ ## ⚙ Connected from
22
+ - [#BN000001 App server](bn000001-app-server.md) · kind: stores
@@ -0,0 +1,22 @@
1
+ ---
2
+ standard: IntentFormat/1.2
3
+ type: backend
4
+ id: BN000003
5
+ name: File storage
6
+ status: Idea
7
+ backend-type: storage
8
+ ---
9
+ # File storage · #BN000003
10
+ > ⚙ #BN000003V1.1 · V1.1 in-progress · based on V1.0 · unchanged
11
+
12
+ ## Description
13
+ Keeps files attached to items.
14
+
15
+ ## Connections
16
+ none
17
+
18
+ ## ⚙ Connected from
19
+ - [#BN000001 App server](bn000001-app-server.md) · kind: stores
20
+
21
+ ## ⚙ Decisions
22
+ - [#DC000001 Where do item images live?](../decisions/dc000001-where-do-item-images-live.md) · status: Open
@@ -0,0 +1,14 @@
1
+ ---
2
+ standard: IntentFormat/1.2
3
+ type: index
4
+ name: Comments
5
+ ---
6
+ # Comments
7
+
8
+ One remark, attached from the cards it is about; its text lives only here.
9
+
10
+ ## ⚙ Contents
11
+ | ID | Name | Status | One-liner | Blind spots |
12
+ |---|---|---|---|---|
13
+ | [#CM000001](cm000001-empty-list-message.md) | Empty-list message | Open | Should the empty Item list also offer to import items? | 0 |
14
+ | [#CM000002](cm000002-filter-placement.md) | Filter placement | Open | Should the filter field sit in the Top bar instead? | 0 |
@@ -0,0 +1,15 @@
1
+ ---
2
+ standard: IntentFormat/1.2
3
+ type: comment
4
+ id: CM000001
5
+ name: Empty-list message
6
+ status: Open
7
+ author: Product owner
8
+ ---
9
+ # Empty-list message · #CM000001
10
+ > ⚙ #CM000001V1.1 · V1.1 in-progress · based on V1.0 · unchanged
11
+
12
+ Should the empty Item list also offer to import items? Only if it is cheap.
13
+
14
+ ## ⚙ Attached to
15
+ - [#SC000002 Item list](../screens/sc000002-item-list.md)
@@ -0,0 +1,12 @@
1
+ ---
2
+ standard: IntentFormat/1.2
3
+ type: comment
4
+ id: CM000002
5
+ name: Filter placement
6
+ status: Open
7
+ author: Designer
8
+ ---
9
+ # Filter placement · #CM000002
10
+ > ⚙ #CM000002V1.1 · V1.1 in-progress · based on V1.0 · new
11
+
12
+ Should the filter field sit in the Top bar instead?