You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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):
exportconstGA_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:
"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.
This is excellent, thanks for setting this up @didierkrux ✌🏼 - appreciate the breakdown also!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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):Merging this closes the General Admission sale on devcon.org: the GA row on
/ticketsshows "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.tsis the single source of truth.CURRENT_WAVE_IDpoints at the wave that is "the active sale" (currentlywave-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 manualGA_SALE_STATEswitch. 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'open''coming-soon'GA_COMING_SOON_OPENS_AT(e.g. "available in 5d 20h"). CTA hidden, price visible'closed'Customizing the labels and countdown
All in
src/config/waves.ts, right below the switch:GA_CLOSED_LABEL. Shown whenever the state is'closed'.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 ifGA_COMING_SOON_OPENS_ATis null or already in the past.GA_COMING_SOON_OPENS_ATto the reopen moment (a UTCDate). 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.TICKET_WAVESarray 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.