Repository navigation
refactor(plugin-detail): pair timeline audit entries by the spec's folded activity types - #30517
Merged
objectstack-fleet[bot] merged 1 commit intoNov 5, 2026
Conversation
…lded activity types The record timeline stream kept a local audit action to activity type map that restated RECORD_TIMELINE_FOLDED_ACTIVITY_TYPES from @objectstack/spec/api. Read the spec constant instead (own-key lookup, so an action outside it, including a prototype key, never pairs), and pin that the stream pairs exactly the entries the constant names. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgUR8Nu4M7tbtgES7q2
Contributor
Author
|
domain:ui#6 · os-sales · session_01L6bhgUR8Nu4M7tbtgES7q2 维护者速读
席位核对 — ACCEPT · head 0e46792
|
objectstack-fleet
Bot
deleted the
claude/issue-30408-timeline-folded-types
branch
November 5, 2026 15:36
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Sales · project thread
domain:ui#6 · os-sales · session_01L6bhgUR8Nu4M7tbtgES7q2
Fixes #30408
Clause-②: no
Metadata-protocol: none
维护者速读
RECORD_TIMELINE_FOLDED_ACTIVITY_TYPES。ui/packages/plugin-detail/src/recordTimelineStream.ts的foldedActivityTypeOf,再看同包测试文件末尾新增的 describe。pnpm --dir ui exec vitest run packages/plugin-detail/src/__tests__/recordTimelineStream-27055.test.tsx,预期 42 个测试全部通过。What changes
ui/packages/plugin-detail/src/recordTimelineStream.ts: the localAUDIT_ACTION_TO_ACTIVITY_TYPEmap is gone.pairGapnow asksfoldedActivityTypeOf(action), which readsRECORD_TIMELINE_FOLDED_ACTIVITY_TYPESfrom@objectstack/spec/api(the module the file already importedRECORD_TIMELINE_UPDATE_ACTIVITY_TYPEfrom) through an own-key check, so an action outside the constant (restore, an unknown action, a prototype key such astoString) pairs with nothing.@object-ui/plugin-detailpatch.packages/**change.Tests
A new top-level describe in
recordTimelineStream-27055.test.tsx(the file that already holds the pairing pins): for each entry of the spec constant, the audit action pairs with its activity type and with no other folded type; forrestore,unknown_action,toString,constructor,__proto__andhasOwnProperty, nothing pairs. The cases are driven from the spec constant itself, so the client cannot fold a different set without this red.Acceptance notes
deletepairing; only the new pin went red. No earlier pin covered thedeletepair.Verification
All readings at head
0e467929a3, worktree on basea1d0b1ee9e.Package tests and type-check (plugin-detail)
pnpm --dir ui exec vitest run --maxWorkers=2 packages/plugin-detail/src/__tests__/recordTimelineStream-27055.test.tsx: Test Files 1 passed (1), Tests 42 passed (42).pnpm --dir ui exec vitest run --maxWorkers=2 packages/plugin-detail/: Test Files 371 passed, 1 skipped (372); Tests 3328 passed, 18 skipped (3346); exit 0.pnpm --filter @object-ui/plugin-detail type-check(both tsc legs): exit 0.Positive control (ablation)
node scripts/ablation-replace.mjsonrecordTimelineStream.ts: anchorreturn RECORD_TIMELINE_FOLDED_ACTIVITY_TYPES[replaced sodeletereturns undefined; anchor 1 to 0, marker 0 to 1, blobca01922c2dbcto5837636a3f05.deleteentry pairs with the activitydeletedrow.VERDICT command-exit 1.ca01922c2dbcequals the HEAD blob,git diff HEADempty.Derived gates (dispatch-gates --commands, 35 families)
pnpm --dir ui exec vitest run scripts/(Test Files 170 passed, 2 skipped; Tests 4985 passed, 2 skipped).node scripts/pm/dispatch-gates.mjs --ran: 35 derived families accounted for, 35 run, 0 NOT-MEASURED (a derived zero, every line with its exit code).pnpm lintand the full CI farm, which CI owns.🤖 Generated with Claude Code
https://claude.ai/code/session_01L6bhgUR8Nu4M7tbtgES7q2