Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,15 @@ Before implementing new features, check:

---

## Development Environment

This project runs in a **devcontainer** with the following services always available:

- **PostgreSQL** is available at `localhost:5432`. The `DATABASE_URL` environment variable is pre-set (e.g., `postgresql://transparency:devpassword@localhost:5432/transparency_dev`). Do not attempt to install or start PostgreSQL — it is already running.
- **Playwright Chromium** must be installed before running E2E tests: `npx playwright install chromium`

---

## When in Doubt

1. Search the codebase for similar patterns
Expand Down
4 changes: 3 additions & 1 deletion src/components/campaigns/PublicCampaignPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ export function PublicCampaignPage({
? `${window.location.origin}/org/${organizationSlug}/donate/${campaign.id}`
: `/org/${organizationSlug}/donate/${campaign.id}`;

const accentColor = primaryColor || '#16a34a';
// Default green-700 (#15803d) passes WCAG AA contrast (4.79:1) with white text;
// green-600 (#16a34a) only achieves 3.14:1 which fails the 4.5:1 threshold.
const accentColor = primaryColor || '#15803d';

return (
<div className="min-h-screen bg-gray-50">
Expand Down
4 changes: 2 additions & 2 deletions src/lib/email/templates/campaign-invite-email.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ const campaignCard = {
borderRadius: '8px',
padding: '16px 20px',
margin: '0 0 16px',
borderLeft: '4px solid #16a34a',
borderLeft: '4px solid #15803d',
};

const campaignTitle = {
Expand Down Expand Up @@ -191,7 +191,7 @@ const buttonContainer = {
};

const button = {
backgroundColor: '#16a34a',
backgroundColor: '#15803d',
borderRadius: '6px',
color: '#ffffff',
fontSize: '15px',
Expand Down
Loading