@hippo-digital/hippocampus 1.0.0-rc.8 → 2.0.0
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 +141 -3
- package/README.md +36 -0
- package/agents/README.md +6 -6
- package/agents/accessibility-tester.md +2 -2
- package/agents/ingestion-curator.md +9 -9
- package/agents/knowledge-builder.md +9 -9
- package/agents/prototype-builder.md +3 -3
- package/agents/screenshot-runner.md +2 -2
- package/agents/workflow-orchestrator.md +16 -16
- package/assets/dist/hippocampus.css +1 -1
- package/assets/hippocampus.scss +994 -133
- package/assets/javascript/blueprint.js +21 -0
- package/assets/javascript/trace.js +54 -0
- package/bin/hippocampus.js +9 -3
- package/docs/agent-roadmap.md +2 -2
- package/docs/custom-agents-usage.md +1 -1
- package/docs/repeatable-research-round-ingestion.md +3 -3
- package/docs/research-knowledge-graph.md +5 -5
- package/index.js +2 -1
- package/lib/breadcrumb.js +80 -0
- package/lib/create-router.js +246 -6
- package/lib/discover-projects.js +5 -0
- package/lib/filter.js +81 -0
- package/lib/flow-map.js +214 -0
- package/lib/lint-knowledge.js +31 -0
- package/lib/load-knowledge.js +335 -34
- package/lib/record-links.js +51 -0
- package/lib/templates.js +174 -0
- package/package.json +1 -1
- package/scripts/doctor.js +10 -0
- package/scripts/install-skills.js +93 -3
- package/scripts/lib/make-blueprint-template.py +107 -0
- package/scripts/smoke-routes.js +19 -0
- package/scripts/validate-skills.js +64 -5
- package/skills/README.md +18 -18
- package/skills/SKILL-FORMAT.md +24 -5
- package/skills/{add-prototype-screen.skill.md → add-prototype-screen/SKILL.md} +2 -0
- package/skills/{add-scenario.skill.md → add-scenario/SKILL.md} +2 -0
- package/skills/{add-user-needs.skill.md → add-user-needs/SKILL.md} +2 -0
- package/skills/{audit-knowledge-source.skill.md → audit-knowledge-source/SKILL.md} +2 -0
- package/skills/{capture-route-review-pack.skill.md → capture-route-review-pack/SKILL.md} +2 -0
- package/skills/{create-journey-from-scenario.skill.md → create-journey-from-scenario/SKILL.md} +2 -0
- package/skills/{deliver-service-slice.skill.md → deliver-service-slice/SKILL.md} +2 -0
- package/skills/examples/README.md +1 -1
- package/skills/examples/non-copilot-research-ingestion.md +1 -1
- package/skills/examples/non-copilot-service-slice.md +1 -1
- package/skills/{generate-service-slice.skill.md → generate-service-slice/SKILL.md} +2 -0
- package/skills/{ingest-project-context.skill.md → ingest-project-context/SKILL.md} +2 -0
- package/skills/{ingest-research-round.skill.md → ingest-research-round/SKILL.md} +2 -0
- package/skills/{ingest-user-personas.skill.md → ingest-user-personas/SKILL.md} +2 -0
- package/skills/{map-research-to-graph.skill.md → map-research-to-graph/SKILL.md} +2 -0
- package/skills/{onboard-team-member.skill.md → onboard-team-member/SKILL.md} +2 -0
- package/skills/{record-accessibility-review.skill.md → record-accessibility-review/SKILL.md} +2 -0
- package/skills/{record-design-decision.skill.md → record-design-decision/SKILL.md} +2 -0
- package/skills/{review-research-import-draft.skill.md → review-research-import-draft/SKILL.md} +2 -0
- package/skills/skills.json +21 -21
- package/skills/skills.schema.json +1 -1
- package/skills/{structure-project-context-draft.skill.md → structure-project-context-draft/SKILL.md} +2 -0
- package/skills/{structure-research-draft.skill.md → structure-research-draft/SKILL.md} +2 -0
- package/skills/{triage-research-corpus.skill.md → triage-research-corpus/SKILL.md} +2 -0
- package/skills/{write-delivery-summary.skill.md → write-delivery-summary/SKILL.md} +2 -0
- package/skills/{write-route-review-summary.skill.md → write-route-review-summary/SKILL.md} +2 -0
- package/templates/service-blueprint.xlsx +0 -0
- package/views/hippocampus/_layout.html +116 -3
- package/views/hippocampus/blueprint-classic.html +0 -1
- package/views/hippocampus/blueprint.html +0 -1
- package/views/hippocampus/components/_blueprint-cell.njk +6 -3
- package/views/hippocampus/components/_blueprint-controls.njk +2 -1
- package/views/hippocampus/components/_breadcrumb.njk +29 -0
- package/views/hippocampus/components/_connections.njk +38 -0
- package/views/hippocampus/components/_filters.njk +56 -0
- package/views/hippocampus/components/_journey-step.njk +11 -7
- package/views/hippocampus/components/_screen-preview.njk +41 -0
- package/views/hippocampus/doc.html +0 -1
- package/views/hippocampus/docs.html +67 -6
- package/views/hippocampus/evidence-impact.html +66 -33
- package/views/hippocampus/graph.html +137 -31
- package/views/hippocampus/handover-empty.html +0 -1
- package/views/hippocampus/handover.html +0 -1
- package/views/hippocampus/index.html +102 -13
- package/views/hippocampus/journey-flow.html +0 -1
- package/views/hippocampus/journey.html +21 -6
- package/views/hippocampus/journeys.html +63 -0
- package/views/hippocampus/project.html +19 -2
- package/views/hippocampus/record.html +33 -0
- package/views/hippocampus/research.html +14 -2
- package/views/hippocampus/route-review.html +0 -1
- package/views/hippocampus/scenarios.html +21 -3
- package/views/hippocampus/screens.html +45 -0
- package/views/hippocampus/trace.html +35 -22
- package/views/hippocampus/user-needs.html +55 -19
- package/views/hippocampus/user.html +131 -79
- package/views/hippocampus/users.html +33 -19
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{# A live look at the screen, not a picture of one.
|
|
2
|
+
|
|
3
|
+
An iframe of the route the host already serves, scaled down. A captured
|
|
4
|
+
image would be sharper and cheaper to render, and it would start going stale
|
|
5
|
+
the moment somebody edits the page - which is the exact failure this viewer
|
|
6
|
+
exists to catch. A preview that can disagree with the prototype is worse than
|
|
7
|
+
no preview, because it is believed.
|
|
8
|
+
|
|
9
|
+
`loading="lazy"` matters on the list: seven of these is seven page loads, and
|
|
10
|
+
only the ones scrolled to should cost anything. #}
|
|
11
|
+
|
|
12
|
+
{% macro screenPreview(screen, size = "card") %}
|
|
13
|
+
{% if screen.external %}
|
|
14
|
+
<div class="knowledge-screen-preview knowledge-screen-preview--{{ size }} knowledge-screen-preview--absent">
|
|
15
|
+
<p class="knowledge-note nhsuk-u-margin-bottom-0">
|
|
16
|
+
Served elsewhere, so it cannot be previewed from here.
|
|
17
|
+
</p>
|
|
18
|
+
</div>
|
|
19
|
+
{% elif screen.route %}
|
|
20
|
+
<figure class="knowledge-screen-preview knowledge-screen-preview--{{ size }}">
|
|
21
|
+
<div class="knowledge-screen-preview__frame">
|
|
22
|
+
{#
|
|
23
|
+
Not interactive. A reader clicking inside a shrunken copy of a page
|
|
24
|
+
navigates a viewport they cannot see, and the back button then leaves
|
|
25
|
+
the frame somewhere unrelated to the record it is meant to illustrate.
|
|
26
|
+
The caption carries the real link.
|
|
27
|
+
#}
|
|
28
|
+
<iframe src="{{ screen.route }}"
|
|
29
|
+
title="Preview of {{ screen.title }}"
|
|
30
|
+
loading="lazy"
|
|
31
|
+
tabindex="-1"
|
|
32
|
+
aria-hidden="true"
|
|
33
|
+
scrolling="no"></iframe>
|
|
34
|
+
</div>
|
|
35
|
+
<figcaption>
|
|
36
|
+
<a href="{{ screen.route }}">Open {{ screen.title }}</a>
|
|
37
|
+
<code>{{ screen.route }}</code>
|
|
38
|
+
</figcaption>
|
|
39
|
+
</figure>
|
|
40
|
+
{% endif %}
|
|
41
|
+
{% endmacro %}
|
|
@@ -3,17 +3,78 @@
|
|
|
3
3
|
{% block pageTitle %}Documentation{% endblock %}
|
|
4
4
|
|
|
5
5
|
{% block content %}
|
|
6
|
-
<a class="nhsuk-back-link" href="{{ basePath }}">Back to knowledge base</a>
|
|
7
6
|
<h1>Documentation</h1>
|
|
8
7
|
<p class="nhsuk-lede-text">These guides ship with the package, so they always describe the version you have installed.</p>
|
|
9
8
|
<p class="knowledge-muted">@hippo-digital/hippocampus {{ packageVersion }}</p>
|
|
10
9
|
|
|
11
|
-
<
|
|
10
|
+
<h2 class="nhsuk-heading-m">Guides</h2>
|
|
11
|
+
<div class="knowledge-card-grid knowledge-card-grid--wide knowledge-card-grid--fill">
|
|
12
12
|
{% for doc in docs %}
|
|
13
|
-
<
|
|
14
|
-
<
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
<article class="knowledge-card knowledge-card--compact">
|
|
14
|
+
<h3 class="nhsuk-heading-s nhsuk-u-margin-bottom-1">
|
|
15
|
+
<a href="{{ basePath }}/docs/{{ doc.slug }}">{{ doc.title }}</a>
|
|
16
|
+
</h3>
|
|
17
|
+
{% if doc.summary %}<p class="nhsuk-body-s nhsuk-u-margin-bottom-0">{{ doc.summary }}</p>{% endif %}
|
|
18
|
+
</article>
|
|
17
19
|
{% endfor %}
|
|
18
20
|
</div>
|
|
21
|
+
|
|
22
|
+
{#
|
|
23
|
+
The blank workbooks, where somebody might find them.
|
|
24
|
+
|
|
25
|
+
Both of these already shipped. The only place either was named was inside an
|
|
26
|
+
error message - "start from the blank tracker that ships with the package:
|
|
27
|
+
node_modules/@hippo-digital/hippocampus/templates/..." - which is a path you
|
|
28
|
+
can only follow if you already knew it was there, and it arrives after the
|
|
29
|
+
thing it would have prevented.
|
|
30
|
+
#}
|
|
31
|
+
{% if templates.length %}
|
|
32
|
+
<h2 class="nhsuk-heading-m">Templates to fill in</h2>
|
|
33
|
+
<p class="knowledge-note">
|
|
34
|
+
Workbooks with the columns each importer expects. Fill one in, run the
|
|
35
|
+
command underneath it, then check the draft before promoting it.
|
|
36
|
+
</p>
|
|
37
|
+
|
|
38
|
+
{#
|
|
39
|
+
Grouped by where the file lives, not deduplicated. A project's copy of a
|
|
40
|
+
blank is usually that blank renamed, so in one flat list the two read as
|
|
41
|
+
the same thing listed twice - but deciding from a filename that two
|
|
42
|
+
workbooks are the same workbook is a guess, and a team that has diverged
|
|
43
|
+
from a blank needs to see both.
|
|
44
|
+
#}
|
|
45
|
+
{% for group in templates %}
|
|
46
|
+
<h3 class="nhsuk-heading-s nhsuk-u-margin-bottom-1">{{ group.title }}</h3>
|
|
47
|
+
{% if group.note %}<p class="knowledge-note">{{ group.note }}</p>{% endif %}
|
|
48
|
+
|
|
49
|
+
<div class="knowledge-card-grid knowledge-card-grid--wide knowledge-card-grid--fill nhsuk-u-margin-bottom-5">
|
|
50
|
+
{% for template in group.items %}
|
|
51
|
+
<article class="knowledge-card knowledge-card--compact">
|
|
52
|
+
<p class="knowledge-card__meta nhsuk-u-margin-bottom-1">
|
|
53
|
+
{{ template.format }} · {{ (template.bytes / 1024) | round }}KB
|
|
54
|
+
</p>
|
|
55
|
+
<h4 class="nhsuk-heading-s nhsuk-u-margin-bottom-1">
|
|
56
|
+
<a href="{{ basePath }}/templates/{{ template.file }}" download>{{ template.title }}</a>
|
|
57
|
+
</h4>
|
|
58
|
+
{% if template.matches %}
|
|
59
|
+
<p class="knowledge-note nhsuk-u-margin-bottom-2">
|
|
60
|
+
Same sheets as the blank “{{ template.matches }}”, so the
|
|
61
|
+
command below reads it.
|
|
62
|
+
</p>
|
|
63
|
+
{% endif %}
|
|
64
|
+
{% if template.summary %}
|
|
65
|
+
<p class="nhsuk-body-s">{{ template.summary }}</p>
|
|
66
|
+
{% endif %}
|
|
67
|
+
{% if template.command %}
|
|
68
|
+
<p class="nhsuk-body-s nhsuk-u-margin-bottom-0">
|
|
69
|
+
<code class="knowledge-template__command">{{ template.command }}</code>
|
|
70
|
+
{% if template.then %}
|
|
71
|
+
<code class="knowledge-template__command">{{ template.then }}</code>
|
|
72
|
+
{% endif %}
|
|
73
|
+
</p>
|
|
74
|
+
{% endif %}
|
|
75
|
+
</article>
|
|
76
|
+
{% endfor %}
|
|
77
|
+
</div>
|
|
78
|
+
{% endfor %}
|
|
79
|
+
{% endif %}
|
|
19
80
|
{% endblock %}
|
|
@@ -1,21 +1,54 @@
|
|
|
1
1
|
{% extends "hippocampus/_layout.html" %}
|
|
2
|
+
{% from "hippocampus/components/_connections.njk" import connections %}
|
|
2
3
|
|
|
3
|
-
{% block pageTitle %}
|
|
4
|
+
{% block pageTitle %}{{ impact.evidence.title }}{% endblock %}
|
|
4
5
|
|
|
5
6
|
{% block content %}
|
|
6
|
-
<a class="nhsuk-back-link" href="{{ basePath }}/graph">Back to relationship graph</a>
|
|
7
7
|
|
|
8
|
-
<span class="nhsuk-caption-l">Evidence
|
|
8
|
+
<span class="nhsuk-caption-l">Evidence</span>
|
|
9
9
|
<h1>{{ impact.evidence.title }}</h1>
|
|
10
|
+
|
|
11
|
+
{#
|
|
12
|
+
What the record IS, before what it touches. The page led with a summary and
|
|
13
|
+
three numbers, so the source type, the confidence and the file it came from
|
|
14
|
+
- the things that tell you whether to trust it - were nowhere on a page
|
|
15
|
+
whose whole subject is what depends on it.
|
|
16
|
+
#}
|
|
17
|
+
<p class="knowledge-card__meta">
|
|
18
|
+
{{ impact.evidence.sourceType }}
|
|
19
|
+
<span class="knowledge-confidence-tag knowledge-confidence-tag--{{ impact.evidence.confidence }}">{{ impact.evidence.confidence }} confidence</span>
|
|
20
|
+
</p>
|
|
10
21
|
<p class="nhsuk-lede-text">{{ impact.evidence.summary }}</p>
|
|
11
22
|
|
|
12
|
-
|
|
13
|
-
<
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
23
|
+
{% if impact.evidence.sourcePath %}
|
|
24
|
+
<p class="knowledge-note">
|
|
25
|
+
From <code>{{ impact.evidence.sourcePath }}</code>
|
|
26
|
+
</p>
|
|
27
|
+
{% endif %}
|
|
28
|
+
|
|
29
|
+
{#
|
|
30
|
+
A caveat, not a tag. Low-confidence evidence that ten needs are built on is
|
|
31
|
+
a different situation from low-confidence evidence nothing cites, and only
|
|
32
|
+
this page knows which one you are looking at.
|
|
33
|
+
#}
|
|
34
|
+
{% if impact.evidence.confidence != "high" and impact.citedCount %}
|
|
35
|
+
<div class="nhsuk-warning-callout nhsuk-u-margin-top-4">
|
|
36
|
+
<h2 class="nhsuk-warning-callout__label">
|
|
37
|
+
<span role="text">
|
|
38
|
+
<span class="nhsuk-u-visually-hidden">Important: </span>
|
|
39
|
+
{{ impact.evidence.confidence | capitalize }} confidence, and relied on
|
|
40
|
+
</span>
|
|
41
|
+
</h2>
|
|
42
|
+
<p>
|
|
43
|
+
{{ impact.citedCount }} record{% if impact.citedCount != 1 %}s{% endif %} cite
|
|
44
|
+
this{% if impact.reachedCount %}, and {{ impact.reachedCount }} more
|
|
45
|
+
{%- if impact.reachedCount == 1 %} was{% else %} were{% endif %} built on
|
|
46
|
+
those{% endif %}. Worth confirming before it carries more weight.
|
|
47
|
+
</p>
|
|
48
|
+
</div>
|
|
49
|
+
{% endif %}
|
|
17
50
|
|
|
18
|
-
{% if impact.evidence.quotes %}
|
|
51
|
+
{% if impact.evidence.quotes.length %}
|
|
19
52
|
<section class="knowledge-section">
|
|
20
53
|
<h2>Quoted signals</h2>
|
|
21
54
|
<ul class="nhsuk-list nhsuk-list--bullet">
|
|
@@ -26,28 +59,28 @@
|
|
|
26
59
|
</section>
|
|
27
60
|
{% endif %}
|
|
28
61
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
62
|
+
{#
|
|
63
|
+
Two bounded steps, in place of a chip grid and 602 rows of A-label-B.
|
|
64
|
+
|
|
65
|
+
The question this page is named for is what to revisit if the evidence is
|
|
66
|
+
wrong, and that is answered by what cites it and what was built on those -
|
|
67
|
+
not by everything the graph can reach, which past a couple of hops is
|
|
68
|
+
everything.
|
|
69
|
+
#}
|
|
70
|
+
<h2>What cites this</h2>
|
|
71
|
+
<p class="knowledge-note">
|
|
72
|
+
Records that name this evidence directly. If it is wrong, these are wrong
|
|
73
|
+
first.
|
|
74
|
+
</p>
|
|
75
|
+
{{ connections(impact.citedGroups) }}
|
|
76
|
+
|
|
77
|
+
{% if impact.reachedGroups.length %}
|
|
78
|
+
<h2>What was built on those</h2>
|
|
79
|
+
<p class="knowledge-note">
|
|
80
|
+
One step further out: designed on, or tested against, the records above.
|
|
81
|
+
Provenance is deliberately not followed - a research round did not become
|
|
82
|
+
wrong because something drawn from it did.
|
|
83
|
+
</p>
|
|
84
|
+
{{ connections(impact.reachedGroups) }}
|
|
85
|
+
{% endif %}
|
|
53
86
|
{% endblock %}
|
|
@@ -3,46 +3,152 @@
|
|
|
3
3
|
{% block pageTitle %}Relationship graph{% endblock %}
|
|
4
4
|
|
|
5
5
|
{% block content %}
|
|
6
|
-
<a class="nhsuk-back-link" href="{{ basePath }}">Back to knowledge base</a>
|
|
7
6
|
|
|
8
7
|
<span class="nhsuk-caption-l">Knowledge graph</span>
|
|
9
|
-
<h1>
|
|
10
|
-
<p class="nhsuk-lede-text">
|
|
8
|
+
<h1>How the records connect</h1>
|
|
9
|
+
<p class="nhsuk-lede-text">
|
|
10
|
+
{{ graph.entityCount }} records and {{ graph.relationships.length }} relationships,
|
|
11
|
+
shown as the {{ graph.flowMap.flows.length }} ways the
|
|
12
|
+
{{ graph.flowMap.boxes.length }} kinds of record connect to each other.
|
|
13
|
+
</p>
|
|
11
14
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
{#
|
|
16
|
+
A map of the TYPES, not of the records.
|
|
17
|
+
|
|
18
|
+
The page drew all 438 entities as chips and all 1,031 relationships as
|
|
19
|
+
"A - label - B" rows: every fact present, none of them legible. A
|
|
20
|
+
force-directed layout of the same data would have been a hairball - 438
|
|
21
|
+
nodes at a median degree of 2 has no readable shape at that size.
|
|
22
|
+
|
|
23
|
+
There are twelve kinds of record and nineteen ways they connect, and that
|
|
24
|
+
does fit on a screen. The line thickness is how many records take each
|
|
25
|
+
route, so where the chain thins out is visible rather than countable.
|
|
26
|
+
|
|
27
|
+
The list below is the same data as text. It is not a fallback - a thickness
|
|
28
|
+
is a comparison and a number is a fact, and the page owes a reader both.
|
|
29
|
+
#}
|
|
30
|
+
<figure class="knowledge-flowmap">
|
|
31
|
+
<svg viewBox="0 0 {{ graph.flowMap.width }} {{ graph.flowMap.height }}"
|
|
32
|
+
class="knowledge-flowmap__svg"
|
|
33
|
+
role="img"
|
|
34
|
+
aria-labelledby="flowmap-title flowmap-desc">
|
|
35
|
+
<title id="flowmap-title">How each kind of record connects to the others</title>
|
|
36
|
+
<desc id="flowmap-desc">
|
|
37
|
+
A map of {{ graph.flowMap.boxes.length }} record types in
|
|
38
|
+
{{ graph.flowMap.columns.length }} stages, from where knowledge comes
|
|
39
|
+
from through to what gets designed, joined by
|
|
40
|
+
{{ graph.flowMap.flows.length }} connections. The same connections are
|
|
41
|
+
listed with their counts immediately below this map.
|
|
42
|
+
</desc>
|
|
43
|
+
|
|
44
|
+
<g class="knowledge-flowmap__flows">
|
|
45
|
+
{% for flow in graph.flowMap.flows %}
|
|
46
|
+
<path d="{{ flow.path }}"
|
|
47
|
+
stroke-width="{{ flow.width }}"
|
|
48
|
+
class="knowledge-flowmap__flow{% if flow.sameColumn %} knowledge-flowmap__flow--aside{% endif %}">
|
|
49
|
+
<title>{{ flow.count }} · {{ flow.from }} {{ flow.phrase }} {{ flow.to }}</title>
|
|
50
|
+
</path>
|
|
51
|
+
{% endfor %}
|
|
52
|
+
</g>
|
|
53
|
+
|
|
54
|
+
<g class="knowledge-flowmap__boxes">
|
|
55
|
+
{% for box in graph.flowMap.boxes %}
|
|
56
|
+
<g transform="translate({{ box.x }}, {{ box.y }})">
|
|
57
|
+
<rect width="{{ graph.flowMap.boxWidth }}" height="{{ graph.flowMap.boxHeight }}"
|
|
58
|
+
rx="3" class="knowledge-flowmap__box"></rect>
|
|
59
|
+
<text x="12" y="21" class="knowledge-flowmap__label">{{ box.type }}</text>
|
|
60
|
+
<text x="12" y="39" class="knowledge-flowmap__count">{{ box.count }}</text>
|
|
61
|
+
</g>
|
|
62
|
+
{% endfor %}
|
|
63
|
+
</g>
|
|
64
|
+
</svg>
|
|
65
|
+
|
|
66
|
+
<figcaption class="knowledge-note">
|
|
67
|
+
Left to right as the work flows. Thickness is how many records take each
|
|
68
|
+
route.
|
|
69
|
+
</figcaption>
|
|
70
|
+
</figure>
|
|
17
71
|
|
|
18
72
|
<section class="knowledge-section">
|
|
19
|
-
<h2>
|
|
20
|
-
<
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
73
|
+
<h2>Every connection, counted</h2>
|
|
74
|
+
<p class="knowledge-note">
|
|
75
|
+
Each row is one way two kinds of record connect. Where a type has a page
|
|
76
|
+
of its own, its name links to it.
|
|
77
|
+
</p>
|
|
78
|
+
<ol class="knowledge-flowlist">
|
|
79
|
+
{% for flow in graph.flowMap.flows %}
|
|
80
|
+
{% set fromBox = null %}
|
|
81
|
+
{% set toBox = null %}
|
|
82
|
+
{% for box in graph.flowMap.boxes %}
|
|
83
|
+
{% if box.type == flow.from %}{% set fromBox = box %}{% endif %}
|
|
84
|
+
{% if box.type == flow.to %}{% set toBox = box %}{% endif %}
|
|
85
|
+
{% endfor %}
|
|
86
|
+
<li class="knowledge-flowlist__row">
|
|
87
|
+
<span class="knowledge-flowlist__label">
|
|
88
|
+
{% if fromBox.href %}<a href="{{ fromBox.href }}">{{ flow.from }}</a>{% else %}{{ flow.from }}{% endif %}
|
|
89
|
+
<span class="knowledge-flowlist__phrase">{{ flow.phrase }}</span>
|
|
90
|
+
{% if toBox.href %}<a href="{{ toBox.href }}">{{ flow.to }}</a>{% else %}{{ flow.to }}{% endif %}
|
|
91
|
+
</span>
|
|
92
|
+
<span class="knowledge-flowlist__bar" aria-hidden="true">
|
|
93
|
+
<span style="width: {{ (flow.count / graph.flowMap.flows[0].count * 100) | round }}%"></span>
|
|
94
|
+
</span>
|
|
95
|
+
<span class="knowledge-flowlist__count">{{ flow.count }}</span>
|
|
96
|
+
</li>
|
|
26
97
|
{% endfor %}
|
|
27
|
-
</
|
|
98
|
+
</ol>
|
|
28
99
|
</section>
|
|
29
100
|
|
|
101
|
+
{#
|
|
102
|
+
The records the map cannot show, because they connect to nothing. The old
|
|
103
|
+
page drew only entities that appear in a relationship, so it was the one
|
|
104
|
+
view structurally incapable of showing a gap.
|
|
105
|
+
#}
|
|
30
106
|
<section class="knowledge-section">
|
|
31
|
-
<h2>
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
107
|
+
<h2>Connected to nothing</h2>
|
|
108
|
+
{% if graph.unconnected.length %}
|
|
109
|
+
<p class="knowledge-note">
|
|
110
|
+
{{ graph.entityCount - graph.connectedCount }} of {{ graph.entityCount }}
|
|
111
|
+
records have no relationship at all. Usually a gap in the graph rather
|
|
112
|
+
than a fact about the record.
|
|
113
|
+
</p>
|
|
114
|
+
{#
|
|
115
|
+
A heading per kind, then a card per record. Six bulleted lists inside
|
|
116
|
+
six boxes made the boxes the thing you saw and the records the thing
|
|
117
|
+
you had to read past - and these ARE the point of the section: each one
|
|
118
|
+
is a specific record somebody has to decide about.
|
|
119
|
+
#}
|
|
120
|
+
{% for group in graph.unconnected %}
|
|
121
|
+
<h3 class="nhsuk-heading-s knowledge-orphan-heading">
|
|
122
|
+
{{ group.label }}
|
|
123
|
+
<span class="nhsuk-u-font-weight-normal nhsuk-u-secondary-text-color">({{ group.items.length }})</span>
|
|
124
|
+
</h3>
|
|
125
|
+
<div class="knowledge-card-grid knowledge-card-grid--fill">
|
|
126
|
+
{% for item in group.items %}
|
|
127
|
+
<article class="knowledge-card knowledge-card--compact">
|
|
128
|
+
<h4 class="knowledge-card__statement knowledge-card__statement--only">
|
|
129
|
+
{% if item.href %}
|
|
130
|
+
<a href="{{ item.href }}">{{ item.label }}</a>
|
|
131
|
+
{% else %}
|
|
132
|
+
{{ item.label }}
|
|
133
|
+
{% endif %}
|
|
134
|
+
</h4>
|
|
135
|
+
</article>
|
|
136
|
+
{% endfor %}
|
|
137
|
+
</div>
|
|
45
138
|
{% endfor %}
|
|
46
|
-
|
|
139
|
+
{% else %}
|
|
140
|
+
<div class="nhsuk-inset-text">
|
|
141
|
+
<p>Every record is connected to at least one other.</p>
|
|
142
|
+
</div>
|
|
143
|
+
{% endif %}
|
|
144
|
+
</section>
|
|
145
|
+
|
|
146
|
+
<section class="knowledge-section">
|
|
147
|
+
<h2>Following one record</h2>
|
|
148
|
+
<p>
|
|
149
|
+
This map is the shape of the whole knowledge base. To walk the links from
|
|
150
|
+
a single record - upstream to what it rests on, downstream to what rests
|
|
151
|
+
on it - use the <a href="{{ basePath }}/trace">trace tree</a>.
|
|
152
|
+
</p>
|
|
47
153
|
</section>
|
|
48
154
|
{% endblock %}
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
{% block pageTitle %}Handover{% endblock %}
|
|
5
5
|
|
|
6
6
|
{% block content %}
|
|
7
|
-
<a class="nhsuk-back-link" href="{{ basePath }}">Back to knowledge base</a>
|
|
8
7
|
<h1>Handover</h1>
|
|
9
8
|
{{ emptyState("Nothing to hand over yet",
|
|
10
9
|
"Handover documentation is generated from a journey - its steps, the screens they touch and the needs and evidence behind them. There are no journeys in this knowledge base.",
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
{% block pageTitle %}Handover - {{ blueprint.meta.journeyTitle }}{% endblock %}
|
|
4
4
|
|
|
5
5
|
{% block content %}
|
|
6
|
-
<a class="nhsuk-back-link" href="{{ basePath }}">Back to knowledge base</a>
|
|
7
6
|
<span class="nhsuk-caption-l">Generated documentation</span>
|
|
8
7
|
<h1>Handover summary</h1>
|
|
9
8
|
<p class="knowledge-card__meta">{{ blueprint.meta.journeyTitle }}</p>
|
|
@@ -2,19 +2,25 @@
|
|
|
2
2
|
{% from "hippocampus/components/_summary-card.njk" import summaryCard %}
|
|
3
3
|
|
|
4
4
|
{% block pageTitle %}
|
|
5
|
-
{{
|
|
5
|
+
{{ serviceTitle }}
|
|
6
6
|
{% endblock %}
|
|
7
7
|
|
|
8
8
|
{% block content %}
|
|
9
9
|
<div class="nhsuk-grid-row">
|
|
10
10
|
<div class="nhsuk-grid-column-two-thirds">
|
|
11
11
|
<span class="nhsuk-caption-l">Design knowledge base</span>
|
|
12
|
-
<h1>{{
|
|
13
|
-
|
|
12
|
+
<h1>{{ serviceTitle }}</h1>
|
|
13
|
+
{% if knowledge.project.name != serviceTitle %}
|
|
14
|
+
<p class="knowledge-card__meta">
|
|
15
|
+
Slice: {{ knowledge.project.name }} · {{ knowledge.project.phase }}
|
|
16
|
+
</p>
|
|
17
|
+
{% endif %}
|
|
18
|
+
<p class="nhsuk-lede-text">{{ knowledge.projectContext.summary or knowledge.project.description }}</p>
|
|
14
19
|
|
|
15
|
-
{
|
|
16
|
-
|
|
17
|
-
|
|
20
|
+
{# Only failure is shown here. The passing case is a tick in the footer,
|
|
21
|
+
where it is on every page instead of holding the best slot on this
|
|
22
|
+
one to report that nothing is wrong. #}
|
|
23
|
+
{% if not knowledgeValidation.valid %}
|
|
18
24
|
<div class="nhsuk-warning-callout">
|
|
19
25
|
<h2 class="nhsuk-warning-callout__label">Knowledge validation failed</h2>
|
|
20
26
|
<ul>
|
|
@@ -27,20 +33,103 @@
|
|
|
27
33
|
</div>
|
|
28
34
|
</div>
|
|
29
35
|
|
|
30
|
-
|
|
36
|
+
{#
|
|
37
|
+
What has moved, and what is waiting. Each line links to the page where the
|
|
38
|
+
work is done - a number nobody can act on is just decoration.
|
|
39
|
+
#}
|
|
40
|
+
{#
|
|
41
|
+
Where things stand.
|
|
42
|
+
|
|
43
|
+
Cards rather than a list, because these are five independent figures a
|
|
44
|
+
reader scans for the one that concerns them, not a sequence to read in
|
|
45
|
+
order. Each is a link in its own right: a number nobody can act on is
|
|
46
|
+
decoration. The tone marks what is waiting rather than what is wrong -
|
|
47
|
+
an open design action is normal, not a fault.
|
|
48
|
+
#}
|
|
49
|
+
<section class="knowledge-status">
|
|
50
|
+
<h2 class="nhsuk-heading-m">Where things stand</h2>
|
|
51
|
+
<div class="knowledge-status__grid">
|
|
52
|
+
{% if status.latestRound %}
|
|
53
|
+
<a class="knowledge-stat knowledge-stat--neutral" href="{{ basePath }}/research">
|
|
54
|
+
<span class="knowledge-stat__value">{{ status.latestRound.date }}</span>
|
|
55
|
+
<span class="knowledge-stat__label">Most recent research</span>
|
|
56
|
+
<span class="knowledge-stat__detail">{{ status.latestRound.title }}</span>
|
|
57
|
+
</a>
|
|
58
|
+
{% endif %}
|
|
59
|
+
|
|
60
|
+
<a class="knowledge-stat {% if status.outstandingActions %}knowledge-stat--waiting{% else %}knowledge-stat--done{% endif %}" href="{{ basePath }}/research">
|
|
61
|
+
<span class="knowledge-stat__value">{{ status.outstandingActions }}</span>
|
|
62
|
+
<span class="knowledge-stat__label">Design actions open</span>
|
|
63
|
+
<span class="knowledge-stat__detail">No decision has resolved them yet</span>
|
|
64
|
+
</a>
|
|
65
|
+
|
|
66
|
+
<a class="knowledge-stat {% if status.insightsWithoutNeed %}knowledge-stat--waiting{% else %}knowledge-stat--done{% endif %}" href="{{ basePath }}/research">
|
|
67
|
+
<span class="knowledge-stat__value">{{ status.insightsWithoutNeed }}</span>
|
|
68
|
+
<span class="knowledge-stat__label">Insights not linked to a need</span>
|
|
69
|
+
<span class="knowledge-stat__detail">Usually a gap in the needs layer</span>
|
|
70
|
+
</a>
|
|
71
|
+
|
|
72
|
+
<a class="knowledge-stat {% if status.needsWithoutScreen %}knowledge-stat--waiting{% else %}knowledge-stat--done{% endif %}" href="{{ basePath }}/user-needs">
|
|
73
|
+
<span class="knowledge-stat__value">{{ status.needsWithoutScreen }}</span>
|
|
74
|
+
<span class="knowledge-stat__label">Needs with no screen</span>
|
|
75
|
+
<span class="knowledge-stat__detail">The design backlog</span>
|
|
76
|
+
</a>
|
|
77
|
+
|
|
78
|
+
<a class="knowledge-stat {% if status.roundsNotMined %}knowledge-stat--waiting{% else %}knowledge-stat--done{% endif %}" href="{{ basePath }}/research">
|
|
79
|
+
<span class="knowledge-stat__value">{{ status.roundsNotMined }}</span>
|
|
80
|
+
<span class="knowledge-stat__label">Rounds with no insights</span>
|
|
81
|
+
<span class="knowledge-stat__detail">Imported, not yet drawn out</span>
|
|
82
|
+
</a>
|
|
83
|
+
</div>
|
|
84
|
+
</section>
|
|
85
|
+
|
|
86
|
+
{#
|
|
87
|
+
Browse, in groups.
|
|
88
|
+
|
|
89
|
+
It was one flat grid of seventeen cards holding two different kinds of
|
|
90
|
+
thing: nine sections, every one of which is also in the navigation bar, and
|
|
91
|
+
four cards per journey. Four-per-journey meant the grid grew with the data
|
|
92
|
+
rather than with the structure, and three of every four were renderings of
|
|
93
|
+
the fourth shown as its equals.
|
|
94
|
+
|
|
95
|
+
The generated views now live on the journey they come from. What is left is
|
|
96
|
+
grouped, so the three questions this page answers - what is the knowledge,
|
|
97
|
+
what can I see across it, what do I read - are three headings rather than a
|
|
98
|
+
wall.
|
|
99
|
+
#}
|
|
100
|
+
<h2 class="nhsuk-heading-m">Browse</h2>
|
|
101
|
+
|
|
102
|
+
<h3 class="nhsuk-heading-s">The knowledge</h3>
|
|
103
|
+
<p class="knowledge-note nhsuk-u-margin-bottom-3">
|
|
104
|
+
What has been recorded, and where it came from.
|
|
105
|
+
</p>
|
|
106
|
+
<div class="knowledge-grid nhsuk-u-margin-bottom-6">
|
|
31
107
|
{{ summaryCard("Project context", "Purpose, vision, policy context, channels, risks and source facts.", basePath + "/project", knowledge.projectContext.sourceArtefacts.length + " artefacts") }}
|
|
32
108
|
{{ summaryCard("Users", "The user groups and responsibilities used by the slice.", basePath + "/users", knowledge.users.length + " records") }}
|
|
33
109
|
{{ summaryCard("User needs", "Needs linked to users, scenarios, screens and evidence.", basePath + "/user-needs", knowledge.needs.length + " records") }}
|
|
34
110
|
{{ summaryCard("Scenarios", "Happy paths, edge cases and risks.", basePath + "/scenarios", knowledge.scenarios.length + " records") }}
|
|
111
|
+
{{ summaryCard("Journeys", "Scenarios walked end to end, with a blueprint, flow diagram and handover generated from each.", basePath + "/journeys", knowledge.journeys.length + " journeys") }}
|
|
112
|
+
{{ summaryCard("Screens", "The prototype pages, and the needs each one addresses.", basePath + "/screens", knowledge.screens.length + " records") }}
|
|
35
113
|
{{ summaryCard("Research", "Rounds, participants, insights and design actions.", basePath + "/research", knowledge.researchRounds.length + " rounds") }}
|
|
114
|
+
</div>
|
|
115
|
+
|
|
116
|
+
<h3 class="nhsuk-heading-s">Views across it</h3>
|
|
117
|
+
<p class="knowledge-note nhsuk-u-margin-bottom-3">
|
|
118
|
+
Nothing new here - these read the same records from a different direction.
|
|
119
|
+
</p>
|
|
120
|
+
<div class="knowledge-grid nhsuk-u-margin-bottom-6">
|
|
36
121
|
{{ summaryCard("Relationship graph", "Explicit user, scenario, need, evidence, journey and screen links.", basePath + "/graph", knowledge.relationships.length + " relationships") }}
|
|
37
122
|
{{ summaryCard("Trace tree", "Navigate upstream and downstream through relationship paths.", basePath + "/trace", "graph view") }}
|
|
123
|
+
{% if knowledge.journeys.length %}
|
|
124
|
+
{{ summaryCard("Handover", "Documentation for the journey this prototype slice is built around.", basePath + "/handover", "generated") }}
|
|
125
|
+
{% endif %}
|
|
126
|
+
{% if hasRouteReview %}
|
|
127
|
+
{{ summaryCard("Route review", "The route-review workbench screen and the needs behind it.", basePath + "/route-review", "workbench") }}
|
|
128
|
+
{% endif %}
|
|
129
|
+
</div>
|
|
130
|
+
|
|
131
|
+
<h3 class="nhsuk-heading-s">Reference</h3>
|
|
132
|
+
<div class="knowledge-grid">
|
|
38
133
|
{{ summaryCard("Documentation", "How to ingest research, record design actions and work with the graph.", basePath + "/docs", "guides") }}
|
|
39
|
-
{% for journey in knowledge.journeys %}
|
|
40
|
-
{{ summaryCard(journey.title, "Journey rendered from structured source data.", basePath + "/journeys/" + journey.id, "journey") }}
|
|
41
|
-
{{ summaryCard(journey.title + " blueprint", "Stacked service blueprint generated from the journey.", basePath + "/journeys/" + journey.id + "/blueprint", "generated view") }}
|
|
42
|
-
{{ summaryCard(journey.title + " flow diagram", "Mermaid flow diagram generated from the same journey steps.", basePath + "/journeys/" + journey.id + "/flow", "generated view") }}
|
|
43
|
-
{{ summaryCard(journey.title + " handover", "Team documentation generated from the same source.", basePath + "/journeys/" + journey.id + "/handover", "documentation") }}
|
|
44
|
-
{% endfor %}
|
|
45
134
|
</div>
|
|
46
135
|
{% endblock %}
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
{% block pageTitle %}{{ flow.meta.journeyTitle }} flow diagram{% endblock %}
|
|
4
4
|
|
|
5
5
|
{% block content %}
|
|
6
|
-
<a class="nhsuk-back-link" href="{{ basePath }}/journeys/{{ flow.journey.id }}">Back to journey</a>
|
|
7
6
|
<span class="nhsuk-caption-l">Flow diagram</span>
|
|
8
7
|
<h1>{{ flow.meta.journeyTitle }}</h1>
|
|
9
8
|
<p class="nhsuk-lede-text">Generated from the same journey steps as the blueprint - dashed arrows are exception paths, not the happy path.</p>
|