Skip to content

Migrate frontend from Polymer to React + Vite#826

Draft
Copilot wants to merge 3 commits intomasterfrom
copilot/migrate-frontend-to-modern-framework
Draft

Migrate frontend from Polymer to React + Vite#826
Copilot wants to merge 3 commits intomasterfrom
copilot/migrate-frontend-to-modern-framework

Conversation

Copy link
Contributor

Copilot AI commented Mar 19, 2026

Replaces the legacy Polymer-based UI with a modern React + Vite frontend. All schedule views, dialogs, popups, and the login page are reimplemented as React components.

Frontend build

  • Vite project in frontend/ builds to static/dist/assets/ with deterministic filenames (no content hashes)
  • Two entry points: index (main app) and login (sign-in page)
  • Built output committed to repo; deploy workflow also runs npm run build-frontend before deploying

Flask template integration

  • templates/index.html and templates/login.html stripped down to minimal loaders that reference the Vite bundles
  • Server-side data injected via window.APP_DATA before the module script loads:
<script>
  window.APP_DATA = {
    userSchedule: {{ schedule | safe }},
    days: {{ days | safe }},
    lunches: {{ lunches | tojson }},
    termStarts: {{ term_starts | safe }},
    latestCommits: {{ latest_commits | safe }},
    username: {{ username | tojson }},
    version: {{ version | tojson }},
    sharePhoto: {{ share_photo }},
    isAdmin: {{ admin | tojson }},
  };
</script>

Dependencies

  • firebase bumped 10.13.2 → 11.9.1 (resolves undici CVEs)
  • vite bumped 5.4.8 → 6.3.7 (resolves esbuild dev-server CVE)
  • static/dist/ and frontend/node_modules/ added to .prettierignore

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: codingses <149913839+codingses@users.noreply.github.com>
Copilot AI requested a review from codingses March 19, 2026 19:01
… add deploy step

Co-authored-by: codingses <149913839+codingses@users.noreply.github.com>
Copilot AI changed the title [WIP] Migrate frontend to a more modern framework Migrate frontend from Polymer to React + Vite Mar 20, 2026
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.

2 participants