Skip to content

feat: adopt published Magnolia packages across Lovat frontends - #131

Open
jackshim415 wants to merge 6 commits into
mainfrom
jackshim415/lvt-364-magnolia-consumer-packages
Open

jackshim415 wants to merge 6 commits into
mainfrom
jackshim415/lvt-364-magnolia-consumer-packages

Conversation

@jackshim415

@jackshim415 jackshim415 commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

What changed

Adopt the published Magnolia rewrite so Lovat's four frontends share maintained theme and control foundations. Website replaces the legacy tarball/font patch while preserving forms and training callbacks. Collection incrementally shares tokens, text and fields through existing entry points, retaining composite buttons, FRC art and scouting widgets. Learn gains correct light/dark palettes and reachable mobile search; Dashboard uses shared Material themes with compatible alliance getters.

Pins: Svelte/native/tokens 0.2.0, Starlight 0.1.0, Flutter adapter at immutable fb6a12d. The additional controls in Magnolia PR #3 are a pending minor release and are not imported here. Migration evidence and rollback records the scope and remaining device gates. The requested v1.0 milestone remains gated on complete library and consumer/device validation.

Areas affected

  • Server
  • Dashboard
  • Collection
  • Website
  • Learn
  • Shared documentation, CI, or deployment

Contracts and data

  • No API, report-schema, authentication, deep-link, season-metric, or database contract changed
  • Every affected producer and consumer was updated together
  • Tenant and source-team visibility was reviewed (no query/data-path changes)
  • No credentials, production data, or private scouting notes are included

Verification

  • Website (Node 20.19.6): npm ci; npm run check; npm run lint; npm run build; npm test (52); npm run test:changelog; npm run test:training; TEST_BASE_URL=http://127.0.0.1:4198 npm run test:e2e (22 desktop/mobile checks against synthetic local fixtures, outbound blocked). Same 13 pre-existing Svelte warnings remain; no check errors.
  • Collection (Node 24.6.0): npm ci; npm run ts:check; npm run lint; npm run format:check; npm test (115 legacy + 31 Jest tests, coverage thresholds pass). CI=1 EXPO_NO_TELEMETRY=1 npx expo export --platform ios and --platform android both pass. Real ESM controls are tested, not mocked.
  • Learn: npm ci; npm run build (16 pages/Pagefind); local Playwright/axe checks at 1280px/393px in both themes pass, including search results and Escape dismissal. Existing Astro deprecation/sitemap warnings remain.
  • Dashboard (Flutter 3.41.0): flutter pub get; flutter analyze; flutter test (61); flutter build web; dart format --output=none --set-exit-if-changed . all pass. Existing service-worker/WASM-readiness warnings remain; WASM is not claimed.
  • ./scripts/check-structure.sh and git diff --check pass. Baseline Website/Collection checks passed before migration. Original local Collection app.json/eas.json edits remain outside this isolated worktree/PR.

Signed native builds, VoiceOver/TalkBack and representative physical-device scouting/picklist workflows remain review/acceptance gates; bundling and widget tests do not establish that sign-off.

Deployment

Website Docker no longer copies an obsolete postinstall patch; npm ci installs the pinned public package. No Railway/Netlify settings, EAS identifiers/signing/version configuration, environment variables, database migrations or release jobs change. No manual deployment or PR merge performed; existing PR-preview automation is unchanged.

Refs: LVT-364, LVT-365, LVT-366, LVT-368.

Replace the legacy tarball with the pinned package and preserve form submission, training callbacks, application resets and explicit font ownership. Remove the obsolete font patch and its Docker install step.

Refs: LVT-362, LVT-368
Pin the released native and token packages, add the provider, and keep the existing text and multiline-field entry points. Preserve composite buttons, FRC icons, offline startup and app-owned widgets.

Refs: LVT-364
Replace duplicated palettes with the published Starlight adapter while preserving bundled fonts and layout. Keep native search reachable on mobile and the existing logo readable in light mode.

Refs: LVT-365
Pin the immutable Flutter adapter source and preserve alliance getter contracts. Assign distinct light and dark themes and keep helper text readable in light mode.

