Skip to content

Revert the Timeline event taxonomy source module - #8321

Open
janmaarten-a11y wants to merge 1 commit into
mainfrom
janmaarten-a11y-revert-8180-timeline-taxonomy
Open

Revert the Timeline event taxonomy source module#8321
janmaarten-a11y wants to merge 1 commit into
mainfrom
janmaarten-a11y-revert-8180-timeline-taxonomy

Conversation

@janmaarten-a11y

Copy link
Copy Markdown
Contributor

This reverts #8180. The team wants the Timeline event taxonomy to live in github-ui rather than in Primer, so Primer stays taxonomy-agnostic and ships only the Timeline component and, later, an optional presentational Timeline.Filter control. Nothing on main imports the taxonomy module, so removing it is safe. The related Primer taxonomy PR #8216 closes unmerged, and its branch stays preserved so github-ui can lift the model from it. This PR stays a draft pending the closing comments on #8216, #6664, and #6654.

Changelog

New

None.

Changed

None.

Removed

Remove the Timeline event taxonomy source module under packages/react/src/Timeline/taxonomy, which covers actorType.ts, eventCategories.ts, eventTaxonomy.ts, eventTaxonomy.test.ts, surfaces.ts, and index.ts. Remove the matching camelcase override block for that module from eslint.config.mjs.

Rollout strategy

  • Patch release
  • Minor release
  • Major release; if selected, include a written rollout or migration plan
  • None; if selected, include a brief description as to why

The taxonomy module never appears in the public @primer/react entry point and nothing on main imports it, so this revert makes no consumer-facing change and needs no changeset.

Testing & Reviewing

Run git revert on the #8180 squash commit, which applies cleanly with no conflicts and touches exactly seven files: it deletes the six files under packages/react/src/Timeline/taxonomy and removes the eight-line camelcase override from eslint.config.mjs. A repo-wide search finds no remaining references to the taxonomy module, and the Timeline component and its surface stories stay untouched. Type checking with tsc, linting with eslint at zero warnings across eslint.config.mjs and the Timeline directory, prettier formatting, and the @primer/react build all pass.

@changeset-bot

changeset-bot Bot commented Aug 19, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: da0176b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@janmaarten-a11y janmaarten-a11y added the skip changeset This change does not need a changelog label Aug 19, 2026
@github-actions github-actions Bot added the integration-tests: recommended This change needs to be tested for breaking changes. See https://arc.net/l/quote/tdmpakpm label Aug 19, 2026
@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Action required

👋 Hi, this pull request contains changes to the source code that github/github-ui depends on. If you are GitHub staff, test these changes with github/github-ui using the integration workflow. Check the integration testing docs for step-by-step instructions. Or, apply the integration-tests: skipped manually label to skip these checks.

@janmaarten-a11y
janmaarten-a11y marked this pull request as ready for review August 19, 2026 03:18
@janmaarten-a11y
janmaarten-a11y requested a review from a team as a code owner August 19, 2026 03:18
@janmaarten-a11y
janmaarten-a11y requested review from liuliu-dev and llastflowers and a lite review from Copilot and removed request for llastflowers August 19, 2026 03:18
@janmaarten-a11y janmaarten-a11y self-assigned this Aug 19, 2026
@janmaarten-a11y janmaarten-a11y added component: Timeline integration-tests: skipped manually Changes in this PR do not require an integration test and removed integration-tests: recommended This change needs to be tested for breaking changes. See https://arc.net/l/quote/tdmpakpm labels Aug 19, 2026
@janmaarten-a11y
janmaarten-a11y marked this pull request as draft August 19, 2026 03:33

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Warning

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Reverts the previously introduced Timeline event taxonomy source module so Primer remains taxonomy-agnostic, keeping taxonomy ownership in github-ui.

Changes:

  • Deletes the Timeline taxonomy module files under packages/react/src/Timeline/taxonomy/ (types, catalogs, projections, and tests).
  • Removes the ESLint camelcase override that was scoped specifically to the deleted taxonomy file.
Show a summary per file
File Description
packages/react/src/Timeline/taxonomy/surfaces.ts Removed the Timeline surface union and security-alert surface helpers.
packages/react/src/Timeline/taxonomy/index.ts Removed taxonomy module public entry point re-exports.
packages/react/src/Timeline/taxonomy/eventTaxonomy.ts Removed the combined taxonomy catalogs and projection utilities.
packages/react/src/Timeline/taxonomy/eventTaxonomy.test.ts Removed tests validating the taxonomy catalogs and projections.
packages/react/src/Timeline/taxonomy/eventCategories.ts Removed event category model and surface/category mapping helpers.
packages/react/src/Timeline/taxonomy/actorType.ts Removed actor type classification and login-based resolution helper.
eslint.config.mjs Removed the camelcase override targeting the deleted taxonomy file.

Review details

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 7/7 changed files
  • Comments generated: 0
  • Review effort level: Lite

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review details

  • Files reviewed: 7/7 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@janmaarten-a11y
janmaarten-a11y marked this pull request as ready for review August 19, 2026 03:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: Timeline integration-tests: skipped manually Changes in this PR do not require an integration test skip changeset This change does not need a changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants