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
Currently, the order of which officers appear on the officer sections depends on where they're placed in the list inside officers.ts
Since some people have promoted from their first role(s), they might need to be moved higher in the grid compared to last year. We should make a position counter in the officers.ts that lets us place people in any order.
{
name: "GENERIC NAME",
positions: {
[TERM_SPRING_21]: "Officer",
[POS_SPRING_21]: "3",
[TERM_FALL_21]: "President",
[POS_FALL_21]: "1", // moves them higher in the list for fall 21
},
picture: "generic-name.png",
},
The text was updated successfully, but these errors were encountered:
We could have enums for specific tiers and in which people will be sorted alphabetically.
enumTier{First,// Would be used for the presidentSecond,// Maybe Vice PresidentGeneral,// Other acm general peepsCreateLeader,// Saved for the Create director/lead/presidentCreate,// Then create officers,DevLeader,// Saved for the dev leaderDev,// then dev officers// etc...}
The TypeScript enum by default will conveniently generate the enum values like First=0, Second=1, General=2, etc. We can use this to our advantage in our sorting/filtering implementation. After sorting by tier, the officers will be sorted alphanumerically by name.
Then, we can just change the position object to map to something like this instead of just their position title. While we are at it, let's change the type of the positions property to make more sense. See the snippet below.
What's your idea?
Currently, the order of which officers appear on the officer sections depends on where they're placed in the list inside officers.ts
Since some people have promoted from their first role(s), they might need to be moved higher in the grid compared to last year. We should make a position counter in the officers.ts that lets us place people in any order.
For example...
Spring 21
Fall 21
The text was updated successfully, but these errors were encountered: