Skip to content

Commit bca54e2

Browse files
committed
fix(ui): add the label-policy docs page to the sidebar
The docs-nav guard (#8385) requires a sidebar entry for every published .mdx page; the new label-policy page had none, failing UI tests.
1 parent ada4e8e commit bca54e2

2 files changed

Lines changed: 55 additions & 54 deletions

File tree

apps/loopover-miner-ui/src/routeTree.gen.ts

Lines changed: 54 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -9,47 +9,47 @@
99
// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
1010

1111
import { Route as rootRouteImport } from './routes/__root'
12-
import { Route as RunHistoryRouteImport } from './routes/run-history'
13-
import { Route as RankedCandidatesRouteImport } from './routes/ranked-candidates'
14-
import { Route as PortfolioRouteImport } from './routes/portfolio'
15-
import { Route as LedgersRouteImport } from './routes/ledgers'
16-
import { Route as EarningsRouteImport } from './routes/earnings'
17-
import { Route as AttemptsRouteImport } from './routes/attempts'
1812
import { Route as IndexRouteImport } from './routes/index'
13+
import { Route as AttemptsRouteImport } from './routes/attempts'
14+
import { Route as EarningsRouteImport } from './routes/earnings'
15+
import { Route as LedgersRouteImport } from './routes/ledgers'
16+
import { Route as PortfolioRouteImport } from './routes/portfolio'
17+
import { Route as RankedCandidatesRouteImport } from './routes/ranked-candidates'
18+
import { Route as RunHistoryRouteImport } from './routes/run-history'
1919

20-
const RunHistoryRoute = RunHistoryRouteImport.update({
21-
id: '/run-history',
22-
path: '/run-history',
20+
const IndexRoute = IndexRouteImport.update({
21+
id: '/',
22+
path: '/',
2323
getParentRoute: () => rootRouteImport,
2424
} as any)
25-
const RankedCandidatesRoute = RankedCandidatesRouteImport.update({
26-
id: '/ranked-candidates',
27-
path: '/ranked-candidates',
25+
const AttemptsRoute = AttemptsRouteImport.update({
26+
id: '/attempts',
27+
path: '/attempts',
2828
getParentRoute: () => rootRouteImport,
2929
} as any)
30-
const PortfolioRoute = PortfolioRouteImport.update({
31-
id: '/portfolio',
32-
path: '/portfolio',
30+
const EarningsRoute = EarningsRouteImport.update({
31+
id: '/earnings',
32+
path: '/earnings',
3333
getParentRoute: () => rootRouteImport,
3434
} as any)
3535
const LedgersRoute = LedgersRouteImport.update({
3636
id: '/ledgers',
3737
path: '/ledgers',
3838
getParentRoute: () => rootRouteImport,
3939
} as any)
40-
const EarningsRoute = EarningsRouteImport.update({
41-
id: '/earnings',
42-
path: '/earnings',
40+
const PortfolioRoute = PortfolioRouteImport.update({
41+
id: '/portfolio',
42+
path: '/portfolio',
4343
getParentRoute: () => rootRouteImport,
4444
} as any)
45-
const AttemptsRoute = AttemptsRouteImport.update({
46-
id: '/attempts',
47-
path: '/attempts',
45+
const RankedCandidatesRoute = RankedCandidatesRouteImport.update({
46+
id: '/ranked-candidates',
47+
path: '/ranked-candidates',
4848
getParentRoute: () => rootRouteImport,
4949
} as any)
50-
const IndexRoute = IndexRouteImport.update({
51-
id: '/',
52-
path: '/',
50+
const RunHistoryRoute = RunHistoryRouteImport.update({
51+
id: '/run-history',
52+
path: '/run-history',
5353
getParentRoute: () => rootRouteImport,
5454
} as any)
5555

@@ -123,25 +123,25 @@ export interface RootRouteChildren {
123123

124124
declare module '@tanstack/react-router' {
125125
interface FileRoutesByPath {
126-
'/run-history': {
127-
id: '/run-history'
128-
path: '/run-history'
129-
fullPath: '/run-history'
130-
preLoaderRoute: typeof RunHistoryRouteImport
126+
'/': {
127+
id: '/'
128+
path: '/'
129+
fullPath: '/'
130+
preLoaderRoute: typeof IndexRouteImport
131131
parentRoute: typeof rootRouteImport
132132
}
133-
'/ranked-candidates': {
134-
id: '/ranked-candidates'
135-
path: '/ranked-candidates'
136-
fullPath: '/ranked-candidates'
137-
preLoaderRoute: typeof RankedCandidatesRouteImport
133+
'/attempts': {
134+
id: '/attempts'
135+
path: '/attempts'
136+
fullPath: '/attempts'
137+
preLoaderRoute: typeof AttemptsRouteImport
138138
parentRoute: typeof rootRouteImport
139139
}
140-
'/portfolio': {
141-
id: '/portfolio'
142-
path: '/portfolio'
143-
fullPath: '/portfolio'
144-
preLoaderRoute: typeof PortfolioRouteImport
140+
'/earnings': {
141+
id: '/earnings'
142+
path: '/earnings'
143+
fullPath: '/earnings'
144+
preLoaderRoute: typeof EarningsRouteImport
145145
parentRoute: typeof rootRouteImport
146146
}
147147
'/ledgers': {
@@ -151,25 +151,25 @@ declare module '@tanstack/react-router' {
151151
preLoaderRoute: typeof LedgersRouteImport
152152
parentRoute: typeof rootRouteImport
153153
}
154-
'/earnings': {
155-
id: '/earnings'
156-
path: '/earnings'
157-
fullPath: '/earnings'
158-
preLoaderRoute: typeof EarningsRouteImport
154+
'/portfolio': {
155+
id: '/portfolio'
156+
path: '/portfolio'
157+
fullPath: '/portfolio'
158+
preLoaderRoute: typeof PortfolioRouteImport
159159
parentRoute: typeof rootRouteImport
160160
}
161-
'/attempts': {
162-
id: '/attempts'
163-
path: '/attempts'
164-
fullPath: '/attempts'
165-
preLoaderRoute: typeof AttemptsRouteImport
161+
'/ranked-candidates': {
162+
id: '/ranked-candidates'
163+
path: '/ranked-candidates'
164+
fullPath: '/ranked-candidates'
165+
preLoaderRoute: typeof RankedCandidatesRouteImport
166166
parentRoute: typeof rootRouteImport
167167
}
168-
'/': {
169-
id: '/'
170-
path: '/'
171-
fullPath: '/'
172-
preLoaderRoute: typeof IndexRouteImport
168+
'/run-history': {
169+
id: '/run-history'
170+
path: '/run-history'
171+
fullPath: '/run-history'
172+
preLoaderRoute: typeof RunHistoryRouteImport
173173
parentRoute: typeof rootRouteImport
174174
}
175175
}

apps/loopover-ui/src/components/site/docs-nav.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ export const docsNav: DocsGroup[] = [
104104
{ to: "/docs/loopover-commands", label: "@loopover commands" },
105105
{ to: "/docs/branch-analysis", label: "Branch analysis" },
106106
{ to: "/docs/scoreability", label: "Scoreability" },
107+
{ to: "/docs/label-policy", label: "Label policy" },
107108
{ to: "/docs/upstream-drift", label: "Upstream drift" },
108109
{ to: "/docs/backtest-calibration", label: "Backtest & calibration" },
109110
{ to: "/docs/verify-this-review", label: "Verify this review" },

0 commit comments

Comments
 (0)