@hippo-digital/hippocampus 1.0.0-rc.7 → 1.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 +114 -3
- package/README.md +36 -0
- 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/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/schema-version.js +1 -1
- package/lib/templates.js +174 -0
- package/package.json +1 -1
- package/scripts/doctor.js +10 -0
- package/scripts/import-design-actions.js +2 -2
- package/scripts/import-research-batch.js +1 -1
- package/scripts/import-research-deck.js +1 -1
- package/scripts/lib/make-blueprint-template.py +107 -0
- package/scripts/promote-project-context-draft.js +22 -3
- package/scripts/promote-research-draft.js +7 -2
- package/scripts/smoke-routes.js +19 -0
- package/scripts/sync-project-context.js +9 -5
- package/scripts/sync-research-artefacts.js +9 -5
- 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
|
@@ -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>
|
|
@@ -4,16 +4,31 @@
|
|
|
4
4
|
{% block pageTitle %}{{ journey.title }}{% endblock %}
|
|
5
5
|
|
|
6
6
|
{% block content %}
|
|
7
|
-
<a class="nhsuk-back-link" href="{{ basePath }}">Back to knowledge base</a>
|
|
8
7
|
<span class="nhsuk-caption-l">Journey</span>
|
|
9
8
|
<h1>{{ journey.title }}</h1>
|
|
10
9
|
<p class="nhsuk-lede-text">{{ journey.description }}</p>
|
|
11
10
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
{#
|
|
12
|
+
The four views, listed rather than shown as a row of buttons. A button says
|
|
13
|
+
"do this next"; these are four ways of looking at the steps below, and the
|
|
14
|
+
one you want depends on who you are about to show it to. The handover was
|
|
15
|
+
missing from here entirely - it was only ever reachable from the landing
|
|
16
|
+
page's card grid.
|
|
17
|
+
#}
|
|
18
|
+
<h2 class="nhsuk-heading-s knowledge-view-list-heading">Generated from this journey</h2>
|
|
19
|
+
<ul class="knowledge-view-list nhsuk-u-margin-bottom-6">
|
|
20
|
+
{% for view in [
|
|
21
|
+
{ href: "/blueprint", text: "Blueprint", detail: "The steps stacked with what is on screen, behind it and where it hurts." },
|
|
22
|
+
{ href: "/blueprint/classic", text: "Blueprint matrix", detail: "The same blueprint as a grid, for printing and workshops." },
|
|
23
|
+
{ href: "/flow", text: "Flow diagram", detail: "The step sequence and its exceptions, drawn." },
|
|
24
|
+
{ href: "/handover", text: "Handover", detail: "Written documentation of the journey and the screens it touches." }
|
|
25
|
+
] %}
|
|
26
|
+
<li>
|
|
27
|
+
<a href="{{ basePath }}/journeys/{{ journey.id }}{{ view.href }}">{{ view.text }}</a>
|
|
28
|
+
<span class="knowledge-note">{{ view.detail }}</span>
|
|
29
|
+
</li>
|
|
30
|
+
{% endfor %}
|
|
31
|
+
</ul>
|
|
17
32
|
|
|
18
33
|
<ol class="knowledge-timeline">
|
|
19
34
|
{% for step in journey.steps %}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{% extends "hippocampus/_layout.html" %}
|
|
2
|
+
|
|
3
|
+
{% block pageTitle %}Journeys{% endblock %}
|
|
4
|
+
|
|
5
|
+
{% block content %}
|
|
6
|
+
<h1>Journeys</h1>
|
|
7
|
+
<p class="nhsuk-lede-text">
|
|
8
|
+
A journey is a scenario walked through end to end. Each one is written once,
|
|
9
|
+
as steps in the source data, and every view below is generated from it.
|
|
10
|
+
</p>
|
|
11
|
+
|
|
12
|
+
{% if not journeys.length %}
|
|
13
|
+
<div class="nhsuk-inset-text">
|
|
14
|
+
<p>No journeys yet. A journey needs a scenario and a set of steps in
|
|
15
|
+
<code>hippocampus/source/journeys.json</code>.</p>
|
|
16
|
+
</div>
|
|
17
|
+
{% endif %}
|
|
18
|
+
|
|
19
|
+
{#
|
|
20
|
+
One block per journey, with its generated views listed underneath rather
|
|
21
|
+
than as cards of their own. Four equal cards - journey, blueprint, flow,
|
|
22
|
+
handover - said they were four artefacts. They are one journey seen four
|
|
23
|
+
ways, and which is which matters when you are deciding where to look.
|
|
24
|
+
#}
|
|
25
|
+
{% for journey in journeys %}
|
|
26
|
+
<section class="knowledge-section">
|
|
27
|
+
<h2 class="nhsuk-heading-m nhsuk-u-margin-bottom-1">
|
|
28
|
+
<a href="{{ basePath }}/journeys/{{ journey.id }}">{{ journey.title }}</a>
|
|
29
|
+
</h2>
|
|
30
|
+
<p class="knowledge-note">
|
|
31
|
+
{{ journey.steps.length }} step{% if journey.steps.length != 1 %}s{% endif %}
|
|
32
|
+
{%- if journey.screenCount %} · {{ journey.screenCount }} screen{% if journey.screenCount != 1 %}s{% endif %}{% endif %}
|
|
33
|
+
{%- if journey.scenario %} · from
|
|
34
|
+
<a href="{{ basePath }}/scenarios">{{ journey.scenario.title }}</a>
|
|
35
|
+
{%- endif %}
|
|
36
|
+
</p>
|
|
37
|
+
<p class="nhsuk-body-s">{{ journey.description }}</p>
|
|
38
|
+
|
|
39
|
+
{% if journey.entryPoint or journey.exitPoint %}
|
|
40
|
+
<p class="knowledge-note">
|
|
41
|
+
{% if journey.entryPoint %}Starts: {{ journey.entryPoint }}{% endif %}
|
|
42
|
+
{%- if journey.entryPoint and journey.exitPoint %} · {% endif %}
|
|
43
|
+
{%- if journey.exitPoint %}Ends: {{ journey.exitPoint }}{% endif %}
|
|
44
|
+
</p>
|
|
45
|
+
{% endif %}
|
|
46
|
+
|
|
47
|
+
<h3 class="nhsuk-heading-xs knowledge-view-list-heading">Generated from it</h3>
|
|
48
|
+
<ul class="knowledge-view-list">
|
|
49
|
+
{% for view in [
|
|
50
|
+
{ href: "/blueprint", text: "Blueprint", detail: "The steps stacked with what is on screen, behind it and where it hurts." },
|
|
51
|
+
{ href: "/blueprint/classic", text: "Blueprint matrix", detail: "The same blueprint as a grid, for printing and workshops." },
|
|
52
|
+
{ href: "/flow", text: "Flow diagram", detail: "The step sequence and its exceptions, drawn." },
|
|
53
|
+
{ href: "/handover", text: "Handover", detail: "Written documentation of the journey and the screens it touches." }
|
|
54
|
+
] %}
|
|
55
|
+
<li>
|
|
56
|
+
<a href="{{ basePath }}/journeys/{{ journey.id }}{{ view.href }}">{{ view.text }}</a>
|
|
57
|
+
<span class="knowledge-note">{{ view.detail }}</span>
|
|
58
|
+
</li>
|
|
59
|
+
{% endfor %}
|
|
60
|
+
</ul>
|
|
61
|
+
</section>
|
|
62
|
+
{% endfor %}
|
|
63
|
+
{% endblock %}
|
|
@@ -25,10 +25,27 @@
|
|
|
25
25
|
{% block pageTitle %}Project context{% endblock %}
|
|
26
26
|
|
|
27
27
|
{% block content %}
|
|
28
|
-
<a class="nhsuk-back-link" href="{{ basePath }}">Back to knowledge base</a>
|
|
29
28
|
|
|
30
|
-
|
|
29
|
+
{#
|
|
30
|
+
Every other page captions itself with the KIND of page it is - "Journey",
|
|
31
|
+
"Evidence impact", "Stacked service blueprint". This one captioned itself
|
|
32
|
+
with project.name, which is the slice being designed: "NCRS patient search"
|
|
33
|
+
sitting above an h1 of "National Care Records Service". A caption above a
|
|
34
|
+
heading reads as the thing that contains it, and the project contains the
|
|
35
|
+
slice, not the other way round.
|
|
36
|
+
#}
|
|
37
|
+
<span class="nhsuk-caption-l">Project context</span>
|
|
31
38
|
<h1>{{ knowledge.projectContext.title }}</h1>
|
|
39
|
+
{#
|
|
40
|
+
The slice keeps its place, labelled, the same way the landing page carries
|
|
41
|
+
it. This is the page where which slice is being designed is real context;
|
|
42
|
+
it just is not the project's name.
|
|
43
|
+
#}
|
|
44
|
+
{% if knowledge.project.name != knowledge.projectContext.title %}
|
|
45
|
+
<p class="knowledge-card__meta">
|
|
46
|
+
Slice: {{ knowledge.project.name }} · {{ knowledge.project.phase }}
|
|
47
|
+
</p>
|
|
48
|
+
{% endif %}
|
|
32
49
|
<p class="nhsuk-lede-text">{{ knowledge.projectContext.summary }}</p>
|
|
33
50
|
|
|
34
51
|
{% if knowledge.projectContext.purpose or knowledge.projectContext.vision or knowledge.projectContext.problemStatement or knowledge.projectContext.serviceProposition %}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{% extends "hippocampus/_layout.html" %}
|
|
2
|
+
{% from "hippocampus/components/_connections.njk" import connections %}
|
|
3
|
+
{% from "hippocampus/components/_screen-preview.njk" import screenPreview %}
|
|
4
|
+
|
|
5
|
+
{% block pageTitle %}{{ detail.entity.label }}{% endblock %}
|
|
6
|
+
|
|
7
|
+
{% block content %}
|
|
8
|
+
|
|
9
|
+
<span class="nhsuk-caption-l">{{ detail.entity.type }}</span>
|
|
10
|
+
<h1>{{ detail.entity.label }}</h1>
|
|
11
|
+
|
|
12
|
+
{# Only a screen has something to show. The record page is shared by needs and
|
|
13
|
+
insights too, and a preview belongs to the one record type that is a page. #}
|
|
14
|
+
{% if detail.entity.type == "Screen" and detail.record %}
|
|
15
|
+
{{ screenPreview(detail.record, "detail") }}
|
|
16
|
+
{% endif %}
|
|
17
|
+
|
|
18
|
+
{% if facts.length %}
|
|
19
|
+
<dl class="nhsuk-summary-list">
|
|
20
|
+
{% for fact in facts %}
|
|
21
|
+
{% if fact.value %}
|
|
22
|
+
<div class="nhsuk-summary-list__row">
|
|
23
|
+
<dt class="nhsuk-summary-list__key">{{ fact.key }}</dt>
|
|
24
|
+
<dd class="nhsuk-summary-list__value">{{ fact.value }}</dd>
|
|
25
|
+
</div>
|
|
26
|
+
{% endif %}
|
|
27
|
+
{% endfor %}
|
|
28
|
+
</dl>
|
|
29
|
+
{% endif %}
|
|
30
|
+
|
|
31
|
+
<h2>Connections</h2>
|
|
32
|
+
{{ connections(detail.groups) }}
|
|
33
|
+
{% endblock %}
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
{% block pageTitle %}Research{% 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 inputs</span>
|
|
9
8
|
<h1>Research</h1>
|
|
@@ -16,11 +15,24 @@
|
|
|
16
15
|
<div><strong>{{ research.designActions.length }}</strong><span>Design actions</span></div>
|
|
17
16
|
</div>
|
|
18
17
|
|
|
18
|
+
{% if research.outstandingTotal %}
|
|
19
|
+
<div class="nhsuk-inset-text nhsuk-u-margin-top-0">
|
|
20
|
+
<p><strong>{{ research.outstandingTotal }} design actions are still open</strong>
|
|
21
|
+
across all rounds. An action is open until a decision resolves it.</p>
|
|
22
|
+
</div>
|
|
23
|
+
{% endif %}
|
|
24
|
+
|
|
25
|
+
<p class="knowledge-muted nhsuk-body-s">Most recent round first.</p>
|
|
26
|
+
|
|
19
27
|
{% if research.rounds.length %}
|
|
20
28
|
{% for round in research.rounds %}
|
|
21
29
|
<section class="knowledge-section">
|
|
22
30
|
<p class="knowledge-card__meta">{{ round.date }} · {{ round.sourceType }}</p>
|
|
23
31
|
<h2>{{ round.title }}</h2>
|
|
32
|
+
<p class="knowledge-round-status">
|
|
33
|
+
<strong class="nhsuk-tag nhsuk-tag--{{ round.status.tag }}">{{ round.status.label }}</strong>
|
|
34
|
+
<span class="knowledge-muted">{{ round.status.detail }}</span>
|
|
35
|
+
</p>
|
|
24
36
|
<p>{{ round.summary }}</p>
|
|
25
37
|
|
|
26
38
|
<div class="nhsuk-grid-row">
|
|
@@ -38,7 +50,7 @@
|
|
|
38
50
|
<h3 class="nhsuk-heading-s">Insights</h3>
|
|
39
51
|
<ul class="nhsuk-list">
|
|
40
52
|
{% for insight in round.insights %}
|
|
41
|
-
<li>{{ insight.title }}</li>
|
|
53
|
+
<li><a href="{{ basePath }}/insights/{{ insight.id }}">{{ insight.title }}</a></li>
|
|
42
54
|
{% else %}
|
|
43
55
|
<li class="knowledge-muted">None linked</li>
|
|
44
56
|
{% endfor %}
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
{% block pageTitle %}{{ screen.title }}{% 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">Fictional design review task</span>
|
|
8
7
|
<h1>{{ screen.title }}</h1>
|
|
9
8
|
<p class="nhsuk-lede-text">{{ screen.purpose }}</p>
|
|
@@ -1,22 +1,40 @@
|
|
|
1
1
|
{% extends "hippocampus/_layout.html" %}
|
|
2
2
|
{% from "hippocampus/components/_list.njk" import bulletList %}
|
|
3
3
|
{% from "hippocampus/components/_empty-state.njk" import emptyState %}
|
|
4
|
+
{% from "hippocampus/components/_filters.njk" import findBar, noMatches %}
|
|
4
5
|
|
|
5
6
|
{% block pageTitle %}Scenarios{% endblock %}
|
|
6
7
|
|
|
7
8
|
{% block content %}
|
|
8
|
-
<a class="nhsuk-back-link" href="{{ basePath }}">Back to knowledge base</a>
|
|
9
9
|
<h1>Scenarios</h1>
|
|
10
|
+
|
|
11
|
+
{% if knowledge.scenarios.length %}
|
|
12
|
+
{{ findBar(basePath + "/scenarios", "Search scenarios",
|
|
13
|
+
"Any words from the title, trigger or context.",
|
|
14
|
+
query, facets, scenarios.length, knowledge.scenarios.length,
|
|
15
|
+
[1] if hasFilters else [], basePath + "/scenarios") }}
|
|
16
|
+
{% if not scenarios.length %}{{ noMatches(basePath + "/scenarios", "scenarios") }}{% endif %}
|
|
17
|
+
{% endif %}
|
|
10
18
|
{% if knowledge.scenarios.length %}
|
|
11
|
-
{% for scenario in
|
|
19
|
+
{% for scenario in scenarios %}
|
|
12
20
|
{% set user = knowledge.index.users[scenario.userId] %}
|
|
13
21
|
<section class="knowledge-section">
|
|
14
22
|
<span class="nhsuk-tag nhsuk-tag--{{ 'red' if scenario.riskLevel == 'high' else 'yellow' }}">{{ scenario.riskLevel }} risk</span>
|
|
15
23
|
<h2>{{ scenario.title }}</h2>
|
|
16
|
-
<p><strong>User:</strong> {{ user.label }}</p>
|
|
24
|
+
<p><strong>User:</strong> <a href="{{ basePath }}/users/{{ user.id }}">{{ user.label }}</a></p>
|
|
17
25
|
<p><strong>Trigger:</strong> {{ scenario.trigger }}</p>
|
|
18
26
|
<p>{{ scenario.context }}</p>
|
|
19
27
|
|
|
28
|
+
{% if scenario.needIds.length %}
|
|
29
|
+
<h3 class="nhsuk-heading-s">Needs this scenario covers</h3>
|
|
30
|
+
<ul class="nhsuk-list nhsuk-list--bullet">
|
|
31
|
+
{% for needId in scenario.needIds %}
|
|
32
|
+
{% set need = knowledge.index.needs[needId] %}
|
|
33
|
+
{% if need %}<li><a href="{{ basePath }}/needs/{{ need.id }}">{{ need.statement }}</a></li>{% endif %}
|
|
34
|
+
{% endfor %}
|
|
35
|
+
</ul>
|
|
36
|
+
{% endif %}
|
|
37
|
+
|
|
20
38
|
{% if scenario.locationSearch %}
|
|
21
39
|
<h3 class="nhsuk-heading-s">Location search</h3>
|
|
22
40
|
<p><strong>Primary intent:</strong> {{ scenario.locationSearch.primaryIntent }}</p>
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{% extends "hippocampus/_layout.html" %}
|
|
2
|
+
{% from "hippocampus/components/_empty-state.njk" import emptyState %}
|
|
3
|
+
{% from "hippocampus/components/_filters.njk" import findBar, noMatches %}
|
|
4
|
+
{% from "hippocampus/components/_screen-preview.njk" import screenPreview %}
|
|
5
|
+
|
|
6
|
+
{% block pageTitle %}Screens{% endblock %}
|
|
7
|
+
|
|
8
|
+
{% block content %}
|
|
9
|
+
<h1>Screens</h1>
|
|
10
|
+
<p class="nhsuk-lede-text">Every screen traces back to the needs it addresses.</p>
|
|
11
|
+
|
|
12
|
+
{% if knowledge.screens.length %}
|
|
13
|
+
{{ findBar(basePath + "/screens", "Search screens",
|
|
14
|
+
"Title, route, purpose or component name.",
|
|
15
|
+
query, facets, screens.length, knowledge.screens.length,
|
|
16
|
+
[1] if hasFilters else [], basePath + "/screens") }}
|
|
17
|
+
|
|
18
|
+
{#
|
|
19
|
+
Cards with a preview, rather than a four-column table.
|
|
20
|
+
|
|
21
|
+
A table of titles and routes made you open a screen to find out which one
|
|
22
|
+
it was. Seven screens is a set you should be able to recognise.
|
|
23
|
+
#}
|
|
24
|
+
<div class="knowledge-card-grid knowledge-card-grid--wide knowledge-card-grid--fill">
|
|
25
|
+
{% for screen in screens %}
|
|
26
|
+
<article class="knowledge-card knowledge-card--compact">
|
|
27
|
+
{{ screenPreview(screen) }}
|
|
28
|
+
<h2 class="nhsuk-heading-s nhsuk-u-margin-bottom-1">
|
|
29
|
+
<a href="{{ basePath }}/screens/{{ screen.id }}">{{ screen.title }}</a>
|
|
30
|
+
</h2>
|
|
31
|
+
<p class="nhsuk-body-s">{{ screen.purpose }}</p>
|
|
32
|
+
<p class="knowledge-card__meta nhsuk-u-margin-bottom-0">
|
|
33
|
+
{{ screen.needIds.length }} need{% if screen.needIds.length != 1 %}s{% endif %}
|
|
34
|
+
{%- if screen.components.length %} · {{ screen.components.length }} component{% if screen.components.length != 1 %}s{% endif %}{% endif %}
|
|
35
|
+
</p>
|
|
36
|
+
</article>
|
|
37
|
+
{% endfor %}
|
|
38
|
+
</div>
|
|
39
|
+
{% if not screens.length %}{{ noMatches(basePath + "/screens", "screens") }}{% endif %}
|
|
40
|
+
{% else %}
|
|
41
|
+
{{ emptyState("No screens yet",
|
|
42
|
+
"A screen is a page in the prototype, recorded with the needs it addresses.",
|
|
43
|
+
"Add one with the add-prototype-screen skill.") }}
|
|
44
|
+
{% endif %}
|
|
45
|
+
{% endblock %}
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
{% extends "hippocampus/_layout.html" %}
|
|
2
2
|
|
|
3
|
+
{#
|
|
4
|
+
One step of the trace.
|
|
5
|
+
|
|
6
|
+
Each item used to restate the whole relationship as a sentence - "Designer or
|
|
7
|
+
researcher maintaining the prototype has need I need dated screenshot or
|
|
8
|
+
notes-based evidence..." - which repeated this item's own heading and then
|
|
9
|
+
the parent's, unpunctuated, on every row. What a reader needs is the verb:
|
|
10
|
+
they can see both ends already.
|
|
11
|
+
|
|
12
|
+
Leaves also announced "No linked entities in this direction", which is the
|
|
13
|
+
normal case for most of a tree and so said nothing while taking a line each.
|
|
14
|
+
#}
|
|
3
15
|
{% macro renderBranches(branches, direction) %}
|
|
4
16
|
{% if branches.length %}
|
|
5
17
|
<ol class="knowledge-trace-children">
|
|
@@ -7,41 +19,39 @@
|
|
|
7
19
|
<li class="knowledge-trace-item">
|
|
8
20
|
<div class="knowledge-trace-item__marker" aria-hidden="true"></div>
|
|
9
21
|
<div class="knowledge-trace-item__content">
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
22
|
+
<p class="knowledge-trace-item__relationship">
|
|
23
|
+
{{ branch.relationship.label }}
|
|
24
|
+
{%- if branch.entity.date %} · {{ branch.entity.date }}{% endif %}
|
|
25
|
+
</p>
|
|
13
26
|
<h3 class="knowledge-trace-item__heading">
|
|
14
27
|
<a href="{{ basePath }}/trace?entity={{ branch.entity.id }}">{{ branch.entity.label }}</a>
|
|
15
28
|
</h3>
|
|
16
|
-
<
|
|
17
|
-
<p class="knowledge-trace-item__relationship">
|
|
18
|
-
{{ branch.relationship.fromLabel }} <strong>{{ branch.relationship.label }}</strong> {{ branch.relationship.toLabel }}
|
|
19
|
-
</p>
|
|
29
|
+
<p class="knowledge-trace-item__type">{{ branch.entity.type }}</p>
|
|
20
30
|
{% if branch.seen %}
|
|
21
|
-
<p class="knowledge-
|
|
31
|
+
<p class="knowledge-note nhsuk-u-margin-bottom-0">Already shown above - this link loops back.</p>
|
|
22
32
|
{% endif %}
|
|
23
33
|
{{ renderBranches(branch.children, direction) }}
|
|
24
34
|
</div>
|
|
25
35
|
</li>
|
|
26
36
|
{% endfor %}
|
|
27
37
|
</ol>
|
|
28
|
-
{% else %}
|
|
29
|
-
<p class="knowledge-muted">No linked entities in this direction.</p>
|
|
30
38
|
{% endif %}
|
|
31
39
|
{% endmacro %}
|
|
32
40
|
|
|
33
41
|
{% block pageTitle %}Trace tree{% endblock %}
|
|
34
42
|
|
|
35
43
|
{% block content %}
|
|
36
|
-
<a class="nhsuk-back-link" href="{{ basePath }}">Back to knowledge base</a>
|
|
37
44
|
|
|
38
45
|
<span class="nhsuk-caption-l">Knowledge graph</span>
|
|
39
46
|
<h1>Trace tree</h1>
|
|
40
47
|
<p class="nhsuk-lede-text">Navigate from old design inputs, through research and insight, into actions, newer design work and content.</p>
|
|
41
48
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
49
|
+
{# The same control bar the list pages use. Two forms doing the same job on
|
|
50
|
+
adjacent pages had no reason to look like two different features. #}
|
|
51
|
+
<form method="get" action="{{ basePath }}/trace"
|
|
52
|
+
class="knowledge-find knowledge-find--compact" role="search"
|
|
53
|
+
data-hippocampus-trace-form>
|
|
54
|
+
<div class="nhsuk-form-group">
|
|
45
55
|
<label class="nhsuk-label" for="type">Type</label>
|
|
46
56
|
<select class="nhsuk-select" id="type" name="type" data-trace-type>
|
|
47
57
|
<option value="">Select type</option>
|
|
@@ -51,7 +61,7 @@
|
|
|
51
61
|
</select>
|
|
52
62
|
</div>
|
|
53
63
|
|
|
54
|
-
<div class="
|
|
64
|
+
<div class="nhsuk-form-group">
|
|
55
65
|
<label class="nhsuk-label" for="entity">Entity</label>
|
|
56
66
|
<select class="nhsuk-select" id="entity" name="entity" data-trace-entity {{ "disabled" if not trace.entityType else "" }}>
|
|
57
67
|
<option value="">Select entity</option>
|
|
@@ -64,9 +74,8 @@
|
|
|
64
74
|
</select>
|
|
65
75
|
</div>
|
|
66
76
|
|
|
67
|
-
<button class="nhsuk-button
|
|
68
|
-
|
|
69
|
-
</section>
|
|
77
|
+
<button class="nhsuk-button nhsuk-u-margin-bottom-3" type="submit">View trace</button>
|
|
78
|
+
</form>
|
|
70
79
|
|
|
71
80
|
{% if trace.selected %}
|
|
72
81
|
<section class="knowledge-section">
|
|
@@ -83,11 +92,12 @@
|
|
|
83
92
|
<li class="knowledge-trace-item knowledge-trace-item--selected">
|
|
84
93
|
<div class="knowledge-trace-item__marker" aria-hidden="true"></div>
|
|
85
94
|
<div class="knowledge-trace-item__content">
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
95
|
+
<p class="knowledge-trace-item__relationship">
|
|
96
|
+
The record you are tracing
|
|
97
|
+
{%- if trace.selected.date %} · {{ trace.selected.date }}{% endif %}
|
|
98
|
+
</p>
|
|
89
99
|
<h3 class="knowledge-trace-item__heading">{{ trace.selected.label }}</h3>
|
|
90
|
-
<
|
|
100
|
+
<p class="knowledge-trace-item__type">{{ trace.selected.type }}</p>
|
|
91
101
|
</div>
|
|
92
102
|
</li>
|
|
93
103
|
|
|
@@ -110,4 +120,7 @@
|
|
|
110
120
|
{% endif %}
|
|
111
121
|
</section>
|
|
112
122
|
{% endif %}
|
|
123
|
+
|
|
124
|
+
{# Enhancement only: the form works without it, one button press at a time. #}
|
|
125
|
+
<script type="module" src="{{ hippocampusAssets }}/trace.js"></script>
|
|
113
126
|
{% endblock %}
|