Repository navigation
feat(platform): pick an API key's expiry date and show it in the table - #4495
Conversation
DatePicker takes minDate/maxDate (days outside are disabled and read "Not available" in the UI language) and forwards id, aria-labelledby and aria-describedby to its trigger, which dropped them before.
The create dialog offered 7/30/90 days, a year or never, and the date a key stopped working was shown nowhere. Expiration now adds Custom date, a calendar bounded to tomorrow through a year from today (the api-key plugin's window), and names the day the key expires under the field. The keys table gets an Expires column: the date, Never, or Expired for a key that ran out while the list was open.
|
REQUEST CHANGES — reviewed head
Part B dispositions: SECURITY: UNAVAILABLE for comprehensive expiry-enforcement proof, not an observed bypass. Part A dispositions: A11Y: source assessment supports forwarded trigger id/name/description, named unavailable days, native buttons and clear-button focus return; real keyboard/assistive interaction remains NOT_RUN. LOCALE: PASS for changed-key and ICU argument parity in en/de/fr (the new date interpolation is
Check query: Other risk dispositions: PERFORMANCE/RESOURCES: NOT_APPLICABLE to a dedicated benchmark in this bounded review (constant-time date helpers and one column; no new service/resource lifecycle); runtime measurement NOT_RUN. DEPLOYMENT/RECOVERY: NOT_APPLICABLE — no deployment, persistence schema, backup or restore change. PROVIDERS: NOT_APPLICABLE — no provider/connector/harness contract changes; existing auth-library proof gap remains SECURITY. OBSERVABILITY/WORKFLOW: NOT_APPLICABLE to changed implementation — no telemetry or task/run automation change. This targeted review does not replace platform-wide coverage. |
Nothing outside the expiry helpers reads the 365-day ceiling, and Knip refuses an export no module imports.
|
REQUEST CHANGES — API-only re-review of
Prior finding 3: Knip defect CLOSED at New repair issues, Part A and Part B: none identified in the one-line export removal. It changes no runtime behavior, UI, locale, data schema or dependency. I inspected the complete base-to-head diff (22 files) and exact-head changed-source context. The earlier Part A/Part B limitations remain: A11Y labels/descriptions and bounds are supported by source, but keyboard/assistive, responsive/theme renders, live expiry transition and manual SET-F76 execution are NOT_RUN in this API-only slice. EN/DE/FR changed-key and CICD snapshot: one complete
Next owner: PR implementer repairs findings 1–2 and adds their regressions; existing CI owner/lane checks the three unfinished terminal gates after the current work settles. Successful child jobs are not substitutes for those gates, and the four PASS entries do not attest to fresh execution of every cached task. No clone, local tests, install, build, push or merge was performed. |
First of three PRs for the API-key request: a key's expiry date can now be chosen and is shown in the table. Keys for members, teams, projects and the organization, and the project budget scope, follow in separate PRs stacked on this one.
Why
The Create API key dialog only offered 7, 30 or 90 days, a year, or never. You could not pick a date, and after creation the expiry appeared nowhere in the UI.
What changes
@tale/uiDatePickergainsminDate/maxDate. Out-of-range days are disabled and their label reads "Not available" in the UI language instead of react-datepicker's built-in English. The trigger now receivesid,aria-labelledbyandaria-describedby; before this change it silently dropped them, so no visible label could name it.SET-F76are updated.Verification
apikey.expiresAt − createdAt = 90.000 d).11/20/2026in Expires.@tale/uidate-picker: 22 tests.@tale/uii18n suites.lint:links,lint:manual,check-guideonsettings.md.tscfor the platform and@tale/ui.Not in this PR
The docs screenshot
settings-api-keyspredates the new hint line. Its alt text and the fields it shows are still accurate. It is retaken in the follow-up PR, which reshapes this dialog with an owner picker.