Skip to content

feat: Portato Licenses tab and #448 follow-ups - #452

Merged
Brooooooklyn merged 6 commits into
mainfrom
feat/licenses-and-followups
Dec 1, 2026
Merged

Brooooooklyn merged 6 commits into
mainfrom
feat/licenses-and-followups

Conversation

@Brooooooklyn

Copy link
Copy Markdown
Contributor

Summary

Follow-ups to #448: items 2 to 9 of its owner list.

Item Change
2 packages/trl/README.md: the custom training loop awaits trainStep and counts each step once. Nine more examples in that README now use the real API. All 14 examples type-check.
3 Docs: Hy4-flash and Qwen3.8-Flash-Next take images through their mmproj file. They are no longer called text only.
4 Portato: a Licenses tab in Settings (and in ⌘K), built from Arc components.
5 vp fmt on the two Cargo.toml files. Repo-wide vp fmt --check exits 0.
6 mlx serve --help and docs/cli.md name every family each flag applies to, with each family's limits and defaults.
7 Website: the Arc Pro lightbox returns focus to its thumbnail after Escape, Close or a backdrop click.
8 No change. website.yml from #448 already runs check-samples.
9 Website mocks: the capture folder is mapped to /path/to/todo-lib in every string. A check fails if a capture path is left.

Licenses tab

vite build ─ main bundle ─┐
           └ worker ──────┼─▶ collector ─▶ third-party-licenses.json (238 KB, cap 400 KB)
fonts, grammars,          │              └▶ third-party-notices.txt
vendored code, overrides ─┘
Settings ▸ Licenses ── fetch over app:// when the tab opens (no license text in the main chunk)
  • 113 entries: Portato, 68 interface packages and the bundler runtime, 5 fonts, 29 grammars, 9 adapted files.
  • The build fails when a shipped item has no non-empty license text, when an override is stale, or when a license expression is not allowed. The expression is parsed (AND, OR, WITH, parentheses), not split.
  • The allow list holds SPDX ids only. Three reviewed exceptions are approved one entry at a time: Liberation Sans, Arc Pro and the TOML grammar.
  • Components: Arc Tabs, SearchField, Select, Badge, EmptyState, Alert and Button, and the app's Disclosure and CodePanel. Three opt-in props were added: Disclosure.stickyTop, CodePanel.keepToggleInPlace and Arc Select.menuWidth (recorded in PROVENANCE.md). Other callers are unchanged.
  • Main chunk: 3,291,298 B (cap 4,000,000). Worker: unchanged.

How it was checked

  • yarn typecheck, repo-wide vp fmt --check and vp lint --type-aware --type-check.
  • Tests: dashboard and CLI, 7,354 passed, with a throwaway HOME.
  • The site: build, the 4 checks and tsc.
  • Licenses tab:
    • The real app:// handler in Electron, packaged and dev layouts: 200, application/json, no CSP block.
    • Each build-failure rule fires on a planted fault.
    • License texts compared with upstream at the pinned commits.
    • The dev harness at 720×480, 1180×800 and 1440×900, light and dark, by keyboard. A design review was done, and its findings are fixed.
  • Lightbox: 12/12 focus cases fail before the fix and pass after it, in Chromium and WebKit.
  • One Codex adversarial review. All 6 findings were reproduced and fixed: Windows paths, the SPDX parser, the Vite runtime notice, empty texts, the Liberation pin and the --max-context limits.

Owner items (not changed here)

  1. Liberation Sans source offer. The app ships pdf.js's four Liberation Sans 1.07.4 fonts (GPL-2.0 with the font exception). This was true before this PR. GPLv2 §3 asks for the source with the binaries, or a written offer. A link to the upstream commit is neither. The options:
    • Ship or host the 2.8 MB source tarball.
    • Add a written offer.
    • Move to Liberation 2.x (OFL). This needs a pdf.js patch.
    • Stop shipping the fonts.
  2. The README pictures images/portato-work-{light,dark}.webp still show /private/var/tmp/todo-lib. New pictures need a new isolated run.
  3. Not done in this PR:
    • Stage B: the 59 Node packages that the desktop app stages.
    • Electron and Chromium notices in the macOS .app.
    • The native addon's crate notices.
    • The mlx-agent license assets.
  4. The "Int8 queries" section of docs/models.md still says 7,168 tokens. The code says 256 (since feat: Qwen3.5 dense deep-context speed (32-token key pages, DFlash2 lanes), Flash Next partial-store decode, app wait states #389).
  5. At 720 px, license text lines break short. A fix changes padding that every CodePanel user shares.

🤖 Generated with Claude Code

Brooooooklyn and others added 6 commits December 1, 2026 00:59
The Control Panel's Settings gets a Licenses tab (and a command palette entry). A Vite plugin collects the license text of every package in the UI and highlighter-worker bundles, the fonts, the TextMate grammars, the bundler runtime and the vendored code into third-party-licenses.json and a plain-text twin; the tab fetches the JSON over app:// when it opens. The build fails when a shipped item has no non-empty license text, when a license expression is not on the SPDX allow list (parsed, not split), or when an override goes stale. Reviewed exceptions (Liberation Sans, Arc Pro, the TOML grammar) are approved per entry.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Closing the Arc Pro lightbox focused a thumbnail that was still hidden, so focus fell to the page body; the viewer state now flushes before focus moves. The recorded Portato run maps the capture's Work folder to /path/to/todo-lib in every string, and check-portato-mock fails if a capture path is left.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
mlx serve --help and docs/cli.md now name every family that takes the SSD cache flags, --max-memory, --max-context (with each family's ceiling), --kv-format, --decode-share and --activations, with Inkling-2's own defaults, and the int8-query start of 256 tokens. The CLI reference also lists the Flash-Next and Hy4-flash vision projector files.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Hy4-flash and Qwen3.8-Flash-Next take images through their mmproj file; the docs no longer call them text only. docs/dashboard.md covers the Licenses tab. The packages/trl README examples now type-check: the custom training loop awaits trainStep and counts each step once, and the reward, dataset, config and loader examples use the real API.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The real-sources check counted licenses.tsx and licenses.ts as license files. It now compares the whole stem, as the collector does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Nov 30, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

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: 636b1f3c-d0ab-42cf-8bd8-7bf5565a265b

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • 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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-30T17:03:37.662392Z 2a1046d PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Brooooooklyn
Brooooooklyn merged commit 2c0f5a4 into main Dec 1, 2026
22 checks passed
@Brooooooklyn
Brooooooklyn deleted the feat/licenses-and-followups branch December 1, 2026 02:06
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