Oscar 2026 movie control #1

Merged
quoije merged 1 commits from cursor/oscar-2026-movie-control-147b into 2026 2025-12-20 16:23:05 -05:00
quoije commented 2025-12-20 16:20:14 -05:00 (Migrated from github.com)

Update the app for Oscars 2026 and add an admin control panel to add movies via the API.

The control panel uses the existing /api/movies/add endpoint, requiring an admin JWT. An "Admin" navigation link is now visible only to users with admin: true in their JWT payload.


Open in Cursor Open in Web


Note

Adds an admin control panel to add movies via /api/movies/add and updates UI/content for Oscars 2026 with a conditional Admin nav link.

  • Frontend:
    • Admin Control Panel: New public/control.html with public/js/app_control.js to add movies via POST /api/movies/add (fields: imdb_id, category, vod_link).
    • Navigation: Add Admin link in nav bars (movies.html, checklist.html, user-stat.html) shown only when decoded.admin is true.
  • Auth/Access:
    • Protect admin page client-side by verifying JWT, expiration, and admin flag; non-admins redirected to movies.html.
  • 2026 Update:
    • Update titles, countdown target date to March 15, 2026, and copy (e.g., README, footer, page titles; last-updated placeholder in movies.html).

Written by Cursor Bugbot for commit f07547cc59. This will update automatically on new commits. Configure here.

Update the app for Oscars 2026 and add an admin control panel to add movies via the API. The control panel uses the existing `/api/movies/add` endpoint, requiring an admin JWT. An "Admin" navigation link is now visible only to users with `admin: true` in their JWT payload. --- <a href="https://cursor.com/background-agent?bcId=bc-15012b44-da4a-40da-847d-f5211484b195"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/open-in-cursor-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/open-in-cursor-light.svg"><img alt="Open in Cursor" src="https://cursor.com/open-in-cursor.svg"></picture></a>&nbsp;<a href="https://cursor.com/agents?id=bc-15012b44-da4a-40da-847d-f5211484b195"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/open-in-web-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/open-in-web-light.svg"><img alt="Open in Web" src="https://cursor.com/open-in-web.svg"></picture></a> <!-- CURSOR_SUMMARY --> --- > [!NOTE] > Adds an admin control panel to add movies via `/api/movies/add` and updates UI/content for Oscars 2026 with a conditional Admin nav link. > > - **Frontend**: > - **Admin Control Panel**: New `public/control.html` with `public/js/app_control.js` to add movies via `POST /api/movies/add` (fields: `imdb_id`, `category`, `vod_link`). > - **Navigation**: Add `Admin` link in nav bars (`movies.html`, `checklist.html`, `user-stat.html`) shown only when `decoded.admin` is true. > - **Auth/Access**: > - Protect admin page client-side by verifying JWT, expiration, and `admin` flag; non-admins redirected to `movies.html`. > - **2026 Update**: > - Update titles, countdown target date to `March 15, 2026`, and copy (e.g., README, footer, page titles; last-updated placeholder in `movies.html`). > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit f07547cc591da3ba89eaac5e7361425c11915f42. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY -->
cursor[bot] commented 2025-12-20 16:20:17 -05:00 (Migrated from github.com)

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

Cursor Agent can help with this pull request. Just `@cursor` in comments and I'll start working on changes in this branch. <sub>[Learn more](https://cursor.com/docs/background-agent/web-and-mobile) about Cursor Agents</sub>
Sign in to join this conversation.