Skip to content

Commit

Permalink
Merge branch 'main' into pranav/number-from-transparency
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkMenacer authored Jan 13, 2025
2 parents a64357c + be8179c commit c8b979c
Show file tree
Hide file tree
Showing 17 changed files with 613 additions and 121 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/actions/init/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ runs:
cache: npm
cache-dependency-path: package-lock.json

- name: Install and set up firebase-tools
- name: Install and set up vercel & firebase-tools
shell: bash
run: |
npm -g install [email protected] && \
npm -g install [email protected] [email protected] && \
firebase setup:emulators:firestore && \
firebase setup:emulators:storage && \
firebase setup:emulators:ui
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/production-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand Down
29 changes: 12 additions & 17 deletions admin/src/collections/Campaigns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,45 +69,35 @@ export const campaignsCollection = buildAuditedCollection<Campaign>({
multiline: true,
},
link_website: {
title: 'Website Link',
name: 'Website Link',
dataType: 'string',
validation: { required: false },
description: 'The link to the website (optional)',
},
link_instagram: {
title: 'Instagram Link',
name: 'Instagram Link',
dataType: 'string',
validation: { required: false },
description: 'The link to the Instagram profile (optional)',
},
link_tiktok: {
title: 'TikTok Link',
name: 'TikTok Link',
dataType: 'string',
validation: { required: false },
description: 'The link to the TikTok profile (optional)',
},
link_facebook: {
title: 'Facebook Link',
name: 'Facebook Link',
dataType: 'string',
validation: { required: false },
description: 'The link to the Facebook profile (optional)',
},
link_x: {
title: 'X (formerly Twitter) Link',
name: 'X (formerly Twitter) Link',
dataType: 'string',
validation: { required: false },
description: 'The link to the X profile (optional)',
},
amount_collected_chf: {
dataType: 'number',
name: 'Collected amount in CHF',
readOnly: true,
},
contributions: {
dataType: 'number',
name: 'Contributions',
readOnly: true,
},
goal: {
dataType: 'number',
name: 'Optional Fundraising Goal',
Expand All @@ -121,6 +111,12 @@ export const campaignsCollection = buildAuditedCollection<Campaign>({
EUR: 'EUR',
},
},
additional_amount_chf: {
dataType: 'number',
name: 'Additional Amount CHF',
description:
'Amount that is added to the amount raised (e.g. estimated amount that was donated because of the campaign, but not through the campaign page)',
},
end_date: {
// @ts-ignore
dataType: 'date',
Expand Down Expand Up @@ -150,9 +146,8 @@ export const campaignsCollection = buildAuditedCollection<Campaign>({
dataType: 'string',
name: 'Url Slug',
validation: {
required: true,
matches: /^[a-z0-9]+(?:-[a-z0-9]+)*$/,
matchMessage: 'Slug must contain only lowercase letters, numbers, and hyphens',
matchesMessage: 'Slug must contain only lowercase letters, numbers, and hyphens',
},
description:
'URL-friendly version of the title. Must be unique and contain only lowercase letters, numbers, and hyphens.',
Expand Down
Loading

0 comments on commit c8b979c

Please sign in to comment.