diff --git a/doc/agile/versions/v0/sprint_02/mark_what_belongs_to_this_environment/story.org b/doc/agile/versions/v0/sprint_02/mark_what_belongs_to_this_environment/story.org new file mode 100644 index 00000000..ce83cd91 --- /dev/null +++ b/doc/agile/versions/v0/sprint_02/mark_what_belongs_to_this_environment/story.org @@ -0,0 +1,63 @@ +:PROPERTIES: +:ID: 314584B3-2BF1-4F76-9126-F67801C8BBED +:END: +#+title: Story: Mark what belongs to this environment +#+description: A story assigned to the environment being viewed carries one label, worded once and shown wherever the story or its scenarios appear. +#+type: story +#+level: s2 +#+filetags: :web:environment:sprint_02:v0: +#+created: 2026-12-05 +#+updated: 2026-12-05 +#+environment: +#+todo: BACKLOG STARTED | DONE ABANDONED + +This page documents a [[id:699A8D45-B67E-4D3E-9206-24FA17C51ADA][story]] in [[id:B60924CC-92F3-47FD-9285-7A023412EA0B][Sprint 2]]. It captures the goal, current status, acceptance criteria, and the tasks that compose it. + +* Goal + +A person reading the sprint board sees, on each story, whether it is +assigned to the environment they are looking at. The marker is one label +with one wording, used wherever the web marks a story or a test scenario as +belonging to the environment being viewed, so a reader learns it once. + +* Status + +| Field | Value | +|---------------+----------------------------------------| +| State | BACKLOG | +| Parent sprint | [[id:B60924CC-92F3-47FD-9285-7A023412EA0B][Sprint 2]] | +| Now | Planned for the next release. | +| Waiting on | Nothing. | +| Next | Label the sprint board's stories. | +| Last touched | 2026-12-05 | + +* Acceptance + +- A story whose =#+environment:= names the environment being viewed carries + the label on the sprint board's card. +- The same label and the same i18n key are used wherever the web marks a + story or scenario as belonging to the current environment, so there is + one wording, not one per screen. +- The label is translated in en, fr and pt, and a unit test covers the + board's story with and without it. + +* Tasks + +| Task | State | Start | End | Description | +|------+-------+-------+-----+-------------| +| [[id:C1F5FE9F-0289-4148-B02E-4C4D6BDC7012][Label the sprint board's stories]] | BACKLOG | | | Show the shared this-environment label on a story card when the story's environment is the one being viewed. | + +* Decisions + +- One wording for the marker, proposed as "This environment". It is a + single i18n key, =thisEnvironment=, so every screen that shows it reads + the same string; changing the wording changes it everywhere. +- The story's environment is its document's =#+environment:= field, read + through the sprint query rather than inferred from the view. A story + with no environment carries no marker. + +* Out of scope + +- Marking stories assigned to *other* environments with that environment's + name. The first step distinguishes this environment from the rest; a + full environment badge on every card can follow. diff --git a/doc/agile/versions/v0/sprint_02/mark_what_belongs_to_this_environment/task_label_the_sprint_boards_stories.org b/doc/agile/versions/v0/sprint_02/mark_what_belongs_to_this_environment/task_label_the_sprint_boards_stories.org new file mode 100644 index 00000000..8e0acc19 --- /dev/null +++ b/doc/agile/versions/v0/sprint_02/mark_what_belongs_to_this_environment/task_label_the_sprint_boards_stories.org @@ -0,0 +1,96 @@ +:PROPERTIES: +:ID: C1F5FE9F-0289-4148-B02E-4C4D6BDC7012 +:END: +#+title: Task: Label the sprint board's stories +#+description: Show the shared this-environment label on a story card when the story's environment is the one being viewed. +#+type: task +#+level: s1 +#+filetags: :web:environment:sprint_02:v0:mark_what_belongs_to_this_environment: +#+owner: marco +#+branch: +#+pr: +#+blocked_on: +#+blocked_since: +#+created: 2026-12-05 +#+updated: 2026-12-05 +#+environment: +#+todo: DISCOVERED BACKLOG STARTED BLOCKED | DONE ABANDONED + +This page documents a [[id:31C868B9-306E-4282-BA8C-07E647021B34][task]] in the [[id:314584B3-2BF1-4F76-9126-F67801C8BBED][Mark what belongs to this environment]] story. It captures the goal, current status, acceptance, and any notes or results. + +* Goal + +A story card on the sprint board carries the shared "This environment" +label when the story's =#+environment:= is the environment the board is +showing, using the same i18n key every other screen uses for that marker. + +* Status + +| Field | Value | +|--------------+----------------------------------------| +| State | BACKLOG | +| Parent story | [[id:314584B3-2BF1-4F76-9126-F67801C8BBED][Mark what belongs to this environment]] | +| Now | Planned for the next release. | +| Waiting on | Nothing. | +| Next | Add the field, then the label. | +| Last touched | 2026-12-05 | + +* Acceptance + +- The sprint read carries each story's environment from its document. +- A story whose environment is the viewed one shows the label on its card; + a story with none, or with another, does not. +- The label's text comes from =thisEnvironment= in en, fr and pt. +- A unit test renders the board with a matching story, a story of another + environment and a story with none, and checks the label appears once. + +* Plan + +1. Add =environment= to the sprint query's story message and fill it from + the document's =#+environment:=, in =compass.db/src/query/testing.cpp= + and its operation model. +2. Carry it through the client schema and the sprint board's story type. +3. Render the label with the shared =thisEnvironment= key beside the state + tag, styled as the existing tags. +4. Add the key to en, fr and pt and test the three cases. + +* Measurements + +Every number this task claims about a tree, with the command that produced it +and the commit it was measured at. A number without both is not a measurement, +because a clean-up record describes a tree and trunk moves under a branch: a +consumer count, a gate's component count and a suite's size all change with no +code changing, and the reader of a bare number cannot tell which tree it came +from. Where the raw output matters, put it in an =evidence/= file beside the +task and name that file in the Command column. + +| What | Value | Command | Commit | +|------+-------+---------+--------| +| | | | | + +* Notes + +* Test Scenarios + +Manual QA scenarios (scaffolded via =compass add test_scenario=) +that verify this task. Link +new ones here as they're created; the scenario doc itself links back +via its "Verifies task" field. + +| Scenario | State | Notes | +|----------+-------+-------| +| | | | + +* PRs + +| PR | Title | +|----+-------| +| | | + +* Review + +| # | Comment summary | File | Decision | Notes | +|---+-----------------+------+----------+-------| +| | | | | | + +* Result diff --git a/doc/agile/versions/v0/sprint_02/read_the_sprint_boards_tasks_in_order/story.org b/doc/agile/versions/v0/sprint_02/read_the_sprint_boards_tasks_in_order/story.org new file mode 100644 index 00000000..5be738fe --- /dev/null +++ b/doc/agile/versions/v0/sprint_02/read_the_sprint_boards_tasks_in_order/story.org @@ -0,0 +1,66 @@ +:PROPERTIES: +:ID: 81FFFBF8-BAF6-4FA2-9BDB-B0D8F2FCED5F +:END: +#+title: Story: Read the sprint board's tasks in order +#+description: A story's tasks are ordered by when they end, and the task that started most recently is highlighted as the current start. +#+type: story +#+level: s2 +#+filetags: :web:sprint_board:sprint_02:v0: +#+created: 2026-12-05 +#+updated: 2026-12-05 +#+environment: +#+todo: BACKLOG STARTED | DONE ABANDONED + +This page documents a [[id:699A8D45-B67E-4D3E-9206-24FA17C51ADA][story]] in [[id:B60924CC-92F3-47FD-9285-7A023412EA0B][Sprint 2]]. It captures the goal, current status, acceptance criteria, and the tasks that compose it. + +* Goal + +A story on the sprint board lists its tasks in the order they end, so the +next thing due is the first thing read. The task whose work started most +recently is highlighted as the current start, so a reader sees where the +work stands without opening each task. + +* Status + +| Field | Value | +|---------------+----------------------------------------| +| State | BACKLOG | +| Parent sprint | [[id:B60924CC-92F3-47FD-9285-7A023412EA0B][Sprint 2]] | +| Now | Planned for the next release. | +| Waiting on | Nothing. | +| Next | Sort the tasks and mark the current start. | +| Last touched | 2026-12-05 | + +* Acceptance + +- A story's tasks are ordered by their end date, those without one last. +- Ties on the end date are broken by start date and then title, so the + order is stable across reads. +- The open task whose start date is the latest carries the current-start + highlight; a story whose open tasks have no start date highlights none. +- The highlight has text, not colour alone, and its wording is one i18n + key. +- A unit test covers the ordering, the no-end case, the current start and + no current start. + +* Tasks + +| Task | State | Start | End | Description | +|------+-------+-------+-----+-------------| +| [[id:6040920F-45DF-46EB-9839-0FBB6A568688][Sort tasks by end and mark the current start]] | BACKLOG | | | Order a story's tasks by their end date, none last, and highlight the open task with the latest start date. | + +* Decisions + +- "Current start" is inferred from the task's own dates: among tasks that + are not DONE or ABANDONED, the one with the latest =start_date=. It is the + work most recently begun, not the work next due, which the order already + shows. +- The dates are the ones the story's task table states, which the sprint + read already returns as =start_date= and =end_date=. Nothing new is + inferred from git, the database or run history. + +* Out of scope + +- Inferring a task's real start from commits, syncs or test runs. If the + document's date is not enough, that is its own story. +- Reordering the stories themselves; only their tasks are ordered. diff --git a/doc/agile/versions/v0/sprint_02/read_the_sprint_boards_tasks_in_order/task_sort_tasks_by_end_and_mark_the_current_start.org b/doc/agile/versions/v0/sprint_02/read_the_sprint_boards_tasks_in_order/task_sort_tasks_by_end_and_mark_the_current_start.org new file mode 100644 index 00000000..64267146 --- /dev/null +++ b/doc/agile/versions/v0/sprint_02/read_the_sprint_boards_tasks_in_order/task_sort_tasks_by_end_and_mark_the_current_start.org @@ -0,0 +1,97 @@ +:PROPERTIES: +:ID: 6040920F-45DF-46EB-9839-0FBB6A568688 +:END: +#+title: Task: Sort tasks by end and mark the current start +#+description: Order a story's tasks by their end date, none last, and highlight the open task with the latest start date. +#+type: task +#+level: s1 +#+filetags: :web:sprint_board:sprint_02:v0:read_the_sprint_boards_tasks_in_order: +#+owner: marco +#+branch: +#+pr: +#+blocked_on: +#+blocked_since: +#+created: 2026-12-05 +#+updated: 2026-12-05 +#+environment: +#+todo: DISCOVERED BACKLOG STARTED BLOCKED | DONE ABANDONED + +This page documents a [[id:31C868B9-306E-4282-BA8C-07E647021B34][task]] in the [[id:81FFFBF8-BAF6-4FA2-9BDB-B0D8F2FCED5F][Read the sprint board's tasks in order]] story. It captures the goal, current status, acceptance, and any notes or results. + +* Goal + +A story's tasks on the sprint board are sorted by end date and, among the +open ones, the task with the latest start date is highlighted as the +current start. + +* Status + +| Field | Value | +|--------------+----------------------------------------| +| State | BACKLOG | +| Parent story | [[id:81FFFBF8-BAF6-4FA2-9BDB-B0D8F2FCED5F][Read the sprint board's tasks in order]] | +| Now | Planned for the next release. | +| Waiting on | Nothing. | +| Next | Sort, then highlight. | +| Last touched | 2026-12-05 | + +* Acceptance + +- The board's task rows of a story are sorted by =end_date= ascending, an + empty end date last, ties by =start_date= and then title. +- The open task with the latest =start_date= carries the current-start + highlight and its text; no open task with a start date means none. +- The highlight's wording is one i18n key in en, fr and pt. +- A unit test renders tasks out of order, one without an end date and one + with no start, and asserts the order and the one highlight. + +* Plan + +1. Add a pure =orderedTasks(story.tasks)= in =sprint.ts=: sort by end, + empty last, then start, then title, and return the id of the current + start among the open tasks. +2. Render the story's tasks in that order and style the current start with + the board's existing accent, plus its text. +3. Add the key to en, fr and pt. +4. Test the three cases in =sprint.test.tsx= and the e2e board. + +* Measurements + +Every number this task claims about a tree, with the command that produced it +and the commit it was measured at. A number without both is not a measurement, +because a clean-up record describes a tree and trunk moves under a branch: a +consumer count, a gate's component count and a suite's size all change with no +code changing, and the reader of a bare number cannot tell which tree it came +from. Where the raw output matters, put it in an =evidence/= file beside the +task and name that file in the Command column. + +| What | Value | Command | Commit | +|------+-------+---------+--------| +| | | | | + +* Notes + +* Test Scenarios + +Manual QA scenarios (scaffolded via =compass add test_scenario=) +that verify this task. Link +new ones here as they're created; the scenario doc itself links back +via its "Verifies task" field. + +| Scenario | State | Notes | +|----------+-------+-------| +| | | | + +* PRs + +| PR | Title | +|----+-------| +| | | + +* Review + +| # | Comment summary | File | Decision | Notes | +|---+-----------------+------+----------+-------| +| | | | | | + +* Result diff --git a/doc/agile/versions/v0/sprint_02/render_the_task_table_once/story.org b/doc/agile/versions/v0/sprint_02/render_the_task_table_once/story.org new file mode 100644 index 00000000..bf76fd50 --- /dev/null +++ b/doc/agile/versions/v0/sprint_02/render_the_task_table_once/story.org @@ -0,0 +1,66 @@ +:PROPERTIES: +:ID: E0556C1D-CC7E-428C-95BF-4ABA2533EFD8 +:END: +#+title: Story: Render the task table once +#+description: A story shows one modern task table in place of the document's raw Tasks table, not both. +#+type: story +#+level: s2 +#+filetags: :web:documents:sprint_02:v0: +#+created: 2026-12-05 +#+updated: 2026-12-05 +#+environment: +#+todo: BACKLOG STARTED | DONE ABANDONED + +This page documents a [[id:699A8D45-B67E-4D3E-9206-24FA17C51ADA][story]] in [[id:B60924CC-92F3-47FD-9285-7A023412EA0B][Sprint 2]]. It captures the goal, current status, acceptance criteria, and the tasks that compose it. + +* Goal + +A story page shows its tasks once. The modern table with state, dates and +scenarios takes the place of the raw org =* Tasks= table in the rendered +document, instead of both appearing one above the other. + +* Status + +| Field | Value | +|---------------+----------------------------------------| +| State | BACKLOG | +| Parent sprint | [[id:B60924CC-92F3-47FD-9285-7A023412EA0B][Sprint 2]] | +| Now | Planned for the next release. | +| Waiting on | Nothing. | +| Next | Put the modern table in the section's place. | +| Last touched | 2026-12-05 | + +* Acceptance + +- A work item's rendered page holds exactly one task table, the modern + one, and no raw org task table. +- The modern table stands where the =* Tasks= section stood, so the page + reads in the document's order. +- The outline still lists the Tasks heading and its anchor still lands on + the table. +- A test renders a story and asserts one tasks table and its place between + the sections around it. + +* Tasks + +| Task | State | Start | End | Description | +|------+-------+-------+-----+-------------| +| [[id:89ED207C-7302-4326-876E-1E78471AC46F][Show the modern task table in place]] | BACKLOG | | | Omit the raw Tasks section from a work item's rendered body and put the modern tasks table where it stood. | + +* Decisions + +- The document keeps its org =* Tasks= table: it is the contract every + reader and every non-web export sees. Only the web rendering replaces it, + so no data moves. +- The rendered body is split at the Tasks heading and the modern table is + inserted there. If splitting proves fragile for a document with several + task-like sections, the fallback is to omit the raw section and keep the + table above the body, never to show both. +- The modern table is the one the board's ordering and current-start work + produces, so a task reads the same in both places. + +* Out of scope + +- Editing tasks from the table; it stays a read. +- Replacing other document tables, such as a story's Scenarios or a + sprint's Stories. diff --git a/doc/agile/versions/v0/sprint_02/render_the_task_table_once/task_show_the_modern_task_table_in_place.org b/doc/agile/versions/v0/sprint_02/render_the_task_table_once/task_show_the_modern_task_table_in_place.org new file mode 100644 index 00000000..2e614fe3 --- /dev/null +++ b/doc/agile/versions/v0/sprint_02/render_the_task_table_once/task_show_the_modern_task_table_in_place.org @@ -0,0 +1,98 @@ +:PROPERTIES: +:ID: 89ED207C-7302-4326-876E-1E78471AC46F +:END: +#+title: Task: Show the modern task table in place +#+description: Omit the raw Tasks section from a work item's rendered body and put the modern tasks table where it stood. +#+type: task +#+level: s1 +#+filetags: :web:documents:sprint_02:v0:render_the_task_table_once: +#+owner: marco +#+branch: +#+pr: +#+blocked_on: +#+blocked_since: +#+created: 2026-12-05 +#+updated: 2026-12-05 +#+environment: +#+todo: DISCOVERED BACKLOG STARTED BLOCKED | DONE ABANDONED + +This page documents a [[id:31C868B9-306E-4282-BA8C-07E647021B34][task]] in the [[id:E0556C1D-CC7E-428C-95BF-4ABA2533EFD8][Render the task table once]] story. It captures the goal, current status, acceptance, and any notes or results. + +* Goal + +A work item page renders the modern task table in the place of the org +=* Tasks= section, and the raw table no longer appears beside it. + +* Status + +| Field | Value | +|--------------+----------------------------------------| +| State | BACKLOG | +| Parent story | [[id:E0556C1D-CC7E-428C-95BF-4ABA2533EFD8][Render the task table once]] | +| Now | Planned for the next release. | +| Waiting on | Nothing. | +| Next | Split the body at the Tasks heading. | +| Last touched | 2026-12-05 | + +* Acceptance + +- The rendered body omits the Tasks heading's table, keeping the heading and + the sections before and after it. +- The modern tasks table renders at that position, with the ordering and + current-start marker. +- The document's outline and anchor for Tasks resolve to the modern table. +- A test asserts the page holds one tasks table and that its siblings are + the sections around it. + +* Plan + +1. Teach the org renderer to return the body split at a named section's + heading, or to omit that section and report its offset. +2. In =DocumentScreen=, render the part before the Tasks heading, then the + modern tasks table, then the rest; drop the WorkItemPanel's own task + table so only one remains. +3. Keep the scenarios table where it belongs and leave other documents + unchanged. +4. Test the position and the single table in =document.test.tsx=; check the + anchor and outline. + +* Measurements + +Every number this task claims about a tree, with the command that produced it +and the commit it was measured at. A number without both is not a measurement, +because a clean-up record describes a tree and trunk moves under a branch: a +consumer count, a gate's component count and a suite's size all change with no +code changing, and the reader of a bare number cannot tell which tree it came +from. Where the raw output matters, put it in an =evidence/= file beside the +task and name that file in the Command column. + +| What | Value | Command | Commit | +|------+-------+---------+--------| +| | | | | + +* Notes + +* Test Scenarios + +Manual QA scenarios (scaffolded via =compass add test_scenario=) +that verify this task. Link +new ones here as they're created; the scenario doc itself links back +via its "Verifies task" field. + +| Scenario | State | Notes | +|----------+-------+-------| +| | | | + +* PRs + +| PR | Title | +|----+-------| +| | | + +* Review + +| # | Comment summary | File | Decision | Notes | +|---+-----------------+------+----------+-------| +| | | | | | + +* Result diff --git a/doc/agile/versions/v0/sprint_02/sprint.org b/doc/agile/versions/v0/sprint_02/sprint.org index 97f2aef1..786e18ab 100644 --- a/doc/agile/versions/v0/sprint_02/sprint.org +++ b/doc/agile/versions/v0/sprint_02/sprint.org @@ -46,6 +46,9 @@ For the definitions of the themes see [[id:A064D838-F127-4DD6-BB42-9A7902039AEE] |-------+-------+-------+-----+-------| | [[id:955957FD-5E73-41E8-B2C0-C9A6EE7997BD][Run compass beside a project]] | STARTED | 2026-12-05 | | Make a released compass carry its documentation and serve the three uses: compass development, ORE Studio development and ORE Studio production. | | [[id:23F4C8A3-5B63-4FF3-BA38-EE0803B3B4F7][Keep blame inside a gate's time]] | DONE | 2026-12-05 | 2026-12-05 | Read history once for all findings, so a gate that blames the findings already on main stays inside its time. | +| [[id:314584B3-2BF1-4F76-9126-F67801C8BBED][Mark what belongs to this environment]] | BACKLOG | | | Show one shared "This environment" label on a story assigned to the environment being viewed, the same label wherever the web marks it. | +| [[id:81FFFBF8-BAF6-4FA2-9BDB-B0D8F2FCED5F][Read the sprint board's tasks in order]] | BACKLOG | | | Order a story's tasks by when they end and highlight the open task whose work started most recently. | +| [[id:E0556C1D-CC7E-428C-95BF-4ABA2533EFD8][Render the task table once]] | BACKLOG | | | Replace a work item's raw org Tasks table with the modern one in the same place, so the page never shows two. | ** Hotfixes