Editor: Categories and Tags each get their own section in the side panel

Open Beginner friendly
#677 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
62/100
Issue type
Refactor
Clarity
Clearly specified
Activity status
Active
Tech stack
laravel, php, postgresql, react, typescript
Domain
content, frontend

Research direction

The change lives in resources/js/components/editor/rail/taxonomy-panel.tsx, where one RailSection wraps all taxonomies and titleOf() supplies the label. Read how the panel iterates the item's taxonomies, then render one RailSection per taxonomy with its plural title and count. Browser tests that match the text "Categories and tags" need updating. Done when each taxonomy of the item's type has its own folding section and a type with none renders nothing.

Written by the indexing model from the issue text.

Description

area/editor type/enhancement when/soon

What

The editor's side panel puts every taxonomy in one section, "Categories and tags", with one summary ("0 · 0") and one fold. Give each taxonomy its own section instead, titled with its plural name (Categories, Tags, and each taxonomy a plugin adds), each folding on its own, with its own count in the header.

Why

With one section, a long category tree pushes the Tags field out of view, and opening or closing one opens or closes the other. Separate sections let each be folded on its own, and give a plugin's taxonomy a title of its own. This reverses the single section introduced with the editor's design in #563.

Where

resources/js/components/editor/rail/taxonomy-panel.tsx: one RailSection per taxonomy instead of one around all of them (titleOf() goes). The primary category stays under the first hierarchical taxonomy's tree. The ticked list still scrolls past 176px.

Done when

Each taxonomy of the item's type has its own section, title and count; a type with none draws nothing; the browser tests that read "Categories and tags" are updated.

Related

#13, #675, #676.

🤖 Generated with Claude Code

Dominant language
PHP
Stars
1
Forks
1
Avg merge
1h 40m
Merged PRs (30d)
143

Getting set up

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 temecms/teme

All issues in temecms/teme

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.