Skip to content

Add past member status to profiles and update related pages - #17

Merged
chandula00 merged 3 commits into
pdnMARC:mainfrom
chandula00:main
Oct 28, 2026
Merged

chandula00 merged 3 commits into
pdnMARC:mainfrom
chandula00:main

Conversation

@chandula00

Copy link
Copy Markdown
Contributor

This pull request introduces support for marking people as "past members" of the organization, ensuring that their profiles, projects, and publications are retained and displayed appropriately. It adds a status field (with values "current" or "past") and an optional currentPosition to people profiles, updates the UI to distinguish past members across the site, and clarifies documentation and workflows for handling departures. Past members are now listed separately, labeled in relevant places, and excluded from current member counts.

Schema and Data Model Updates

  • Added a status field (default "current") and optional currentPosition to the people collection schema in src/content.config.ts, enabling profiles to be marked as past members and to record their current position if known.
  • Added the isPast utility function in src/lib/people.ts to easily check a person's status throughout the codebase.

UI and Display Changes

  • Updated the home page (src/pages/index.astro) and about page (src/pages/about.astro) to count only current members in statistics, excluding past members.
  • Modified the people index page (src/pages/people/index.astro) to group and display past members in a separate "Past members" section, and to show their current positions if available.
  • Updated individual profile pages (src/pages/people/[...slug].astro) to label past members and display their current position, and adjusted metadata to reflect their alumni status.
  • Updated project pages (src/pages/projects/[...slug].astro) to indicate which team members are past members.

Documentation and Workflow

  • Updated documentation (src/pages/docs/profiles.mdx) to describe the new status and currentPosition fields, explain how to mark someone as a past member, and clarify validation rules for profiles.
  • Added a new workflow step in src/pages/docs/index.astro for handling departures, instructing users to mark profiles as past rather than deleting them.

Introduces `status` (`current`/`past`) and optional `currentPosition` in the people schema, plus a shared `isPast` helper. Updates people, project, home, and about pages to separate past members, show alumni labeling/"Now" details, and exclude past members from current-member stats. Also updates docs with profile guidance and workflow steps for marking someone as a past member without removing project/publication links.
@chandula00
chandula00 merged commit 601b5cb into pdnMARC:main Oct 28, 2026
1 check passed
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