Skip to content

Commit

Permalink
Finish integration
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeGinnivan committed Nov 15, 2024
1 parent 68eea29 commit 8bef4ce
Show file tree
Hide file tree
Showing 15 changed files with 804 additions and 172 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ jobs:
GH_CONTENT_TOKEN: ${{ secrets.GH_CONTENT_TOKEN }}
GOOGLE_FORMS_API_KEY: ${{ secrets.GOOGLE_FORMS_API_KEY }}
GOOGLE_FORMS_FILE_ID: ${{ secrets.GOOGLE_FORMS_FILE_ID }}
EVENTS_AIR_CLIENT_ID: ${{ secrets.EVENTS_AIR_CLIENT_ID }}
EVENTS_AIR_CLIENT_SECRET: ${{ secrets.EVENTS_AIR_CLIENT_SECRET }}
EVENTS_AIR_TENANT_ID: ${{ secrets.EVENTS_AIR_TENANT_ID }}
EVENTS_AIR_EVENT_ID: ${{ secrets.EVENTS_AIR_EVENT_ID }}

steps:
- name: Checkout
Expand Down
21 changes: 21 additions & 0 deletions infra/app/ddd.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ param googleFormsApiKey string
@secure()
param googleFormsFileId string
param exists bool
param eventsAirClientId string
@secure()
param eventsAirClientSecret string
param eventsAirTenantId string
param eventsAirEventId string

resource identity 'Microsoft.ManagedIdentity/userAssignedIdentities@2023-01-31' = {
name: identityName
Expand Down Expand Up @@ -104,6 +109,22 @@ resource app 'Microsoft.App/containerApps@2024-03-01' = {
name: 'google-forms-file-id'
value: googleFormsFileId
}
{
name: 'events-air-client-id'
value: eventsAirClientId
}
{
name: 'events-air-client-secret'
value: eventsAirClientSecret
}
{
name: 'events-air-tenant-id'
value: eventsAirTenantId
}
{
name: 'events-air-event-id'
value: eventsAirEventId
}
]
}
template: {
Expand Down
10 changes: 10 additions & 0 deletions infra/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ param domainName string
@minLength(1)
param certificateId string

param eventsAirClientId string
@secure()
param eventsAirClientSecret string
param eventsAirTenantId string
param eventsAirEventId string

// Tags that should be applied to all resources.
//
// Note that 'azd-service-name' tags should be applied separately to service host resources.
Expand Down Expand Up @@ -125,6 +131,10 @@ module ddd './app/ddd.bicep' = {
googleFormsFileId: googleFormsFileId
domainName: domainName
certificateId: certificateId
eventsAirClientId: eventsAirClientId
eventsAirClientSecret: eventsAirClientSecret
eventsAirTenantId: eventsAirTenantId
eventsAirEventId: eventsAirEventId
}
scope: rg
}
Expand Down
12 changes: 12 additions & 0 deletions infra/main.parameters.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,18 @@
},
"certificateId": {
"value": "/subscriptions/dd079971-2023-4b56-be3a-85a346d51344/resourceGroups/dddper-rg-prd/providers/Microsoft.App/managedEnvironments/dddper-cae-ivoki745ew4qo/certificates/cloudflare"
},
"eventsAirClientId": {
"value": "${EVENTS_AIR_CLIENT_ID}"
},
"eventsAirClientSecret": {
"value": "${EVENTS_AIR_CLIENT_SECRET}"
},
"eventsAirTenantId": {
"value": "${EVENTS_AIR_TENANT_ID}"
},
"eventsAirEventId": {
"value": "${EVENTS_AIR_EVENT_ID}"
}
}
}
17 changes: 17 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions website/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@ USE_GITHUB_CONTENT=false
GITHUB_REPO=ddd-2024
GITHUB_ORGANIZATION=dddwa
SESSION_SECRET=shhh
EVENTS_AIR_CLIENT_ID=
EVENTS_AIR_CLIENT_SECRET=
EVENTS_AIR_TENANT_ID=
EVENTS_AIR_EVENT_ID=
54 changes: 54 additions & 0 deletions website/app/config/years/2024.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,24 @@ export const conference2024: ConferenceYear = {
feedbackOpenUntilDateTime: DateTime.fromISO('2024-11-21T23:59:59', {
zone: 'Australia/Perth',
}),

ticketInfo: {
type: 'tito',
accountId: 'dddperth',
eventId: '2024',

generalTicketSlugs: [
'general-attendee',
'dqvd7i58iig',
'general-attendee-company',
'general-attendee-free',
'lyfer',
'volunteer',
'speaker',
'sponsor',
],
afterPartyTicketSlugs: ['after-party', 'el5pexoj6m8'],
afterPartyUpgradeActivityId: '1071952',
},

sponsors: {
Expand Down Expand Up @@ -237,4 +251,44 @@ Computing, software and big data will be critical in the success of this mega sc
},
],
},

