Skip to content

feat: show Unity extended values on every model's edit screen - #85

Merged
crazeydave merged 1 commit into
mainfrom
feat/extended-values-all-models
Nov 30, 2026
Merged

crazeydave merged 1 commit into
mainfrom
feat/extended-values-all-models

Conversation

@crazeydave

Copy link
Copy Markdown
Contributor

The read-only "Extended values" box was member-only. Unity 2.100.1 (bleedingdeacons/unity#84) and TSML 2.2.0 (bleedingdeacons/tsml-for-unity#92) give meetings, groups, positions, intergroup meetings and committees the same store, so show it on their screens too.

  • ExtendedValuesMetaBox replaces MemberValuesMetaBox: one add_meta_boxes hook, a side box on each post type whose model publishes a POST_TYPE in Unity's configuration. Lookups are feature-detected on their repository bindings and resolved only when a box is drawn.
  • CommitteeExtendedValuesField: the same table as a row on the committee term edit screen (terms have no meta boxes), registered with the other committee screens behind the CommitteeRepository check.
  • ExtendedValuesTable: the shared, escaped table.
  • Locations get no box: TSML publishes no Location configuration and edits locations inside the meeting screen.

Tests

  • Member box test moved to the generic box; covers each post type, the comment screen, capability checks, escaping.
  • New committee row test; a WP_Term stand-in in the bootstrap (as tsml-for-unity has); Unit/Admin/ExtendedValues added to Pest's AmberTestCase list.
  • ci-local amber (PHP 8.4, Docker): passed.

Needs Unity 2.100.1 and TSML 2.2.0 deployed alongside.

The read-only "Extended values" box was member-only. Unity 2.100.1 gives
meetings, groups, positions, intergroup meetings and committees the same
store, so show it on their screens too.

- ExtendedValuesMetaBox replaces MemberValuesMetaBox: one add_meta_boxes
  hook, a side box on each post type whose model publishes a POST_TYPE in
  Unity's configuration. Each lookup is feature-detected on its repository
  binding and resolved only when a box is drawn.
- CommitteeExtendedValuesField adds the same table as a row on the committee
  term edit screen, which has no meta boxes; registered with the other
  committee screens, behind the CommitteeRepository check.
- ExtendedValuesTable is the shared, escaped table.

Locations get no box: TSML publishes no Location configuration and edits
locations inside the meeting screen.

Tests: the member box test moves to the generic box and covers each post
type; a committee test; a WP_Term stand-in in the bootstrap, as
tsml-for-unity has; the new test directory added to Pest's AmberTestCase
list.
@coderabbitai

coderabbitai Bot commented Nov 30, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 47c4bb40-5a25-43e0-8374-b82f8228201f
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@crazeydave
crazeydave merged commit d0699b9 into main Nov 30, 2026
7 checks passed
@crazeydave
crazeydave deleted the feat/extended-values-all-models branch November 30, 2026 22:53
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