Skip to content

closing GA sales#87

Open
didierkrux wants to merge 1 commit into
mainfrom
closing-ga-sales
Open

closing GA sales#87
didierkrux wants to merge 1 commit into
mainfrom
closing-ga-sales

Conversation

@didierkrux

@didierkrux didierkrux commented Jul 16, 2026

Copy link
Copy Markdown
Member

FYI @Scott1UP for when we want to close the GA sales, just merge this PR.

GA sale state: how it works and how to change it

What this change does

One line changed in devcon/src/config/waves.ts (line 84):

export const GA_SALE_STATE: GaSaleState = 'closed'   // was 'open'

Merging this closes the General Admission sale on devcon.org: the GA row on /tickets shows "Reopens August" with no countdown, the "Get tickets" CTA disappears (the price stays visible), and the hero, strip, overview tags, comparison table, and the store page all flip automatically. Nothing else needs editing for a state change.

The system in one paragraph

src/config/waves.ts is the single source of truth. CURRENT_WAVE_ID points at the wave that is "the active sale" (currently wave-ga). Waves before it in the list show "Sale ended", waves after it show as upcoming. The current wave's status is driven entirely by the manual GA_SALE_STATE switch. There is no automatic date or availability logic behind it: changing the state means editing this constant and deploying.

The three states

GA_SALE_STATE What visitors see When to use
'open' Price + "Get tickets" CTA, sale banner live Selling normally
'coming-soon' Badge "Coming soon" + a live countdown to GA_COMING_SOON_OPENS_AT (e.g. "available in 5d 20h"). CTA hidden, price visible Reopening at a known date/time
'closed' Static label "Reopens August". No timer. CTA hidden, price visible Reopening later, no exact time announced

Customizing the labels and countdown

All in src/config/waves.ts, right below the switch:

export const GA_COMING_SOON_OPENS_AT: Date | null = GLOBAL_LAUNCH_TIME
export const GA_COMING_SOON_LABEL = 'Coming soon'
export const GA_CLOSED_LABEL = 'Reopens August'
  • "Reopens August" text: edit GA_CLOSED_LABEL. Shown whenever the state is 'closed'.
  • "Coming soon" text: edit GA_COMING_SOON_LABEL. Note this is only a fallback: in 'coming-soon' the surfaces normally show a countdown instead, and this label appears only if GA_COMING_SOON_OPENS_AT is null or already in the past.
  • The countdown target: set GA_COMING_SOON_OPENS_AT to the reopen moment (a UTC Date). It currently points at the July 14 launch, so if you flip to 'coming-soon' for the August round, you must set this to the new date, otherwise there is no timer and only the fallback label shows.
  • Prices, wave names, and row details live in the TICKET_WAVES array in the same file.

Important: this only closes the website

The Pretix shop at tickets.devcon.org is independent. Anyone with a direct link can still buy GA until the Pretix side is closed too (deactivate the GA item or set its quota to 0 in the Pretix admin). For a real sale pause, do both; for reopening, reverse both.

@netlify

netlify Bot commented Jul 16, 2026

Copy link
Copy Markdown

Deploy Preview for devcon-monorepo ready!

Name Link
🔨 Latest commit f002a44
🔍 Latest deploy log https://app.netlify.com/projects/devcon-monorepo/deploys/6a591bb7c138640008325186
😎 Deploy Preview https://deploy-preview-87--devcon-monorepo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Jul 16, 2026

Copy link
Copy Markdown

Deploy Preview for devcon-app canceled.

Name Link
🔨 Latest commit f002a44
🔍 Latest deploy log https://app.netlify.com/projects/devcon-app/deploys/6a591bb7b1a6f20008996a1d

@netlify

netlify Bot commented Jul 16, 2026

Copy link
Copy Markdown

Deploy Preview for devconnect-monorepo canceled.

Name Link
🔨 Latest commit f002a44
🔍 Latest deploy log https://app.netlify.com/projects/devconnect-monorepo/deploys/6a591bb77b66dc0008206490

@netlify

netlify Bot commented Jul 16, 2026

Copy link
Copy Markdown

Deploy Preview for devconnect-pwa canceled.

Name Link
🔨 Latest commit f002a44
🔍 Latest deploy log https://app.netlify.com/projects/devconnect-pwa/deploys/6a591bb7110d2b0008ee18ab

@netlify

netlify Bot commented Jul 16, 2026

Copy link
Copy Markdown

Deploy Preview for devcon-social canceled.

Name Link
🔨 Latest commit f002a44
🔍 Latest deploy log https://app.netlify.com/projects/devcon-social/deploys/6a591bb70e8ba400087e22a3

@netlify

netlify Bot commented Jul 16, 2026

Copy link
Copy Markdown

Deploy Preview for devcon-event-app canceled.

Name Link
🔨 Latest commit f002a44
🔍 Latest deploy log https://app.netlify.com/projects/devcon-event-app/deploys/6a591bb77b66dc0008206498

@netlify

netlify Bot commented Jul 16, 2026

Copy link
Copy Markdown

Deploy Preview for devcon-archive canceled.

Name Link
🔨 Latest commit f002a44
🔍 Latest deploy log https://app.netlify.com/projects/devcon-archive/deploys/6a591bb7c862e60008943ff1

@Scott1UP

Copy link
Copy Markdown
Collaborator

This is excellent, thanks for setting this up @didierkrux ✌🏼 - appreciate the breakdown also!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants