Skip to content

Migrate produce record to UI registry#2507

Open
jvorcak wants to merge 6 commits into
masterfrom
migrate-produce-record-to-ui-registry
Open

Migrate produce record to UI registry#2507
jvorcak wants to merge 6 commits into
masterfrom
migrate-produce-record-to-ui-registry

Conversation

@jvorcak

@jvorcak jvorcak commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator

Needs to merge #2486 first

Screenshot 2026-07-17 at 15 30 55

jvorcak added 3 commits June 16, 2026 10:44
Replace legacy @redpanda-data/ui components with Registry equivalents
(Field, Select, Input, Button, Alert, typography) and react-hook-form +
Zod validation. Use standardized KeyValueField for Kafka headers. Convert
the PageComponent class to a functional component using setPageHeader and
useApiStoreHook for store reactivity.
Replace legacy @redpanda-data/ui components with Registry equivalents
(Dialog, Choicebox, Select, Slider, Alert, Input, Button, Spinner,
typography) and sonner toast. Remove the now-unused SCSS module in favor
of Tailwind. Business logic, the 2-step wizard, and the props interface
are unchanged, so callers need no edits.
@jvorcak
jvorcak marked this pull request as ready for review June 23, 2026 12:20
@github-actions

Copy link
Copy Markdown
Contributor

Clean — no registry drift, off-token colours, or ad-hoc classes

App: frontend · Scope: diff vs origin/master · Files: 3

Count
⚠️ Outdated registry components 0
🛠 Locally-modified components 0
❓ Unknown to registry 0
🎨 Off-token palette colours 0
🔢 Ad-hoc utility classes 0

Generated by lookout audit-changes.

jvorcak and others added 2 commits July 17, 2026 15:12
The registry Button is built on Base UI and has no asChild prop. Use
render with the TanStack Link element instead, since the `as` shorthand
only forwards `to` and this link needs params and search.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@jvorcak
jvorcak requested a review from a team July 17, 2026 13:31
return (
<div className="flex items-center gap-4">
<TrashIcon />
<Text variant="muted">{children}</Text>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 general comment across the entire PR.
Now that <Text> and <Heading> are deprecated, lets ask Claude to replace them with the new text-utility class pattern

}
return (
<div className="flex flex-col gap-2">
<Heading level={1}>Produce Kafka record</Heading>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor: In the UI we are saying "Produce" then "Produce Kafka record" right below, which feels like we can maybe remove the first "Produce" line.

Image

@SpicyPete SpicyPete left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Lets not add new <Text and <Heading components in this and prefer text-utility classes
  2. The Delete Records model is a bit confusing to me.
    2a. It's not clear this is a multi-step dialog, and since the action is destructive red it seems like it may cause a destructive action. Suggest we make the steps more clear (or that there are multiple steps) at a dialog level
    2b. Perhaps we can show the selected Topic Name in the dialog text itself as opposed to always "your topic"

3a. The manual offset only has the low number labeled, and some small alignment issues.
3b. In the top text we are saying "choose the new low offset for your selected partitions", but in the previous step we can only select 1 partition, so maybe shouldn't be plural?
3c. Showing the raw timestamp is likely correct, but it might be better for usability if we also show the human readable date.
4. Minor: The produce record page feels very spaced out, but redoing this page is likely beyond scope of the PR.

Just checked this against the current version, and it's much better now, even without the above requests

Figures

2a / 2b
Image
3a
Image
3c
Image

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.

2 participants