Skip to content

Fix alert colors for pending policy approval#695

Merged
Marfuen merged 1 commit intomainfrom
codex/fix-accept/deny-alert-appearance-in-dark-mode
May 22, 2025
Merged

Fix alert colors for pending policy approval#695
Marfuen merged 1 commit intomainfrom
codex/fix-accept/deny-alert-appearance-in-dark-mode

Conversation

@claudfuen
Copy link
Contributor

Summary

  • fix PolicyOverview pending approval alert styling

Testing

  • bun test (fails: The following filters did not match any test files)
  • bun run test (fails: turbo: command not found)
  • bun run format (fails: biome: command not found)

Copilot AI review requested due to automatic review settings May 22, 2025 23:49
@vercel
Copy link

vercel bot commented May 22, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
app ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 22, 2025 11:51pm
comp-framework-editor ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 22, 2025 11:51pm
comp-trust ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 22, 2025 11:51pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
comp-portal ⬜️ Skipped (Inspect) May 22, 2025 11:51pm

@vercel vercel bot temporarily deployed to Preview – comp-portal May 22, 2025 23:49 Inactive
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the styling of the pending approval alert in the PolicyOverview component by replacing manual red styling with the new "destructive" variant and corresponding CSS classes.

  • Replaces manual "border-red-500 bg-red-50" styling with a variant property.
  • Introduces tailored class names for light and dark modes.
Comments suppressed due to low confidence (1)

apps/app/src/app/[locale]/(app)/(dashboard)/[orgId]/policies/[policyId]/components/PolicyOverview.tsx:109

  • Confirm that the new 'variant="destructive"' prop provides complete and consistent alert styling and that any additional custom classes are necessary rather than duplicating or overriding styles defined by the variant.
<Alert variant="destructive" className="rounded-sm bg-destructive/10 dark:bg-destructive/20">

@Marfuen Marfuen merged commit b729a9d into main May 22, 2025
10 checks passed
@Marfuen Marfuen deleted the codex/fix-accept/deny-alert-appearance-in-dark-mode branch May 22, 2025 23:53
@claudfuen
Copy link
Contributor Author

🎉 This PR is included in version 1.30.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants