Custom expiry times #48

Closed
opened 2026-09-09 02:32:39 +00:00 by poslop · 1 comment
Owner

The Expiry section in the new page should support custom times beyond the fixed presets (Never/1h/1d/1w/30d): a 'Custom' option that reveals an input for a number + unit selector (minutes/hours/days/weeks/months). API already accepts arbitrary Go-duration expires_in values, so this is mostly UI: validate sensibly (min 1 minute, max maybe 1 year), pass through as duration string.

The Expiry section in the new page should support custom times beyond the fixed presets (Never/1h/1d/1w/30d): a 'Custom' option that reveals an input for a number + unit selector (minutes/hours/days/weeks/months). API already accepts arbitrary Go-duration expires_in values, so this is mostly UI: validate sensibly (min 1 minute, max maybe 1 year), pass through as duration string.
Author
Owner

Implemented in 127c12c + 15ce7ff: Custom radio reveals number+unit select (minutes/hours/days/weeks/months, months=30d); client-side validation 1min-1year with inline error; composed Go-duration string sent as expires_in; presets unchanged. Verified in-browser.

Implemented in 127c12c + 15ce7ff: Custom radio reveals number+unit select (minutes/hours/days/weeks/months, months=30d); client-side validation 1min-1year with inline error; composed Go-duration string sent as expires_in; presets unchanged. Verified in-browser.
poslop added spent time 6 seconds 2026-09-09 05:00:48 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Total Time Spent: 6 seconds
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: poslop/palette#48