ui-react: the recordings tray and the associate dialog import each other for two label helpers
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 78/100
- Tipo di issue
- Refactoring
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- bun, typescript
- Ambito
- developer-experience, tooling
Direzione di ricerca
Leggi packages/ui-react/src/components/voice/recordings-tray.tsx, associate-recordings.tsx e la allowlist in scripts/check-import-cycles.ts. Sposta i due helper per le etichette in recording-labels.ts, aggiorna entrambi gli import e rimuovi dalla allowlist la voce recordings. Esegui i test runtime indicati e bun run lint; il lavoro è completo quando gli helper sono invariati, il controllo dei cicli passa senza quella voce e il report API resta identico byte per byte.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Context
Blocked by #4816
packages/ui-react/src/components/voice/recordings-tray.tsx:2 imports AssociateRecordings, and components/voice/associate-recordings.tsx:5 imports recordingClock and recordingDuration back from the tray. The two helpers are pure label functions of a Recording (recordings-tray.tsx:18-26) that happen to be declared in the tray; nothing about them belongs to either component. The pair is one of the runtime import cycles #4816 reports and allowlists.
Two other cycles outside ui-server and ui-sdk are deliberately not cut: components/chat/brain-markdown.tsx ↔ share-block.tsx (a share block renders Markdown, which can contain a share block) and module-diagrams/src/geometry.ts ↔ axis-layout.ts (a nested flowchart is laid out by the main builder). Both are mutual recursion by design, each partner is read only inside a function body, and cutting them would mean a render prop or an injected builder whose only purpose is to satisfy the gate. #4816 keeps them as permanent allowlist entries.
Scope
- Move
recordingClockandrecordingDurationto a leafcomponents/voice/recording-labels.ts; both components import it. - Remove the recordings entry from the allowlist in
scripts/check-import-cycles.ts.
Out of scope
- The share-block and diagrams cycles (kept by design, see Context).
- Any change to what the tray or the dialog renders, including label wording.
- The ui-server and ui-sdk cycles (#4818, #2530).
Acceptance criteria
-
git grep -n 'from "./recordings-tray.js"' -- packages/ui-react/src/components/voice/associate-recordings.tsxreturns nothing. -
bun run lintpasses with no recordings entry in the import-cycle allowlist. - Mutation recorded in the PR: re-add the import of
recordingClockfrom./recordings-tray.jsinassociate-recordings.tsx, watch the import-cycle gate fail naming both files, restore. - The two moved functions are byte-identical apart from their file (
git diff --color-moved). -
packages/ui-react/tests/association-signout-runtime.test.tsanddictation-selection-runtime.test.tspass with no edit, andpackages/ui-react/tests/browser/recordings-tray.offline.tsxpasses in the pinned browser. -
api-report/ui-react.txtis byte-identical.
Verification
bun run test packages/ui-react/tests/association-signout-runtime.test.ts packages/ui-react/tests/dictation-selection-runtime.test.ts
bun run test:browser
bun run lint
NODE_OPTIONS=--max-old-space-size=6144 bun run typecheck
bun run api-report
bun run check:pr --base origin/main
Contract impact
- This touches the integration contract, so it needs the
contractlabel, aCONTRACT:commit prefix, and the doc updated in the same commit. - This changes a published package's behaviour, so it needs a changeset.
Two internal helpers move between files inside @schlessera/brain-ui-react; no exported name or rendered output changes.
Found by a repository audit on 2026-11-26 (main 87b96b10c); independently reviewed before filing.
- Lingua principale
- TypeScript
- Stelle
- 5
- Fork
- 0
- Merge medio
- 8h 3m
- PR unite (30g)
- 606
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di schlessera/brain-kit
-
agent-ready area: ui-server priority: p3 type: refactor
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
schlessera/brain-kit#4833 ·
I maintainer di solito rispondono entro 1 giorno
-
ui-sdk: the turnId doc comment tells client authors echoing is optional, which a rev 3 host refusesApertaagent-ready area: ui-sdk priority: p3 type: docs
Difficoltà 1/5 1-3 ore Idoneità per principianti 86/100
schlessera/brain-kit#4824 ·
I maintainer di solito rispondono entro 1 giorno
-
jobs: every command writes on open, so a read fails with "database is locked" during a long writeApertaagent-ready area: modules priority: p2 type: fix
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
schlessera/brain-kit#4809 ·
I maintainer di solito rispondono entro 1 giorno
-
agent-ready area: ui-server priority: p3 type: fix
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
schlessera/brain-kit#4807 ·
I maintainer di solito rispondono entro 1 giorno
-
agent-ready area: ui-server priority: p2 type: refactor
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
schlessera/brain-kit#4806 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di schlessera/brain-kit
Issue simili
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:auth-provider issue-rating: 🦞 diamond lobster no-stale P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
openclaw/openclaw#206303 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
eliasstravik/herdr-projects#1604 · 1 commento ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
golang-malawi/qatarina#502 ·
I maintainer di solito rispondono entro 2 giorni