Skip to content

Commit 2e7a7a8

Browse files
atulmguptaCopilot
andcommitted
fix(ci): refresh day-log route registry and lint
Regenerate routeRegistry and Go templates for /day-log. Flatten signal-edge append (gosimple S1011). Exempt Drawer overlay from Modal-only eslint overlay rule. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 3880c3f commit 2e7a7a8

4 files changed

Lines changed: 7 additions & 6 deletions

File tree

internal/api/daylog/events.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -304,9 +304,7 @@ func BuildTimeline(in TimelineInput) TimelineOutput {
304304
}
305305

306306
for _, edge := range signalEdges(in.Signals) {
307-
for _, e := range signalEdgeEvents(vid, edge) {
308-
events = append(events, e)
309-
}
307+
events = append(events, signalEdgeEvents(vid, edge)...)
310308
}
311309

312310
for _, g := range gearEdges(in.Gears) {

internal/api/webvitals/routetemplates_gen.go

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/src/components/ui/Drawer.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,10 @@ export function Drawer({
9393

9494
if (!open) return null
9595
if (typeof document === 'undefined') return null
96-
// z-[60] matches <Modal>: above StatusBar (z-[55]) and BottomTabBar (z-50)
97-
// so drive/charge preview footers are never covered by chrome.
96+
// Drawer is a slide-in panel primitive, not a centered dialog.
97+
// Phase-45 / Prompt 04: NOT migrated to <Modal>.
9898
return createPortal(
99+
// eslint-disable-next-line no-restricted-syntax -- overlay primitive; z-[60] matches Modal above StatusBar/tab bar
99100
<div
100101
ref={drawerRef}
101102
className="fixed inset-0 z-[60]"

web/src/lib/routeRegistry.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ export const ROUTE_REGISTRY: readonly RouteEntry[] = [
9494
{ path: '/dashcam', name: 'DashcamIntelligence', label: 'Dashcam Intelligence', i18nKey: 'routes.dashcamIntelligence' },
9595
{ path: '/data-export', name: 'DataExport', label: 'Data Export', i18nKey: 'routes.dataExport' },
9696
{ path: '/data-repair', name: 'DataRepair', label: 'Data Repair', i18nKey: 'routes.dataRepair' },
97+
{ path: '/day-log', name: 'DayLog', label: 'Day Log', i18nKey: 'routes.dayLog' },
9798
{ path: '/db-health', name: 'DBHealthDashboard', label: 'DB Health Dashboard', i18nKey: 'routes.dBHealthDashboard' },
9899
{ path: '/departure-forecast', name: 'DepartureForecast', label: 'Departure Forecast', i18nKey: 'routes.departureForecast' },
99100
{ path: '/destination-transitions', name: 'DestinationTransitions', label: 'Destination Transitions', i18nKey: 'routes.destinationTransitions' },

0 commit comments

Comments
 (0)