Skip to content

ref(issues): Use scraps primitives in custom archive duration modal - #131027

Draft
sentry-junior[bot] wants to merge 2 commits into
masterfrom
ref/scraps-custom-ignore-duration-modal
Draft

sentry-junior[bot] wants to merge 2 commits into
masterfrom
ref/scraps-custom-ignore-duration-modal

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

The "Archive this issue until…" modal (Archive › For… › Custom) no longer uses the legacy form-horizontal, control-group, nav-header, and form-control classes. The layout is now Stack, and the Date / Time (UTC) headings are Text as="label" elements tied to their inputs with htmlFor, so the inputs have accessible names. Ids, refs, required, and the submit logic are unchanged. A new spec covers the label wiring, a valid archive, and the past-date warning.

The .form-horizontal and .nav-header rules are deleted from static/less. This modal was their only user: nothing in static/app, static/gsApp, static/gsAdmin, static/packages, sentry's src/ templates and Python, getsentry, or the crispy-forms bootstrap3 templates references them. The only other form-horizontal hits are DRF's browsable API templates. Sentry doesn't enable that renderer (it only uses JSONRenderer), and those templates ship their own bootstrap CSS anyway.

.control-group stays for now because static/gsAdmin/components/provisionSubscriptionAction.tsx still uses it. That file is being converted in a separate PR, and the rule can be deleted once both PRs land. .m-b-1 and .form-control are still used by Django templates and stay as well.

Visual change: the labels now use the muted (secondary) text color instead of the lighter legacy gray, and the modal is about 4px shorter because the old m-b-1 bottom margin is gone.

Screenshots

I took before (master) and after (this branch) screenshots of Issue details › Archive › For… › Custom at the same framing on a local devserver, and pixel-diffed them: they differ only in the label color and the ~4px height change described above. They aren't attached yet because uploading them with gh --attach needs a GitHub user authorization that this session couldn't start.

via malachi.

--

View Session [Sentry]

Replace the legacy form-horizontal, control-group, nav-header, and form-control
classes in the archive-until modal with Stack and Text primitives, and give each
input a label. Delete the now-unused .form-horizontal and .nav-header LESS rules.

Co-Authored-By: Malachi Willey <malachi.willey@sentry.io>
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Nov 13, 2026
…gnore-duration-modal

# Conflicts:
#	static/css/shared-components.css
#	static/css/shared/forms.css

This branch was successfully deployed

1 active deployment
Preview — f47983bd Deployed Nov 13, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants