Skip to content

Team member changes #171

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Team member changes #171

wants to merge 4 commits into from

Conversation

kungfuchicken
Copy link
Collaborator

Updated the list of People in the About section. Questions I have:

  1. is all the information accurate, including:
    • links
    • spellings
    • preferred names?
    • all people who should be listed are
  2. does anyone want their profile pic augmented with a custom image?
  3. should we break this up into multiple pages?

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the About section by adding new components for displaying lists of people, including previous staff and grad tech leads, and introduces alphabetical sorting to the listings.

  • Adds a PrevStaff component to render sorted previous staff profiles.
  • Updates the PrevGradTechLeads and CurrentGradTechLeads components to sort profiles alphabetically.
  • Introduces a CurrentStaff component that appears to have inconsistencies.

Reviewed Changes

Copilot reviewed 4 out of 9 changed files in this pull request and generated 2 comments.

File Description
src/components/people/PrevStaff/index.js New component to display previous staff sorted by name.
src/components/people/PrevGradTechLeads/index.js Updates to sort grad tech leads by name.
src/components/people/CurrentStaff/index.js Intended to display current staff, but references previous staff data and component name.
src/components/people/CurrentGradTechLeads/index.js Updates to sort current grad tech leads by name.
Files not reviewed (5)
  • docs/about/about.mdx: Language not supported
  • src/data/people/currentGradTechLeads.json: Language not supported
  • src/data/people/currentStaff.json: Language not supported
  • src/data/people/prevGradTechLeads.json: Language not supported
  • src/data/people/prevStaff.json: Language not supported

@kungfuchicken kungfuchicken requested a review from Copilot April 16, 2025 19:33
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the team member information displayed in the About section by adding and updating components to render lists of previous staff, previous graduate tech leads, current staff, and current graduate tech leads.

  • Added new components to display previous staff and current team members.
  • Applied alphabetical sorting to the team lists, with most components using .slice() to avoid in-place mutations.

Reviewed Changes

Copilot reviewed 4 out of 9 changed files in this pull request and generated 1 comment.

File Description
src/components/people/PrevStaff/index.js Introduces the PrevStaff component with sorting logic; note that .slice() is not applied before .sort().
src/components/people/PrevGradTechLeads/index.js Updates the sorting logic by applying .slice() before .sort().
src/components/people/CurrentStaff/index.js Introduces the CurrentStaff component with .slice() before .sort().
src/components/people/CurrentGradTechLeads/index.js Updates the sorting logic by applying .slice() before .sort().
Files not reviewed (5)
  • docs/about/about.mdx: Language not supported
  • src/data/people/currentGradTechLeads.json: Language not supported
  • src/data/people/currentStaff.json: Language not supported
  • src/data/people/prevGradTechLeads.json: Language not supported
  • src/data/people/prevStaff.json: Language not supported


return (
<div className="staffGrid">
{prevStaff.sort((a, b) => (a.name > b.name) ? 1 : (b.name > a.name) ? -1 : 0)
Copy link
Preview

Copilot AI Apr 16, 2025

Choose a reason for hiding this comment

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

Consider using .slice() before .sort() to avoid mutating the original prevStaff array and to maintain consistency with the other team member components.

Suggested change
{prevStaff.sort((a, b) => (a.name > b.name) ? 1 : (b.name > a.name) ? -1 : 0)
{prevStaff.slice().sort((a, b) => (a.name > b.name) ? 1 : (b.name > a.name) ? -1 : 0)

Copilot is powered by AI, so mistakes are possible. Review output carefully before use.

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.

1 participant