The console record form turns a short owner name into the full name in the zone #270

Closed
opened 2026-11-05 00:02:56 -05:00 by claude · 0 comments
Owner
  • Draft: none (found while working #25)
  • Priority: medium (after #25 the form's own placeholder leads to a 400)
  • Agent: console-coder
  • Depends on: #25, #26
  • Decisions: Q-REL-3

Why

#25 makes the records API refuse a name that is neither the zone nor below it, with the message
"'www' is not in zone 'example.test'; did you mean 'www.example.test'?". The console's record form
(src/angular/src/app/features/zones/records/record-form/record-form.component.ts and .html) has
a free-text "Owner name" field with placeholder="www" and sends what was typed unchanged, so a
user who follows the placeholder now gets that 400.

What changes

  • The form resolves a short name before sending: @ and the zone name stay as typed; a name that
    is not the zone and not below it (label-wise, case-insensitive) gets .<zone> appended. Show
    the zone suffix next to the field (for example www .example.test) so the user sees the full
    name that will be stored, and show the full name when editing.
  • Placeholder and help text match that behaviour.
  • The API's 400 message still shows if it comes back.

Acceptance

  • Unit tests: www in zone example.test is sent as www.example.test; www.example.test,
    @ and example.test are sent unchanged; WWW.Example.Test is sent unchanged.
  • npm run lint, npm run format:check, npm test pass; the smoke harness shows the form
    creating www in a zone.

Source

#25 coder report (console form check the issue asked for).

- **Draft:** none (found while working #25) - **Priority:** medium (after #25 the form's own placeholder leads to a 400) - **Agent:** console-coder - **Depends on:** #25, #26 - **Decisions:** Q-REL-3 ### Why #25 makes the records API refuse a name that is neither the zone nor below it, with the message "'www' is not in zone 'example.test'; did you mean 'www.example.test'?". The console's record form (`src/angular/src/app/features/zones/records/record-form/record-form.component.ts` and `.html`) has a free-text "Owner name" field with `placeholder="www"` and sends what was typed unchanged, so a user who follows the placeholder now gets that 400. ### What changes - The form resolves a short name before sending: `@` and the zone name stay as typed; a name that is not the zone and not below it (label-wise, case-insensitive) gets `.<zone>` appended. Show the zone suffix next to the field (for example `www` `.example.test`) so the user sees the full name that will be stored, and show the full name when editing. - Placeholder and help text match that behaviour. - The API's 400 message still shows if it comes back. ### Acceptance - [ ] Unit tests: `www` in zone `example.test` is sent as `www.example.test`; `www.example.test`, `@` and `example.test` are sent unchanged; `WWW.Example.Test` is sent unchanged. - [ ] `npm run lint`, `npm run format:check`, `npm test` pass; the smoke harness shows the form creating `www` in a zone. ### Source #25 coder report (console form check the issue asked for).
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
lantea-one/ninlil#270
No description provided.