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

enhance people view #113

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from
Open

enhance people view #113

wants to merge 5 commits into from

Conversation

mbwatson
Copy link
Member

this PR aims to list people on the the /people view alphabetically. a couple related efforts are folded in here:

  • sort people alphabetically at fetch-time
  • fix ood grouping/filtering
  • conditionally pass and render generic avatar

Copy link
Member

@Woozl Woozl left a comment

Choose a reason for hiding this comment

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

👍

@@ -107,8 +107,7 @@ const HorizontalLettersMenu = ({ linkedLetters }) => {
}

/*
* people are coming into this component from
* fetchStrapiPeople with this shape:
* people are coming into this component with this shape:
Copy link
Collaborator

Choose a reason for hiding this comment

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

should we also filter the people array by the active field? currently it's pulling in both active and inactive staff members for the staff page

Copy link
Member Author

Choose a reason for hiding this comment

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

ooh yes. thanks for catching that!

return p.firstName.localeCompare(q.firstName) ? p.lastName.localeCompare(q.lastName) : -1
});

const ood = people.filter(person => person.teams.some(t => t.name === 'Office of the Director'));
Copy link
Member Author

@mbwatson mbwatson Jun 13, 2024

Choose a reason for hiding this comment

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

use dashboard uid or slug

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.

None yet

3 participants