Commit 59fc3b8
authored
feat(citizen-portal-web): services catalog + shared gold-divider page headers (#34)
* feat(citizen-portal-web): remove application-status pill from catalog cards
The "All services" cards on /services are purely navigational links to a
service's detail page. They rendered a status pill for services the signed-in
citizen already had an application for, conflating browse with application
tracking (which lives in the "Your applications" band). Drop the pill and its
now-dead byService/application plumbing; the applications query still feeds
"Your applications".
* feat(citizen-portal-web): shared clickable service card; drop /services applications band
Extract a shared ServiceCard (components/services/service-card.tsx) used by both
the home "Available services" panel and the /services "All services" grid. The
whole card is now a click/tap target to the service detail via a stretched-link
overlay (after:absolute inset-0), yet only the title is the accessible link text
and only the title underlines on hover -- the description is a plain sibling and
is never underlined.
Also remove the "Your applications" band from /services (and its auth/
applications-query plumbing); application tracking stays on the home page. The
catalog page is now purely browse-and-navigate.
* feat(citizen-portal-web): /services heading + search above a full-width gold divider
Restructure the catalog page to the citizen Account-pages pattern: a full-width
header region carrying a bcgov-gold bottom divider (border-b-2 border-bcgov-gold)
holds the page heading and the search box, with its content constrained to the
standard max-w-280 column; the "All services" grid renders below the divider.
SettingsPageHeader is not reused -- it has no slot for a search box -- only the
divider layout is shared. Layout-only; search and catalog behaviour unchanged.
* feat(citizen-portal-web): service detail header adopts the full-width gold divider
Apply the /services (feature 143) / Account-pages header pattern to the service
detail page: the breadcrumb, title/description, and "Start an application" button
now sit in a full-width bcgov-gold-divided header region (border-b-2
border-bcgov-gold, content constrained to max-w-280), with the overview sections
below in the standard column. Replaces the old thin per-column border-b. Layout
only; service data, forms/apply flow, and version routing unchanged. The historical
version page keeps its old header (out of scope).
* refactor(citizen-portal-web): extract reusable PageHeaderBanner with breadcrumb slot
Consolidate the full-width bcgov-gold divider header, previously hand-rolled in
three places, into one PageHeaderBanner primitive: full-width gold rule +
constrained max-w-280 column + an optional breadcrumb slot; content-agnostic
children. SettingsPageHeader now composes it (account/notifications/agreements
markup unchanged); /services and the service detail page render through it, the
latter passing its breadcrumb via the new breadcrumb prop. Layout refactor only,
no visual change.
* feat(citizen-portal-web): title Your activity cards by application name
Add a titleBy variant to ApplicationRow (default 'service', unchanged home
behaviour). On the service detail "Your activity" section -- where every row is
already this service -- pass titleBy='application' so the card leads with the
application (form) name and the meta line is just "Ref #<reference> • <date>",
dropping the now-redundant service/form-name prefix. Home "Track your
applications" keeps the service name as the title.
* feat(citizen-portal-web): add breadcrumb to the notification settings page
Pass a breadcrumb to the notification settings SettingsPageHeader:
Account settings -> Notification settings (current). Mirrors the Service
Agreements detail page; the header already exposes a breadcrumb slot via
PageHeaderBanner.
* fix(citizen-portal-web): consent gate presents only agreements needing a decision
The pre-application consent gate opened whenever any agreement was unsatisfied
(consentPending over the full list) but then rendered EVERY agreement -- so a
single new/changed one re-presented all the previously-approved (unchanged) ones,
risking re-recording them into the append-only /account/service-agreements
history. Filter the gate to pending = agreements where !satisfied(a, a.decision)
(new/changed on the current version) for display, gating, and recording; already-
satisfied agreements are hidden and never re-recorded. consentPending (whether the
gate opens) and the server submit gate are unchanged -- the server stays
authoritative; this is a client display/UX fix.1 parent 81723a4 commit 59fc3b8
16 files changed
Lines changed: 380 additions & 193 deletions
File tree
- apps/citizen-portal-web
- src/components
- application
- landing
- layout
- services
- test
Lines changed: 19 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
43 | 51 | | |
44 | 52 | | |
45 | 53 | | |
46 | 54 | | |
47 | | - | |
| 55 | + | |
48 | 56 | | |
49 | 57 | | |
50 | 58 | | |
| |||
53 | 61 | | |
54 | 62 | | |
55 | 63 | | |
56 | | - | |
| 64 | + | |
57 | 65 | | |
58 | 66 | | |
59 | 67 | | |
| |||
83 | 91 | | |
84 | 92 | | |
85 | 93 | | |
86 | | - | |
87 | | - | |
88 | | - | |
| 94 | + | |
89 | 95 | | |
90 | 96 | | |
91 | 97 | | |
| |||
94 | 100 | | |
95 | 101 | | |
96 | 102 | | |
97 | | - | |
| 103 | + | |
98 | 104 | | |
99 | 105 | | |
100 | 106 | | |
101 | 107 | | |
102 | | - | |
103 | | - | |
| 108 | + | |
| 109 | + | |
104 | 110 | | |
105 | | - | |
| 111 | + | |
106 | 112 | | |
107 | 113 | | |
108 | 114 | | |
| |||
Lines changed: 2 additions & 30 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | 15 | | |
28 | 16 | | |
29 | 17 | | |
| |||
48 | 36 | | |
49 | 37 | | |
50 | 38 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
| 39 | + | |
68 | 40 | | |
69 | 41 | | |
70 | 42 | | |
| |||
Lines changed: 28 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
Lines changed: 13 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | | - | |
8 | | - | |
| 8 | + | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
39 | 37 | | |
40 | 38 | | |
41 | | - | |
| 39 | + | |
42 | 40 | | |
43 | 41 | | |
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
216 | 217 | | |
217 | 218 | | |
218 | 219 | | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
219 | 228 | | |
220 | 229 | | |
221 | 230 | | |
| |||
Lines changed: 36 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
59 | 78 | | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
77 | 88 | | |
78 | 89 | | |
79 | 90 | | |
| |||
0 commit comments