Skip to content

Commit 168dca9

Browse files
Format demo pages and bump react-router
1 parent 1656aca commit 168dca9

9 files changed

Lines changed: 18 additions & 31 deletions

examples/demo/src/app-shell.tsx

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,7 @@ export function AppShell() {
3939
/>
4040
</li>
4141
<li>
42-
<NavigationLink
43-
label="Reset form"
44-
to="/basic/reset-form"
45-
/>
42+
<NavigationLink label="Reset form" to="/basic/reset-form" />
4643
</li>
4744
</ul>
4845
</li>
@@ -53,10 +50,7 @@ export function AppShell() {
5350
<NavigationLink label="Saved draft" to="/advanced/draft" />
5451
</li>
5552
<li>
56-
<NavigationLink
57-
label="Saved list"
58-
to="/advanced/list"
59-
/>
53+
<NavigationLink label="Saved list" to="/advanced/list" />
6054
</li>
6155
</ul>
6256
</li>

examples/demo/src/pages/advanced-overview-page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ export function AdvancedOverviewPage() {
99
<p className="eyebrow">Advanced examples</p>
1010
<h2>Use cached pages with larger state.</h2>
1111
<p>
12-
Use these pages when an example has timers, filters, marked rows, long
13-
notes, and a scroll position worth keeping.
12+
Use these pages when an example has timers, filters, marked rows,
13+
long notes, and a scroll position worth keeping.
1414
</p>
1515
<div className="button-row">
1616
<Link className="primary-button" to="/advanced/draft">

examples/demo/src/pages/basic-cached-form-page.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,7 @@ export function BasicCachedFormPage() {
2323
<span className="active-badge">Saved page</span>
2424
</header>
2525

26-
<section
27-
aria-label="Cached form"
28-
className="form-panel compact-form"
29-
>
26+
<section aria-label="Cached form" className="form-panel compact-form">
3027
<div className="metric-grid">
3128
<StatusMetric label="Prepared" value={cachedForm.preparedAt} />
3229
<StatusMetric label="Load id" value={cachedForm.loadId} />

examples/demo/src/pages/basic-reset-form-page.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,7 @@ export function BasicResetFormPage() {
2222
<span className="active-badge muted">Resets</span>
2323
</header>
2424

25-
<section
26-
aria-label="Reset form"
27-
className="form-panel compact-form"
28-
>
25+
<section aria-label="Reset form" className="form-panel compact-form">
2926
<div className="metric-grid">
3027
<StatusMetric label="Prepared" value={resetForm.preparedAt} />
3128
<StatusMetric label="Load id" value={resetForm.loadId} />

examples/demo/src/pages/reset-page.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ export function ResetPage() {
2828
<p className="eyebrow">Reset page</p>
2929
<h2>This page resets each time.</h2>
3030
<p>
31-
Use this page as the control check when you want to compare a
32-
cached page with a normal reset.
31+
Use this page as the control check when you want to compare a cached
32+
page with a normal reset.
3333
</p>
3434
</div>
3535
<span className="active-badge muted">Resets</span>
@@ -38,10 +38,7 @@ export function ResetPage() {
3838
<section aria-label="Reset page form" className="form-panel compact-form">
3939
<div className="metric-grid">
4040
<StatusMetric label="Prepared" value={resetPage.preparedAt} />
41-
<StatusMetric
42-
label="First wait"
43-
value={`${resetPage.delayMs}ms`}
44-
/>
41+
<StatusMetric label="First wait" value={`${resetPage.delayMs}ms`} />
4542
<StatusMetric label="Load id" value={resetPage.loadId} />
4643
<StatusMetric label="Open time" value={`${seconds}s`} />
4744
</div>

examples/demo/src/pages/saved-list-page.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ export function SavedListPage() {
2222
const [visibleSeconds, setVisibleSeconds] = useState(0);
2323
const normalizedQuery = query.trim().toLowerCase();
2424
const filteredRecords = savedList.records.filter((record) => {
25-
const matchesCategory =
26-
category === "All" || record.category === category;
25+
const matchesCategory = category === "All" || record.category === category;
2726
const matchesQuery =
2827
normalizedQuery.length === 0 ||
2928
record.name.toLowerCase().includes(normalizedQuery) ||
@@ -63,8 +62,8 @@ export function SavedListPage() {
6362
<p className="eyebrow">Saved list</p>
6463
<h2>The filtered list stays ready.</h2>
6564
<p>
66-
Search, filter, mark a row, scroll down, and return to the
67-
same working view.
65+
Search, filter, mark a row, scroll down, and return to the same
66+
working view.
6867
</p>
6968
</div>
7069
<span className="active-badge">Saved list</span>

examples/demo/src/server-functions.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ function formatPreparedAt() {
2929

3030
function getAbortReason(signal: AbortSignal) {
3131
return (
32-
signal.reason ?? new DOMException("The operation was aborted.", "AbortError")
32+
signal.reason ??
33+
new DOMException("The operation was aborted.", "AbortError")
3334
);
3435
}
3536

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"dependencies": {},
6363
"devDependencies": {
6464
"@biomejs/biome": "2.4.15",
65-
"@tanstack/react-router": "1.170.15",
65+
"@tanstack/react-router": "1.170.16",
6666
"@types/node": "25.9.3",
6767
"@types/react": "19.2.17",
6868
"@types/react-dom": "19.2.3",

scripts/release.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ function pushRelease(release) {
8585
run("git", ["push", "origin", "main"]);
8686
run("git", ["push", "origin", tagName]);
8787

88-
console.log(`${tagName} pushed. Creating the GitHub Release and verifying npm.`);
88+
console.log(
89+
`${tagName} pushed. Creating the GitHub Release and verifying npm.`
90+
);
8991

9092
createGitHubRelease(tagName);
9193
watchPublishWorkflow(tagName);

0 commit comments

Comments
 (0)