foodInfo: {
lunch: [
{
meal: 'Vegetable Korma, potato, cauliflower, carrots, peas, steamed basmati rice (V DF, contains coconut milk)',
shortCode: 'VK',
foodZone: '1',
},
{
meal: 'Slow cooked beef cheek in red wine sauce with creamy mashed potato (GF)',
shortCode: 'BR',
foodZone: '1',
},
{
meal: 'Roast pork belly with pineapple jus, cheesy roast potatoes and mustard spring beans (GF)',
shortCode: 'PB',
foodZone: '2',
},
{
meal: 'Classic Caesar salad, cos lettuce, parmesan cheese, egg, bacon, Caesar dressing',
shortCode: 'CS',
foodZone: '3',
},
{
meal: 'Cashew butter chicken with basmati rice, yoghurt, and coriander (GF)',
shortCode: 'BC',
foodZone: '3',
},
{
meal: 'Beef cheese and bacon burger served with chips',
shortCode: 'BU',
foodZone: '4',
},
{
meal: 'Caribbean chicken salad with honey lime dressing (DF)',
shortCode: 'CC',
foodZone: '4',
},
],
},
}
1 change: 0 additions & 1 deletion website/app/lib/conference-state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ export function getCurrentConferenceState(
(year): year is [Year, ConferenceYear] => !('cancelledMessage' in year[1]),
)
const [latestConference, previousConference] = conferenceList

.sort(([, a], [, b]) => {
const dateA = a.conferenceDate?.valueOf() ?? Infinity
const dateB = b.conferenceDate?.valueOf() ?? Infinity
Expand Down
12 changes: 12 additions & 0 deletions website/app/lib/config-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ export interface TitoTicketInfo {
type: 'tito'
accountId: string
eventId: string

generalTicketSlugs?: string[]
afterPartyTicketSlugs?: string[]
afterPartyUpgradeActivityId?: string
}

export type TicketInfo = TitoTicketInfo
Expand Down Expand Up @@ -69,6 +73,14 @@ export interface ConferenceYear {
sessions: SessionizeConferenceSessions | SessionData | undefined

sponsors: YearSponsors

foodInfo?: {
lunch: Array<{
meal: string
foodZone: string
shortCode: string
}>
}
}

export interface YearSponsors {
Expand Down
2 changes: 2 additions & 0 deletions website/app/lib/config.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const {
EVENTS_AIR_CLIENT_ID,
EVENTS_AIR_CLIENT_SECRET,
EVENTS_AIR_TENANT_ID,
EVENTS_AIR_EVENT_ID,
} = z
.object({
NODE_ENV: z.string(),
Expand All @@ -40,5 +41,6 @@ export const {
EVENTS_AIR_CLIENT_ID: z.string().optional(),
EVENTS_AIR_CLIENT_SECRET: z.string().optional(),
EVENTS_AIR_TENANT_ID: z.string().optional(),
EVENTS_AIR_EVENT_ID: z.string().optional(),
})
.parse(process.env)
Loading

0 comments on commit 8bef4ce

Please sign in to comment.