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

adds partner organizations to map and list #99

Merged
merged 6 commits into from
Jun 9, 2023
Merged

Conversation

kleinicke
Copy link
Member

@kleinicke kleinicke commented Mar 24, 2023

Can be merged, if you think it's fine.
We could discuss about the color for partner organisations on the map.

@kleinicke kleinicke requested a review from janosh March 24, 2023 19:26
@netlify
Copy link

netlify bot commented Mar 24, 2023

Deploy Preview for sbs-austria ready!

Name Link
🔨 Latest commit 29af134
🔍 Latest deploy log https://app.netlify.com/sites/sbs-austria/deploys/6481e1cab1a2060008a7cd3b
😎 Deploy Preview https://deploy-preview-99--sbs-austria.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 site settings.

@@ -7,13 +7,16 @@ export const load: LayoutLoad = async () => {
const nav = await fetch_yaml(`Nav`)
const footer = await fetch_yaml(`Footer`)
const social = await fetch_yaml(`Social`)
const chapters = await fetch_chapters()
var chapters = await fetch_chapters()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't use var. Prefer let or const.

Comment on lines 23 to 25
`chapter`,
chap.acceptsSignups ? `active` : chap.partnerAssociation ? 'partner' : `starting`,
],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar suggestion to #98, how about instead of defining a bunch of booleans, we add an attribute status: 'active' | 'starting' | 'partner' or similar to the Chapter type?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But we keep the bunch of booleans in Contentful right? There is no nice way to implement that you can select from a set of possible states.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

acceptSignups is the boolean variable that is currently directly loaded from Contentful. Maybe we should add an additional state for the signupsState?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no nice way to implement that you can select from a set of possible states.

Yes there is. I just added a "state" to chapters. Take a look on Contentful for how to set that up.

Screenshot 2023-03-26 at 08 06 05

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I second this, this would be more elegant and easier to modify in the future.

Copy link
Contributor

@dominikgeissler dominikgeissler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but I think the points @janosh mentioned (esp. with the contentful-interaction) would be much more elegant

@kleinicke kleinicke force-pushed the feature/external_orgs branch 2 times, most recently from 58d92b6 to 29af134 Compare June 8, 2023 14:12
@kleinicke
Copy link
Member Author

Ok, I changed everything which was in question. So now we can merge it.

@kleinicke kleinicke merged commit d70eec0 into main Jun 9, 2023
@kleinicke kleinicke deleted the feature/external_orgs branch June 9, 2023 14:34
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.

3 participants