Repository navigation
frontend: align strict lint and type safety - #2723
malinskibeniamin wants to merge 4 commits into
Conversation
|
@claude review |
|
Claude finished @malinskibeniamin's task in 1m 7s —— View job Review: frontend: enable biome 2.6.7 lint rules
I found no blocking issues. Almost all of the 95 files are mechanical ( ✅ Behaviour changes I checked
🟡 Readability
🟢 Config and suppressions
Not doneI only read the code. I did not run lint, type-check or tests in this job; I relied on the checks listed in the PR description. |
🚨 Registry drift detectedApp:
Components needing attention
Refresh command: bunx shadcn@latest add @redpanda/accordion @redpanda/alert @redpanda/alert-dialog @redpanda/avatar @redpanda/badge @redpanda/badge-group @redpanda/breadcrumb @redpanda/button @redpanda/calendar @redpanda/card @redpanda/chart @redpanda/checkbox @redpanda/code-block @redpanda/combobox @redpanda/command @redpanda/copy-button @redpanda/count-dot @redpanda/data-table @redpanda/data-table-filter @redpanda/dialog @redpanda/drawer @redpanda/dropdown-menu @redpanda/dropzone @redpanda/empty @redpanda/field @redpanda/form @redpanda/icons @redpanda/input @redpanda/input-group @redpanda/item @redpanda/kbd @redpanda/key-value-field @redpanda/label @redpanda/list-layout @redpanda/multi-select @redpanda/popover @redpanda/progress @redpanda/radio-group @redpanda/redpanda-logo @redpanda/resizable @redpanda/select @redpanda/separator @redpanda/sheet @redpanda/sidebar @redpanda/skeleton @redpanda/slider @redpanda/spinner @redpanda/stat @redpanda/status-badge @redpanda/status-dot @redpanda/stepper @redpanda/switch @redpanda/table @redpanda/tags @redpanda/textarea @redpanda/theme @redpanda/theme-provider @redpanda/toast @redpanda/toggle-group @redpanda/tooltip @redpanda/typography @redpanda/waiting-redpanda --overwriteGenerated by lookout audit-changes. |
095b35d to
20ecb39
Compare
|
Note 🤖 GPT-6.1 Sol responding on behalf of malinskibeniamin Addressed the readability feedback in
Fresh |
20ecb39 to
9b10b4b
Compare
|
Note 🤖 GPT-6.1 Sol responding on behalf of malinskibeniamin Addressed all code-review findings in
Also upgraded Ultracite to 8.1.1, removed its obsolete patch, and aligned Oxlint/Node compatibility. Fresh frozen install, doctor, lint, application/test types, full unit/integration/federation suite, and both production builds pass; existing lint warnings remain. The advisory registry audit reports pre-existing upstream version drift, with no local registry edits. Registry refreshes remain outside this tooling PR, consistent with root |
malinskibeniamin
left a comment
There was a problem hiding this comment.
Automated /review: 2 finding(s).
9b10b4b to
23b8c72
Compare
ab122f4 to
c466543
Compare
malinskibeniamin
left a comment
There was a problem hiding this comment.
Automated /review: 3 finding(s).
c466543 to
8f788d1
Compare
Make unsafe values, detached promises, and inconsistent UI styling fail frontend checks rather than reach runtime. Upgrade Biome to 2.6.8 and Ultracite to 8.1.1, align Oxlint's runner and plugin types, and enforce warning-free typed, syntax, and CSS policies. Migrate affected consumers and extract legacy API domains without changing the transport or host contracts. Validate persisted settings, preserve numeric fallback and message semantics, and retain the legacy federation default exports. Map controlplane TLS certificates explicitly instead of asserting incompatible messages into the wire schema. Review new and promoted rules across Biome 2.6 and the Ultracite upgrade. Include authored UI helpers, Sass, YAML and Markdown without formatting literal documentation examples. Record contract and runtime exclusions explicitly, and add the forwarded-effect state guard. Enable the relevant 2.6.8 rules and strengthen call assertions with expected arguments. Await every parallel secret-creation outcome rather than only the latest mutation callback. Keep generated and registry sources unchanged. Cover API failures, ordered asynchronous work, persistence, and public exports with regression tests and exercise real production bundles in native browsers.
8f788d1 to
9d6b393
Compare
|
@claude review |
|
Claude finished @malinskibeniamin's task in 58s —— View job Review: frontend: align strict lint and type safety
Verdict: not ready to merge. The three findings from the 2026-11-17 automated review are still in the code at 🔴 Still open1. P1: the Schema Registry contract rejects
Before this PR the UI showed "UNKNOWN" in that case. With this PR, a registry without per-subject
export const registryModeWithDefaultSchema = registryModeSchema.or(z.enum(['DEFAULT', 'UNKNOWN']));
export const registryCompatibilityWithDefaultSchema = registryCompatibilitySchema.or(z.enum(['DEFAULT', 'UNKNOWN']));Then widen the matching TS types and add a regression case to 2. P2: usages: z.array(usageSchema).nullish().transform((u) => u ?? []),3. P2: a failed delete-by-timestamp on one partition fails silently. See onResponse(await api.deleteTopicRecords(topicName, partitionOffset, specifiedPartition));
return;✅ Checked and fine
Not done
|
|
@claude review |
|
Claude finished @malinskibeniamin's task in 36s —— View job Review: frontend: align strict lint and type safety
Verdict: all three open findings are fixed in ✅ Previously open, now fixed
🟢 Minor notes (non-blocking)
✅ Still fine from earlier rounds
Not done
|
malinskibeniamin
left a comment
There was a problem hiding this comment.
Automated /review: 1 finding(s).
GetClusterHealth is only served when the Redpanda Admin API backs the debug-bundle service. On OSS builds and Kafka clusters every topic-list refresh, including the one after a successful delete, showed an "Action failed" toast. Match the overview, topic details and create dialog callers, which already treat this refresh as best-effort. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The lint migration inserted imports above the license header in 74 files. Move them back below the header; import order and module evaluation order are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Upgrade Console UI to Biome 2.6.8 and Ultracite 8.1.1, enforcing types, async safety and UI policies across authored frontend sources.
frontend/scriptstracked for downstream image builds. Rebased onto master, preserving cluster fencing, failover and the topic READ guard.47eb142e, as did hosted downstream Enterprise E2E and the full image build. Onb6b0c0b4, lint/types and the 22 affected test files pass locally (95 integration + 124 unit tests), and all hosted checks pass, including Enterprise E2E and the image build. The new topic-list regression test fails on47eb142e.Recent-rule audit and explicit applicability decisions
Reviewed every published 2.6.0–2.6.8 schema and release note, including all 209 configurable additions after the repository's 2.6.2 baseline, 59 promotion events, rule options and scoped overrides. Across that wider range, 260 added configuration names comprise 259 new rules plus one rename: 128 are enabled, 119 target unused frameworks, and 13 have the explicit decisions below. No item remains unreviewed. Ultracite 8.0.2–8.1.1 changes were also checked. The KIP-848 rebase preserves master’s Members tab/sort state, Type/State filters, status-dot lifecycle tooltips and required group type/optional epoch/member fields in the typed API domain.
The 2.6.8 delta contains 25 rules: 16 enabled, seven Vue and one Drizzle rule inapplicable, and one Tailwind denylist rule deliberately off.
noTailwindRestrictedClassesnoUnsafeReturnnoNull,noDynamicDelete,noMapSpreadnoDisabledAttributenoScssNullComparisonfalseandnullare distinct.noShortTimeValuesuseConsistentBooleanName,noDanglingUnderscorenoPlaywrightNthMethodsuseIteratorZip,usePackageJsonCpuThe added SCSS, YAML, Markdown, forwarded-state and all 16 newly enabled 2.6.8 checks have executable positive/negative regression probes. Strengthen 99 call-only test assertions without dropping counts, negatives or completion waits.
useSpyOnsupports Jest/Vitest-style spellings but does not recognize bare Rstestrs.fn; the call-match rules do recognize Rstest. No new Biome JavaScript plugin is needed for existing policies. Markdown/YAML formatting and embedded Markdown code analysis stay off to preserve literal documentation/configuration examples. CSS Modules retain valid:global/:localsyntax. Three secret-fixture test files retain literal${secrets.NAME}strings through a narrowly scoped interpolation-rule exception.Bun’s 72-hour release-age filter was overridden for this requested version only (
--minimum-release-age 0); project policy remains unchanged. Frozen install passes; the version-specific OSV lookup returned no advisories. Upstream performance improvements are included, but no Console-specific speedup is claimed.Primary references: Biome 2.6, 2.6.8 changelog, Ultracite 8.1.1 release. The schema audit also covers rules omitted from release announcement counts.