From 29cc8f2eca051b61f146d640e1f29fbcc4ec3d96 Mon Sep 17 00:00:00 2001 From: Alex Gorischek Date: Mon, 30 Nov 2026 17:00:05 -0800 Subject: [PATCH 1/2] CHANGELOG: v0.3.0's release notes Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- CHANGELOG.md | 97 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5f10ce699..02464de51 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,103 @@ What changed in each release of Projections. A version's section is the body of its [GitHub release](https://github.com/githubnext/projections/releases), and its release candidates use it too ([release notes](docs/maintainers/releasing.md#release-notes)). +## v0.3.0 + +Projections 0.3.0 opens every comparison on what changed and what that change needs to be read, adds Swift API and Xcode built-ins, rebuilds the viewer's chrome around a one-row toolbar, and gives renderer authors a sortable `DataTable`, frames, labels and change marks in the kit, with new renderer checks that hold every renderer to them. Read [Behaviour changes](#behaviour-changes) and [For renderer authors](#for-renderer-authors) before upgrading: some can turn a passing check red. + +### Behaviour changes + +- **Comparisons open on the Changes scope** (#15, #36). Scope (Changes · All · Noise) is a new axis beside the mode: Changes shows each change with its context (a changed relationship's endpoints and the items that contain a changed item) and folds or recedes the rest. A comparison without changes says so and offers Show all. A definition opts out with `presentation.changesOnly: false`. +- **Comparisons can carry `context`** (#36). A reviewed change may list the other items of each revision needed to read it (`context: {before, after, rules?}`), added to `comparison/v0` and validated by `validate-comparison`. Comparator files gain a `context` section of named rules and move to language revision 4. CLIs 0.2.0 and earlier reject saved comparisons that carry context, so upgrade every CLI that reads your saved comparisons or CI artifacts together. +- **`changed` means a reviewable change** (#103). Batch, sweep and artifact statuses now come from the engine's one review: a comparison with only expected variation is `unchanged` (0.2.0 said `changed`). Compared batch items gain a `review` field with the counts. Hosts still accept 0.2.0's `changed` label for such comparisons. +- **One rule for whether two extractions can be compared** (#101). Hosts and the Inspector now also refuse a pair with equal definition digests but different recorded definitions, as the CLI's loader already did. A difference only in `presentation` still compares. +- **`--ci` reports a workflow it can't read** (#91). A failure to read a candidate workflow file (authentication, rate limits, network) used to make `--ci` treat it as not a Projections workflow and quietly find no CI output; now it is an error naming the workflow and repository, or a note when an imported artifact is used instead. Only a 404 means the workflow isn't one. +- **`tetragon-policies` rejects a boolean that isn't `true` or `false`** (#92). + +### For renderer authors + +Upgrade `@githubnext/projections` to `https://github.com/githubnext/projections/releases/download/v0.3.0/githubnext-projections-0.3.0.tgz` together with the 0.3.0 CLI. + +- **Removed:** `weightShares` and `WeightShare` from `/kit`, and `GraphCanvasProps.weight` from `/kit/react`: graph cards no longer draw a weight gauge along their top edge (#72). Use `accent` or `detail` to show a card's size instead. +- **New renderer checks** run by default in `projections check` and in `expectScenarioToPass` (`@githubnext/projections/testing`), and fail a renderer that doesn't meet them: + - `nested-accents` (#50): change and accent colours never nest; an element that contains changed elements stays neutral. Mark such containers `pk-holds-changes` (or pass `holdsChanges` to `Group` and `EntityCard`); the kit's `nesting.css` already drains `data-change` items that hold other changes. + - `frame-edges` (#185, #189): a rounded, edged box whose contents reach a corner must draw its edge over them. Use `Group` or the kit's `pk-frame` class, and don't draw into a kit frame's `::after` (recolouring it is fine). + - `label-centring` (#190): a chip, bar or button's text is centred on its capitals. Put the text in `pk-label`. + - `centred-pixels` (#192): an icon, pill or mark centred in a bar, chip or button sits at equal whole-pixel gaps. Use `pk-label` for labels and even-sized icons. + - `link-routes` (#107): links marked `data-projections-route` go around the cards in their way; a renderer that can't marks the least-overlapping route `data-projections-route="crossing"`. Renderers that mark no routes skip it; `GraphCanvas` marks its own. + - Checks also read what a box draws in its pseudo-elements, shadows and gradients (#188), so the palette and spacing checks can find colours and edges they missed before. +- **Default styles that changed:** `base.css` now includes the kit's change marks (`changes.css`: `data-change` and the new `data-change-hue` set `--pk-change-ink`, `--pk-change-strong`, `--pk-change-highlight`, `--pk-region-fill` and `--pk-region-edge`) and `nesting.css`, which draws any `data-change` or `data-status` element holding other changed elements neutral (#50, #193). `Group` draws its border over its contents (#185), and `Group` titles and meta and `RelationshipItem` text are `pk-label`s (#190). `StatusTab` joins its tag at the left (#55). No kit class or custom property was removed. +- **Protocol (additive):** renderers may declare a `context` capability to receive a change's `context` in `init`; hosts strip it for renderers that don't (#36). `init` and `rendered` carry an optional `generation`, which the SDK echoes so hosts drop stale paint acknowledgements (#172). `environment` messages keep their `sizing` (#140), and the optional layout tokens add `stage-inset-bottom` and `stage-cover` (#58, #150). Kit renderers report a frame's height before acknowledging their first paint (#95). + +### Highlights + +- **Changes and context** (#15, #36). On a pull request, or any comparison, the viewer shows the changes and what they need to be read rather than the whole projection with changes dimmed. Lists fold what the scope hides, canvases keep their layout and recede the rest, and `current_view` lists each change's context. +- **Swift public APIs and Xcode projects** (#27, #32). `swift-public-api` reads a Swift package's public declarations from compiler symbol graphs into the `api` renderer (`--trust`, or imported `*.symbols.json` without it). `xcode-modules` reads Xcode targets, module names, dependencies and imports from `project.pbxproj`, xcconfig files and Swift sources, without Xcode or `--trust`. +- **A quieter viewer** (#25, #58, #65, #77). One toolbar row with the mode and scope switches centred, revision chips and playback floating over the stage, a floating foot for the legend and summary, extraction progress said on the stage, and a projections list you can pin as a pane. +- **`DataTable` in the renderer kit** (#54). A sortable, accessible table for `/kit/react`, with the sort as a renderer control, change pills in Diff, a frozen first column and folds in the Changes scope. +- **Extractor helpers for Node** (#125). `import {request, result} from '@githubnext/projections/extractor'` gives JavaScript and TypeScript extractors the same zero-install API Python extractors have. `projections init` scaffolds use it. + +### New built-ins + +- `swift-public-api` extractor (#32). +- `xcode-modules` extractor (#27). +- `--theme chatgpt`, a theme seed for the ChatGPT and Codex apps (#74). + +### Viewer and hosts + +- The Changes, All and Noise scope beside the mode, in the viewer, the Inspector, the Copilot canvas and VS Code; summary figures and find narrow within the scope and recede rather than relayout (#15, #67, #75). +- One toolbar row: the mode and scope switches centred, the folded mode menu and the segmented controls in one box, and bars planned by one fit plan shared by every host, VS Code included (#25, #65, #66, #106, #109). +- The stage's utility area: revision chips in Side by side and Swipe, and playback floating over the stage; stacked panes meet at one rule (#57, #58). +- Pin the projections list as a pane from the title's menu (#77). +- A whole 35px header, so the toolbar and stage start on whole pixels; pane labels follow the chrome's bands, and the Copilot canvas draws rules in the app's own divider (#56, #64). +- `--theme claude` matches Claude's panes more closely (#47). +- Hosts share one view model, comparison session, playback, Space shortcut, running indicator and revision-label format, so settings carry across pairs and every UI behaves alike (#112, #113, #114, #115, #116, #117, #145, #148, #149). +- The agent viewer's connection is a state machine: reports arrive in order and echoes go to their page (#118). VS Code commands no longer wait forever on a webview (#111). +- A single notice draws without a list bullet, and the No changes notice's icon is centred (#60, #79). + +### Renderers + +- Built-in renderers never nest change colours, and a change region meets a group's edge in one line (#50, #61). +- Graph cards lose their weight bar; their accent band replaces the card's border, columns sit a route channel apart, and edges share one style with origin dots and whole-edge hover (#72, #73, #70, #187). +- Graph routes drawn differently never share a port, a track or a lane, and change runs draw one even outline (#198, #199). +- `dependencies` fits narrow stages, and a card that presents other items carries them in `data-entity-aliases` so hover, selection and filters find it (#197). +- `database`: models draw at once while no filter comes; the Changes scope keeps what a changed row points at; a single-column key's changes read under its column; a column gaining or losing a key role reads as modified, the role in words; cards use the kit's frame (#63, #127, #128, #194, #201). +- `dependency-injection`: lifetimes are an inset pill, a rewired link's old route leaves with its card, closed generic names keep their arguments, and blocked links draw the least-overlapping route and report it (#76, #81, #107, #173). +- `api`: a wholly added or removed signature's box hugs its text (#195). +- `text-diff`: long lines wrap in one column, two, and one revision (#144). +- `runtime-policy`: the Changes scope keeps what a changed row's chips name (#83). +- `agentic-workflows`: the capability matrix has slanted headings (#184). +- `code-statistics`: the share chart fills a frame the host sizes (#178). +- Nested groups have concentric radii, and a group's border stays whole around its corners (#82). + +### Renderer kit and SDK + +- `DataTable`, `useTableProps` and `tableSortControls` (#54); `Fold`, `useFolds` and `foldList` for the Changes scope, with `changesScope`, `scopedModel`, `followContext` and `layoutFilter` (#15). +- `pk-frame`, `pk-label` and `pk-holds-changes` classes, `holdsChanges` on `Group` and `EntityCard`, and `data-change-hue` for parts drawn in a change's hue (#50, #189, #190, #193). +- `SlantedHeading` and `useSlantedHeadings` (#184); `EdgeOrigins` and `raisedEdges` (#187); `textPill` and `pillMetrics` (#76). +- `routeBoxEdge` returns a `BlockedBoxEdge` with the least-overlapping route when no route clears the cards; `boxEdge` throws `NoRouteError`, still an `Error` (#107). +- `GraphCanvasProps` gains `labelLines` (long dotted names wrap) and `aliases` (#197); the SDK adds `entityAliasesAttribute` (#197). +- `useStageInsetBottom`, `useStageCover`, `useCoveredPadding` and `useScrolledPadding` keep content clear of the floating foot and utility area (#58, #150, #155). +- The SDK's `presentation` adds `changeContext`, `rowContexts`, `scopeRows`, `isContainment` and `viewScopes` (#15, #36). +- The kit keeps the filter a host sends with its documents (#171). + +### Authoring + +- CLI hints and agent guidance lead with an agent running Projections and opening the viewer (#84). +- Comparator checks and comparisons stop when their caller's signal aborts (#104). + +### Platform + +- Browser launches wait for a cold start within the caller's budget (#93). +- Files the CLI replaces are renamed into place in a way open readers on Windows don't refuse (#90). +- Python extractors keep the `projections` module's cache directory as it was unpacked (#98). + +### Fixes + +- Covers and whole-pixel measurements use the frame's own pixels under a page's transform (#196). +- Graphs keep their opening view while a new scope is laid out (#131). +- Repository-controlled text is read in linear time (code scanning's ReDoS and wildcard alerts) (#48). + ## v0.2.0 Projections 0.2.0 adds built-ins for Rails, Swift packages and GitHub Agentic Workflows, makes the agent viewer easier to drive and to show in other apps (Claude Code's Preview pane among them), and tightens what runs without `--trust`. Read [Behaviour changes](#behaviour-changes) before upgrading: some can turn a passing check red. From 8e205b26acdf6e156832e6a5ac54f50ab8a2ef0d Mon Sep 17 00:00:00 2001 From: Alex Gorischek Date: Mon, 30 Nov 2026 17:21:30 -0800 Subject: [PATCH 2/2] CHANGELOG v0.3.0: subset layout, and its own Behaviour changes anchor Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- CHANGELOG.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 02464de51..f34512e39 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,11 +4,11 @@ What changed in each release of Projections. A version's section is the body of ## v0.3.0 -Projections 0.3.0 opens every comparison on what changed and what that change needs to be read, adds Swift API and Xcode built-ins, rebuilds the viewer's chrome around a one-row toolbar, and gives renderer authors a sortable `DataTable`, frames, labels and change marks in the kit, with new renderer checks that hold every renderer to them. Read [Behaviour changes](#behaviour-changes) and [For renderer authors](#for-renderer-authors) before upgrading: some can turn a passing check red. +Projections 0.3.0 opens every comparison on what changed and what that change needs to be read, adds Swift API and Xcode built-ins, rebuilds the viewer's chrome around a one-row toolbar, and gives renderer authors a sortable `DataTable`, frames, labels and change marks in the kit, with new renderer checks that hold every renderer to them. Read [Behaviour changes in 0.3.0](#behaviour-changes-in-030) and [For renderer authors](#for-renderer-authors) before upgrading: some can turn a passing check red. -### Behaviour changes +### Behaviour changes in 0.3.0 -- **Comparisons open on the Changes scope** (#15, #36). Scope (Changes · All · Noise) is a new axis beside the mode: Changes shows each change with its context (a changed relationship's endpoints and the items that contain a changed item) and folds or recedes the rest. A comparison without changes says so and offers Show all. A definition opts out with `presentation.changesOnly: false`. +- **Comparisons open on the Changes scope** (#15, #36). Scope (Changes · All · Noise) is a new axis beside the mode: Changes shows each change with its context (a changed relationship's endpoints and the items that contain a changed item): the graph, database, dependency-injection, file-packing and runtime-policy renderers lay out only those, so the rest take no room, and lists fold the rest. A comparison without changes says so and offers Show all. A definition opts out with `presentation.changesOnly: false`. - **Comparisons can carry `context`** (#36). A reviewed change may list the other items of each revision needed to read it (`context: {before, after, rules?}`), added to `comparison/v0` and validated by `validate-comparison`. Comparator files gain a `context` section of named rules and move to language revision 4. CLIs 0.2.0 and earlier reject saved comparisons that carry context, so upgrade every CLI that reads your saved comparisons or CI artifacts together. - **`changed` means a reviewable change** (#103). Batch, sweep and artifact statuses now come from the engine's one review: a comparison with only expected variation is `unchanged` (0.2.0 said `changed`). Compared batch items gain a `review` field with the counts. Hosts still accept 0.2.0's `changed` label for such comparisons. - **One rule for whether two extractions can be compared** (#101). Hosts and the Inspector now also refuse a pair with equal definition digests but different recorded definitions, as the CLI's loader already did. A difference only in `presentation` still compares. @@ -32,7 +32,7 @@ Upgrade `@githubnext/projections` to `https://github.com/githubnext/projections/ ### Highlights -- **Changes and context** (#15, #36). On a pull request, or any comparison, the viewer shows the changes and what they need to be read rather than the whole projection with changes dimmed. Lists fold what the scope hides, canvases keep their layout and recede the rest, and `current_view` lists each change's context. +- **Changes and context** (#15, #36). On a pull request, or any comparison, the viewer shows the changes and what they need to be read rather than the whole projection with changes dimmed. Canvases lay out only what's in scope and lists fold the rest; `current_view` lists each change's context. - **Swift public APIs and Xcode projects** (#27, #32). `swift-public-api` reads a Swift package's public declarations from compiler symbol graphs into the `api` renderer (`--trust`, or imported `*.symbols.json` without it). `xcode-modules` reads Xcode targets, module names, dependencies and imports from `project.pbxproj`, xcconfig files and Swift sources, without Xcode or `--trust`. - **A quieter viewer** (#25, #58, #65, #77). One toolbar row with the mode and scope switches centred, revision chips and playback floating over the stage, a floating foot for the legend and summary, extraction progress said on the stage, and a projections list you can pin as a pane. - **`DataTable` in the renderer kit** (#54). A sortable, accessible table for `/kit/react`, with the sort as a renderer control, change pills in Diff, a frozen first column and folds in the Changes scope. @@ -73,7 +73,8 @@ Upgrade `@githubnext/projections` to `https://github.com/githubnext/projections/ ### Renderer kit and SDK -- `DataTable`, `useTableProps` and `tableSortControls` (#54); `Fold`, `useFolds` and `foldList` for the Changes scope, with `changesScope`, `scopedModel`, `followContext` and `layoutFilter` (#15). +- `DataTable`, `useTableProps` and `tableSortControls` (#54). +- The Changes scope for kit renderers: `mountRenderer`'s `scope` option folds a list (`{layout: 'fold'}`) or lays out only the scope's items (`{layout: 'subset', parts, context}`), with `Fold`, `useFolds`, `foldList`, `changesScope`, `scopedModel`, `followContext` and `layoutFilter` (#15). - `pk-frame`, `pk-label` and `pk-holds-changes` classes, `holdsChanges` on `Group` and `EntityCard`, and `data-change-hue` for parts drawn in a change's hue (#50, #189, #190, #193). - `SlantedHeading` and `useSlantedHeadings` (#184); `EdgeOrigins` and `raisedEdges` (#187); `textPill` and `pillMetrics` (#76). - `routeBoxEdge` returns a `BlockedBoxEdge` with the least-overlapping route when no route clears the cards; `boxEdge` throws `NoRouteError`, still an `Error` (#107).