Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: adding additional sponsorship levels #145

Merged
merged 2 commits into from
Dec 5, 2023
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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "thatconference.com",
"version": "5.2.0",
"version": "5.2.1",
"description": "THATConference.com website",
"main": "index.js",
"type": "module",
Expand Down
12 changes: 11 additions & 1 deletion src/_dataSources/api.that.tech/partner/queries.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,17 @@ import config from '$lib/config.public';
import { log } from '../utilities/error';

const { uniqBy } = lodash;
const levelSortOrder = ['PIONEER', 'EXPLORER', 'SCOUT', 'CUB', 'PATRON', 'MEDIA', 'CHARITY'];
const levelSortOrder = [
'PIONEER',
'EXPLORER',
'SCOUT',
'RANGER',
'TRAILBLAZER',
'CUB',
'PATRON',
'MEDIA',
'CHARITY'
];

const coreFieldsFragment = `
fragment coreFieldsFragment on Partner {
Expand Down
10 changes: 9 additions & 1 deletion src/routes/(root)/sponsors/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@
<Level header="Scout Sponsors" partners={levels['SCOUT']} />
{/if}

{#if levels['RANGER']}
<Level header="Ranger Sponsors" partners={levels['SCOUT']} />
{/if}

{#if levels['TRAILBLAZER']}
<Level header="Trailblazer Sponsors" partners={levels['SCOUT']} />
{/if}

{#if levels['CUB']}
<Level header="Family Sponsors" partners={levels['CUB']} />
{/if}
Expand All @@ -55,7 +63,7 @@
{/if}

{#if levels['MEDIA']}
<Level header="Media Sponsors" partners={levels['MEDIA']} />
<Level header="Additional Sponsors and Partners" partners={levels['MEDIA']} />
{/if}
</div>
</div>
Expand Down
11 changes: 10 additions & 1 deletion src/routes/(root)/sponsors/job-board/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,16 @@
}))();

// find partners with jobs and deduplicate them.
const partnerLevelSort = ['PIONEER', 'EXPLORER', 'SCOUT', 'PATRON', 'CUB', 'MEDIA'];
const partnerLevelSort = [
'PIONEER',
'EXPLORER',
'SCOUT',
'RANGER',
'TRAILBLAZER',
'PATRON',
'CUB',
'MEDIA'
];
const partnerMap = new Map();
data.events.forEach((event) =>
event.partners.forEach((partner) => {
Expand Down
10 changes: 9 additions & 1 deletion src/routes/(that conferences)/tx/[year]/sponsors/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@
<Level header="Scout Sponsors" partners={levels['SCOUT']} />
{/if}

{#if levels['RANGER']}
<Level header="Ranger Sponsors" partners={levels['SCOUT']} />
{/if}

{#if levels['TRAILBLAZER']}
<Level header="Trailblazer Sponsors" partners={levels['SCOUT']} />
{/if}

{#if levels['CUB']}
<Level header="Family Sponsors" partners={levels['CUB']} />
{/if}
Expand All @@ -49,7 +57,7 @@
{/if}

{#if levels['MEDIA']}
<Level header="Media Sponsors" partners={levels['MEDIA']} />
<Level header="Additional Sponsors and Partners" partners={levels['MEDIA']} />
{/if}
</div>
</div>
Expand Down
10 changes: 9 additions & 1 deletion src/routes/(that conferences)/wi/[year]/sponsors/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@
{#if levels['SCOUT']}
<Level header="Scout Sponsors" partners={levels['SCOUT']} />
{/if}

{#if levels['RANGER']}
<Level header="Ranger Sponsors" partners={levels['SCOUT']} />
{/if}

{#if levels['TRAILBLAZER']}
<Level header="Trailblazer Sponsors" partners={levels['SCOUT']} />
{/if}

{#if levels['CUB']}
<Level header="Family Sponsors" partners={levels['CUB']} />
Expand All @@ -49,7 +57,7 @@
{/if}

{#if levels['MEDIA']}
<Level header="Media Sponsors" partners={levels['MEDIA']} />
<Level header="Additional Sponsors and Partners" partners={levels['MEDIA']} />
{/if}
</div>
</div>
Expand Down
13 changes: 13 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"extends": "./.svelte-kit/tsconfig.json",
"compilerOptions": {
"allowJs": true,
"checkJs": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"sourceMap": true,
"strict": true
}
}