Refs: LVT-366
Refs: LVT-364, LVT-365, LVT-366, LVT-368
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-13T15:52:57.311683Z 6331f3d PR opened
🔒 Security Review ✅ Completed 2026-11-13T15:53:12.628698Z 6331f3d PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@railway-app

railway-app Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

🚅 Deployed to the lovat-pr-131 environment in lovat

Service Status Web Updated
website ✅ Success (View Logs) Web Nov 23, 2026 at 12:53 pm UTC
dashboard ✅ Success (View Logs) Web Nov 23, 2026 at 12:53 pm UTC
learn ✅ Success (View Logs) Web Nov 23, 2026 at 12:52 pm UTC
worker ⏭️ Skipped (View Logs) Nov 13, 2026 at 11:29 pm UTC
api ✅ Success (View Logs) Web Nov 13, 2026 at 3:51 pm UTC
2 services not affected by this PR
  • support
  • worker

@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Lovat AI review

Status: completed · Model: z-ai/glm-5.3-flash · Findings: 1

Reviewed commit: c3c40bc47de8cc1b816709911bba9c4043ed248b

Critical: 0 · High: 1 · Medium: 0 · Low: 0

Overall assessment

This migration mostly swaps imports to published Magnolia packages and preserves behavior with dedicated tests, and the verification notes are thorough. The one concrete gap is an inconsistency in the Website form migration: submit buttons were explicitly re-typed as type="submit" on three forms, but the get-updates form's submit button was not updated, which breaks submission under the new Svelte 5 Button default.

Findings

High (1)

  • apps/website/src/routes/(with-nav)/get-updates/+page.svelte:3 — get-updates submit button missing type="submit" after Button migration (BUG · confidence 0.75)
    The PR added type="submit" to the Button on the delete-my-account, contact, and pit forms because the rewritten @highlanderrobotics/magnolia-svelte Button no longer submits the enclosing form by default. The get-updates page was migrated to the new package import but its submit Button did not receive type="submit", so its form (which uses enhance/POST) will no longer submit when the button is pressed — the update-signup flow silently stops working.

    Suggestion: Add type="submit" to the Button in apps/website/src/routes/(with-nav)/get-updates/+page.svelte, matching the other migrated forms.

Review details

  • Review batches: 1
  • Diff characters reviewed: 49,910
  • Tokens: 19,573 prompt + 1,436 completion
  • Estimated inference cost: $0.0026
  • Files excluded by configuration: 5

Limitations

  • The reviewer examined only changed lines and their diff context, not the whole repository.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6331f3d357

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread apps/website/src/lib/styles/global.css Resolved
Add Website-owned aliases and browser coverage for resolved legacy colors under the published Magnolia theme.

Refs: LVT-362, LVT-368

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lovat AI review: 1 new finding(s) at c3c40bc47de8cc1b816709911bba9c4043ed248b.

The persistent Lovat AI review comment contains the latest complete result.

  • apps/website/src/routes/(with-nav)/get-updates/+page.svelte:3 — get-updates submit button missing type="submit" after Button migration (BUG · confidence 0.75)

<script lang="ts">
import { enhance } from '$app/forms';
import { Button, TextField } from 'magnolia-ui-svelte';
import { Button, TextField } from '@highlanderrobotics/magnolia-svelte';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

HIGH · BUG — get-updates submit button missing type="submit" after Button migration

The PR added type="submit" to the Button on the delete-my-account, contact, and pit forms because the rewritten @highlanderrobotics/magnolia-svelte Button no longer submits the enclosing form by default. The get-updates page was migrated to the new package import but its submit Button did not receive type="submit", so its form (which uses enhance/POST) will no longer submit when the button is pressed — the update-signup flow silently stops working.

Suggested fix: Add type="submit" to the Button in apps/website/src/routes/(with-nav)/get-updates/+page.svelte, matching the other migrated forms.

Lovat AI review · confidence 0.75 · z-ai/glm-5.3-flash

This branch was successfully deployed

1 active deployment
lovat / lovat-pr-131 — c3c40bc4 Deployed Nov 13, 2026 by railway-app[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant