Skip to content

Align Delivery Mode 'Savage' styling with theme - #20

Merged
jaden688 merged 2 commits into
mainfrom
codex/implement-production-ready-dailycast-platform-7b54ov
Feb 1, 2026
Merged

jaden688 merged 2 commits into
mainfrom
codex/implement-production-ready-dailycast-platform-7b54ov

Conversation

@jaden688

@jaden688 jaden688 commented Feb 1, 2026

Copy link
Copy Markdown
Owner

Motivation

  • Make the "Savage Mode" delivery card visually consistent with the app's dark theme by using an amber-focused highlight, gradient, subtle ring and badge treatment so the accent is clearer and higher-contrast.

Description

  • Updated src/components/delivery-mode-selector.tsx to introduce isSavage and apply an amber gradient/ring/shadow for the savage card highlight.
  • Adjusted the icon shell classes for savage and refined the Badge classes to use amber-focused border/background/text so the new-mode label reads against the dark theme.
  • No API or behavior changes; the selector still uses DELIVERY_MODES and the existing onChange callback.

Testing

  • Ran npm test and the suite completed successfully (all tests passed).
  • Ran npm run build which completed successfully but emitted non-blocking warnings from a third-party package's dynamic imports.
  • Executed an automated Playwright visual check which produced a screenshot artifact at artifacts/delivery-mode-theme.png showing the updated UI (initial Chromium attempt timed out; a subsequent run produced the artifact).

Codex Task

@vercel

vercel Bot commented Feb 1, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
daily-cast Error Error Feb 1, 2026 3:07pm

@sourcery-ai sourcery-ai 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.

Hi @jaden688! 👋

Your private repo does not have access to Sourcery.

Please upgrade to continue using Sourcery ✨

@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: b6ac4c4714

ℹ️ 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 on lines +35 to +36
router.delete('/:feedId', requireAuth, async (req: AuthRequest, res) => {
await prisma.feedConnection.delete({ where: { id: req.params.feedId } });

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Restrict feed deletions to the owning user

This delete handler removes a feed by ID without scoping the query to req.userId. Any authenticated user who can obtain or guess another feed UUID can delete someone else’s feed because prisma.feedConnection.delete only checks id. Consider using a deleteMany with id + userId or first verifying ownership before deletion so the API enforces per-user access control.

Useful? React with 👍 / 👎.

Comment on lines +46 to +47
router.delete('/:episodeId', requireAuth, async (req: AuthRequest, res) => {
await prisma.episode.delete({ where: { id: req.params.episodeId } });

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Restrict episode deletions to the owning user

This delete handler deletes episodes by ID without checking req.userId, so any authenticated user can delete another user’s episode if they learn the UUID. Because prisma.episode.delete only filters by id, it bypasses authorization. Add an ownership check (e.g., deleteMany with id + userId or a prior lookup) to enforce per-user access.

Useful? React with 👍 / 👎.

@jaden688
jaden688 merged commit dee9318 into main Feb 1, 2026
5 of 6 checks passed
@jaden688
jaden688 deleted the codex/implement-production-ready-dailycast-platform-7b54ov branch March 24, 2026 00:34

This branch was previously deployed

1 inactive deployment
Preview — 293c3831 Deployed Feb 1, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant