Skip to content

[BACKEND] Create executives collection #16

@aleckshen

Description

@aleckshen

Is your feature request related to a problem? Please describe

There is no way for admins to manage executive team member profiles through the CMS. The executive team page requires structured data (name, role, photo, bio) that should be editable without code changes.

Describe the solution you'd like

Create an Executives collection at src/payload/collections/Executives.ts and register it in src/payload.config.ts.

Fields:

Field Type Required Notes
name text yes Full name
role text yes e.g. "Co-President", "Treasurer"
bio textarea no Short bio / description
photo upload no relationTo: 'media'
order number no For controlling display order on the frontend

Access control:

Operation Rule
read Public (no login required)
create / update / delete Admins only

Describe alternatives you've considered

Hardcoding executive info in the frontend was considered, but a CMS collection allows the exec team to update their profiles each year without developer involvement.

Additional context

After creating the collection, run pnpm payload generate:types to regenerate payload-types.ts.

This collection has no dependencies on any other ticket.

Labels: feature, good first issue

BEFORE MERGING

  • Code generation run (hint: pnpm typegen)
  • PR Reviewed (For non-trivial changes)
  • All required PR checks passing

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions