Add Person and Status field types

Open
#116 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
javascript
Domain
full-stack

Research direction

The issue names no files, tests, or entry points; start by tracing existing field types, per-field configuration, row metadata, board grouping, and filter/sort implementations. Done means both field types can be configured and used on rows, Status grouping works in the board, and filtering and sorting work for Person and Status.

Written by the indexing model from the issue text.

Description

area: collections priority: medium

Goal

Two field types Cortext doesn't have today. Person stores one or more WP user references per row (Assignee, Reviewer, Reporter, and so on). Status is a select-with-workflow-groups, which is what board grouping actually wants.

Scope

  • Person field type:
    • Stores one or more WP user IDs in row meta.
    • A picker UI that searches WP users by display name.
    • Single or multi configurable per field.
    • Renders as user chips with avatar.
  • Status field type:
    • Select-style options grouped into workflow buckets ("To-do", "In progress", "Done"), configurable per field.
    • Default groups so new fields ship with sensible workflows.
    • The board layout groups by Status's workflow buckets when Status is the chosen group-by field.
  • Filter and sort on Person (by user) and Status (by group, by option).
  • Status workflow groups and Person's single/multi setting are managed from the per-field config panel.

Out of scope

  • Notification on assignment.
  • Permissions tied to Person fields.
  • Workspace user directory beyond WP users.

Acceptance criteria

  • You can add a Person field, configure single or multi, and assign WP users to rows.
  • You can add a Status field with custom groups; rows pick a status from any group.
  • The board layout grouped by Status uses the workflow buckets.
  • Filter and sort work on both types.
Dominant language
JavaScript
Stars
51
Forks
2
Avg merge
17m
Merged PRs (30d)
4

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Automattic/cortext

All issues in Automattic/cortext

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.