Repository navigation
feat(web): refine page layouts and typography controls - #160
Merged
Merged
Conversation
Improve drive calendar and charging history density, streamline appearance settings, expand typography presets, and unify dashboard layout creation. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
A stale removed prop breaks TypeScript compilation, and pre-paint font validation accepts inherited keys.
Review effort: Lite
Findings: 1
Open (1)
What changed in this PR
Refines responsive dashboard, charging, and Drive Calendar layouts, separates layout creation from widget selection, and expands appearance/typography controls with font validation.
Changes:
- Adds dashboard templates and responsive layout improvements.
- Adds searchable font catalogs, presets, previews, and validation.
- Simplifies appearance controls and updates related documentation.
Review findings:
- Critical (3 votes):
WidgetPickerremoval leaves a staleonApplyPresetprop indriving.test.tsx, breaking TypeScript compilation. - Moderate (1 vote): Pre-paint font validation accepts inherited object keys such as
constructor.
| File | Summary |
|---|---|
web/src/i18n/en/usage-manifest.json |
Updates translation usage keys. |
web/src/i18n/en/shell.json |
Adds theme labels. |
web/src/i18n/en/locale-detail-theme.json |
Adds appearance translations. |
web/src/i18n/en/locale-detail-settings.json |
Adds typography translations. |
web/src/i18n/en/locale-dashboard.json |
Adds layout translations. |
web/src/i18n/en.json |
Updates the English catalog. |
web/src/features/settings/pages/SettingsPage.tsx |
Uses shared font labels. |
web/src/features/settings/components/TypographySpecimen.tsx |
Adds a live typography specimen. |
web/src/features/settings/components/TypographySettings.tsx |
Adds font catalogs and controls. |
web/src/features/settings/components/TypographySettings.test.tsx |
Tests typography interactions. |
web/src/features/settings/components/fontPreview.css |
Styles font previews. |
web/src/features/settings/components/FontFamilyPicker.tsx |
Adds a searchable font picker. |
web/src/features/settings/components/fontChoices.ts |
Defines font choices. |
web/src/features/settings/components/AppearanceSettings.tsx |
Collapses advanced appearance options. |
web/src/features/settings/components/AppearanceSettings.test.tsx |
Tests accordion behavior. |
web/src/features/dashboard/pages/DashboardPage.tsx |
Separates layout and widget actions. |
web/src/features/dashboard/hooks/useDashboardLayout.ts |
Adds presets and ID generation. |
web/src/features/dashboard/hooks/useDashboardLayout.test.ts |
Tests preset layouts. |
web/src/features/dashboard/components/WidgetPicker.tsx |
Removes template controls. |
web/src/features/dashboard/components/WidgetPicker.test.tsx |
Updates widget-picker tests. |
web/src/features/dashboard/components/TemplateGallery.tsx |
Adds the layout creation gallery. |
web/src/features/dashboard/components/__tests__/TemplateGallery.test.tsx |
Tests gallery behavior. |
web/src/features/charging/pages/TeslaChargingHistoryPage.tsx |
Reflows charging panels. |
web/src/features/charging/pages/__tests__/TeslaChargingHistoryPage.test.tsx |
Tests responsive placement. |
web/src/features/analytics/pages/DriveCalendarPage.tsx |
Adds compact heatmap layouts. |
web/src/features/analytics/pages/DriveCalendarPage.test.tsx |
Tests calendar layouts. |
web/src/features/analytics/components/drive-calendar/DriveCalendarHeatmap.tsx |
Supports custom layout classes. |
web/src/components/ui/ThemePicker.tsx |
Adds essential/full mode browsing. |
web/src/components/ui/ThemePicker.test.tsx |
Tests mode filtering. |
web/src/components/ui/FontProvider.tsx |
Expands font catalogs and validation. |
web/src/components/ui/FontProvider.test.tsx |
Tests font presets. |
web/index.html |
Adds pre-paint font mappings. |
web/e2e/typography-studio.smoke.spec.ts |
Adds typography E2E coverage. |
web/e2e/mockApi.ts |
Adds charging fixtures. |
web/e2e/drive-calendar-layout.smoke.spec.ts |
Adds calendar layout coverage. |
web/e2e/dashboard-layouts.smoke.spec.ts |
Updates dashboard E2E coverage. |
web/e2e/charging-history-layout.smoke.spec.ts |
Adds charging layout coverage. |
web/e2e/appearance-consolidation.smoke.spec.ts |
Adds appearance E2E coverage. |
internal/api/settings/handler.go |
Validates expanded font IDs. |
internal/api/settings/font_validation_test.go |
Tests accepted font IDs. |
docs/features/dashboard.md |
Documents the new layout flow. |
docs/features/catalogue-settings.md |
Documents typography settings. |
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
97
to
98
| onAddWidgets: (widgetIds: string[]) => void; | ||
| onApplyPreset: (presetId: string) => void; | ||
| activeWidgetIds: string[]; |
Keep push, scheduled, manual, and stateful workflow runs intact while cancelling obsolete PR security, Helm, and Copilot setup checks. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Keep pull-request validation and mainline push verification while avoiding two checks for the same feature-branch commit. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Trigger a new pull-request head while the previous CI jobs are running, without changing source or test content. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
Type of Change
How to test
docker compose build teslasync-api web --quietcd web && npm run buildcd web && npx tsc --noEmitgo test -race ./internal/api/settings; changed-file ESLint, locale-generation check and engineering guideline audit.Checklist