Skip to content

Commit 9856264

Browse files
chore: prepare pagination release metadata
1 parent 4d32825 commit 9856264

File tree

7 files changed

+110
-5
lines changed

7 files changed

+110
-5
lines changed

CHANGELOG.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,28 @@ We are following [Semantic Versioning](https://semver.org/spec/v2.0.0.html), as
66

77
## Monorepo Package Releases (`toolkit-v*`, `react-v*`)
88

9-
### Unreleased
9+
### 2026-04-16
10+
11+
#### @ourfuturehealth/toolkit 4.14.0 (`toolkit-v4.14.0`)
12+
13+
##### Changed
14+
15+
- Refreshed the toolkit `pagination` component to the current design-system treatment, including 4px arrow spacing, the boxed focus style, and state coloring that keeps the title and arrow in the brand color while the page label carries the link-state change
16+
- Changed pagination links to hug their content instead of owning 50% click zones, while keeping the existing responsive outer margin pending broader design confirmation
17+
- Expanded the pagination docs page and examples to cover default, previous-only, and next-only sequence edges
18+
19+
#### @ourfuturehealth/react-components 0.13.0 (`react-v0.13.0`)
20+
21+
##### Added
22+
23+
- First public React `Pagination` component with toolkit-parity previous/next link structure and support for previous-only and next-only variants
24+
- Storybook coverage and unit/accessibility tests for the React pagination component
25+
26+
##### Changed
27+
28+
- Aligned the React pagination arrows, focus treatment, and state coloring with the refreshed toolkit component and current design spec
29+
30+
### 2026-04-15
1031

1132
#### @ourfuturehealth/react-components 0.8.0 (`react-v0.8.0`)
1233

UPGRADING.md

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ This guide provides detailed migration instructions for upgrading between versio
88

99
| Version | Date | Breaking Changes | Migration Complexity |
1010
| ------------------------------------------------------- | ------------- | -------------------------- | ---------------------------------------- |
11+
| [v4.14.0 / React v0.13.0](#upgrading-to-v4140--react-v0130) | April 2026 | No breaking changes | 🟢 Low - adopt the public React pagination if needed |
1112
| [React v0.8.0](#upgrading-to-react-v080) | April 2026 | React `spritePath` removal | 🟢 Low - Remove the deprecated prop |
1213
| [v4.9.0 / React v0.7.0](#upgrading-to-v490--react-v070) | April 2026 | Icon naming sync | 🟡 Medium - Search/replace icon names |
1314
| [v4.8.0 / React v0.6.0](#upgrading-to-v480--react-v060) | March 2026 | No breaking changes | 🟢 Low - only relevant if you adopted the earlier TextInput prototype |
@@ -20,6 +21,64 @@ This guide provides detailed migration instructions for upgrading between versio
2021

2122
---
2223

24+
## Upgrading to v4.14.0 / React v0.13.0
25+
26+
**Released:** April 2026
27+
**Affected packages:**
28+
29+
- `@ourfuturehealth/toolkit` v4.14.0+
30+
- `@ourfuturehealth/react-components` v0.13.0+
31+
32+
### Breaking Changes
33+
34+
None.
35+
36+
### Release Overview
37+
38+
This release refreshes the toolkit `pagination` component to the current design-system treatment and introduces the first public React `Pagination` component.
39+
40+
- Toolkit consumers now get boxed pagination focus states, corrected state coloring, and content-hugging previous/next hit areas instead of 50/50 click zones.
41+
- Toolkit docs now show the start and end of a sequence explicitly through `previous-only` and `next-only` examples.
42+
- React consumers can now adopt the public `Pagination` component instead of carrying local previous/next page navigation markup.
43+
44+
### Migration Steps
45+
46+
1. Adopt the public React `Pagination` component where you need toolkit-parity previous/next page navigation in React.
47+
2. Re-run visual QA if you have local pagination overrides, because the link hit area now hugs the content instead of filling half of the row.
48+
3. For sequence endpoints, omit the unavailable side rather than rendering placeholder markup.
49+
50+
#### React example
51+
52+
**New in `react-v0.13.0`:**
53+
54+
```tsx
55+
import { Pagination } from '@ourfuturehealth/react-components';
56+
```
57+
58+
#### Toolkit example
59+
60+
**Before:**
61+
62+
```njk
63+
<nav class="app-pagination" aria-label="Pagination">
64+
<a href="/previous">Previous page</a>
65+
<a href="/next">Next page</a>
66+
</nav>
67+
```
68+
69+
**After (`toolkit-v4.14.0`):**
70+
71+
```njk
72+
{{ pagination({
73+
"previousUrl": "/section/treatments",
74+
"previousPage": "Treatments",
75+
"nextUrl": "/section/symptoms",
76+
"nextPage": "Symptoms"
77+
}) }}
78+
```
79+
80+
---
81+
2382
## Upgrading to React v0.8.0
2483

2584
**Planned:** April 2026

docs/consuming-react-components.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Import components and styles in your React application:
5757

5858
```tsx
5959
import React from 'react';
60-
import { Button, TextInput } from '@ourfuturehealth/react-components';
60+
import { Button, Pagination, TextInput } from '@ourfuturehealth/react-components';
6161
import '@ourfuturehealth/react-components/styles/participant';
6262

6363
function App() {
@@ -70,6 +70,12 @@ function App() {
7070
inputWidth={20}
7171
onChange={(e) => console.log(e.target.value)}
7272
/>
73+
<Pagination
74+
previousUrl="/section/treatments"
75+
previousPage="Treatments"
76+
nextUrl="/section/symptoms"
77+
nextPage="Symptoms"
78+
/>
7379
<Button onClick={() => console.log('Clicked')}>Submit</Button>
7480
</div>
7581
);
@@ -136,6 +142,7 @@ The React components package currently provides the following components:
136142
- `Card` - Content presentation cards for summaries, status, and next steps
137143
- `CardCallout` - Feedback-style callout cards for informational, warning, success, and error messages
138144
- `CardDoDont` - Positive and negative recommendation lists
145+
- `Pagination` - Previous/next page navigation for a small related sequence
139146

140147
For complete component documentation and live examples, run Storybook locally from this repository:
141148

docs/release-versioning-strategy.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,17 @@ This table is a visual aid for pre-monorepo versus post-monorepo releases.
128128
| 19 | `react-v0.6.0` | N/A | `0.6.0` | Monorepo | Released |
129129
| 20 | `toolkit-v4.9.0` | `4.9.0` | N/A | Monorepo | Released |
130130
| 21 | `react-v0.7.0` | N/A | `0.7.0` | Monorepo | Released |
131-
| 22 | `react-v0.8.0` | N/A | `0.8.0` | Monorepo | Planned in this branch |
131+
| 22 | `react-v0.8.0` | N/A | `0.8.0` | Monorepo | Released |
132+
| 23 | `toolkit-v4.10.0` | `4.10.0` | N/A | Monorepo | Planned in DSE-335 |
133+
| 24 | `react-v0.9.0` | N/A | `0.9.0` | Monorepo | Planned in DSE-335 |
134+
| 25 | `toolkit-v4.11.0` | `4.11.0` | N/A | Monorepo | Planned in DSE-326 / DSE-328 |
135+
| 26 | `react-v0.10.0` | N/A | `0.10.0` | Monorepo | Planned in DSE-326 / DSE-328 |
136+
| 27 | `toolkit-v4.12.0` | `4.12.0` | N/A | Monorepo | Planned in DSE-331 |
137+
| 28 | `react-v0.11.0` | N/A | `0.11.0` | Monorepo | Planned in DSE-331 |
138+
| 29 | `toolkit-v4.13.0` | `4.13.0` | N/A | Monorepo | Planned in DSE-337 |
139+
| 30 | `react-v0.12.0` | N/A | `0.12.0` | Monorepo | Planned in DSE-337 |
140+
| 31 | `toolkit-v4.14.0` | `4.14.0` | N/A | Monorepo | Planned in this branch |
141+
| 32 | `react-v0.13.0` | N/A | `0.13.0` | Monorepo | Planned in this branch |
132142

133143
## References
134144

packages/react-components/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ import {
5252
ErrorSummary,
5353
Fieldset,
5454
Icon,
55+
Pagination,
5556
Radios,
5657
Select,
5758
Tag,
@@ -86,6 +87,12 @@ function App() {
8687
/>
8788
<Tag variant="brand">Beta</Tag>
8889
<Button variant="contained">Click me</Button>
90+
<Pagination
91+
previousUrl="/section/treatments"
92+
previousPage="Treatments"
93+
nextUrl="/section/symptoms"
94+
nextPage="Symptoms"
95+
/>
8996
<Icon name="Search" size={24} />
9097
<Card heading="Profile complete" description="You’ve completed all the required profile details." />
9198
<CardCallout heading="Warning" variant="warning" text="Check this information before you continue." />
@@ -189,6 +196,7 @@ The package also provides:
189196
- `Checkboxes`
190197
- `Radios`
191198
- `Icon`
199+
- `Pagination`
192200

193201
### ErrorSummary
194202

packages/react-components/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ourfuturehealth/react-components",
3-
"version": "0.8.0",
3+
"version": "0.13.0",
44
"type": "module",
55
"description": "React component library for OFH Design System",
66
"packageManager": "pnpm@10.29.2",

packages/toolkit/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ourfuturehealth/toolkit",
3-
"version": "4.9.0",
3+
"version": "4.14.0",
44
"description": "Our Future Health design system toolkit contains the code you need to start building user interfaces for Our Future Health websites and services.",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)