The console uses one default page size and one IPv6 parser #198

Closed
opened 2026-10-31 12:42:24 -04:00 by claude · 0 comments
Owner
  • Draft: BUG-15
  • Priority: low
  • Agent: mechanic
  • Depends on: none
  • Decisions: none

Why

  • 29 list components each declare their own PAGE_SIZE constant (grep PAGE_SIZE\s*=).
  • Two private parseIpv6 copies exist (features/zones/records/record-type-forms/apl-record-form/apl-cidr.util.ts:51, features/dhcp/shared/dhcp-option-value.util.ts:47) next to the shared src/angular/src/app/shared/ip-address/ip-address.util.ts.

What changes

  • Export one DEFAULT_PAGE_SIZE from a shared file and use it where the value is the same. Leave a list that needs another size alone, with a comment.
  • Move parseIpv6 into ip-address.util.ts with specs, and import it from both places. #194 (RA prefix editor) uses the shared parser.

Acceptance

  • All specs pass, with new specs for the shared parser (compressed ::, IPv4-embedded, invalid input).
  • The Angular gate is clean.

Source

u-design.md:222 (nice-to-haves).

- **Draft:** BUG-15 - **Priority:** low - **Agent:** mechanic - **Depends on:** none - **Decisions:** none ### Why - 29 list components each declare their own `PAGE_SIZE` constant (grep `PAGE_SIZE\s*=`). - Two private `parseIpv6` copies exist (`features/zones/records/record-type-forms/apl-record-form/apl-cidr.util.ts:51`, `features/dhcp/shared/dhcp-option-value.util.ts:47`) next to the shared `src/angular/src/app/shared/ip-address/ip-address.util.ts`. ### What changes - Export one `DEFAULT_PAGE_SIZE` from a shared file and use it where the value is the same. Leave a list that needs another size alone, with a comment. - Move `parseIpv6` into `ip-address.util.ts` with specs, and import it from both places. #194 (RA prefix editor) uses the shared parser. ### Acceptance - [ ] All specs pass, with new specs for the shared parser (compressed `::`, IPv4-embedded, invalid input). - [ ] The Angular gate is clean. ### Source `u-design.md:222` (nice-to-haves).
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.

Dependencies

No dependencies set

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