Repository navigation
Conversation
Second slice of #5764. The design system stylesheet is now linked from the three live layouts (bank app, partner portal, sign-in/devise), after every other stylesheet. No page changes: 24 of 25 screenshotted pages across signed-out, bank, super admin and partner users are pixel-identical before and after. The 25th, /admin/dashboard, also differs between two runs of the same build because it shows live data. The design branch never put both on one page: each migrated area moved to a new Tailwind-only layout with its own navigation. Loading both is what lets later slices bring the design system in one concept at a time (tokens, buttons, tables, forms...) without moving buttons or changing navigation. The rules that make it safe: - No Preflight (slice 1). Bootstrap's Reboot keeps owning element defaults. - No class collisions. Scanning today's views as-is would emit about 90 utilities that Bootstrap/AdminLTE also define, with different meanings (`mb-3` is 0.75rem vs 1rem; Tailwind's `collapse` is visibility: collapse and would hide every open Bootstrap collapsible). design_system_build_spec now fails on any class both stylesheets define; checked against a planted `mb-3` and `collapse`. - Tailwind's output is in cascade layers and Bootstrap is unlayered, so any property both set goes to Bootstrap. Also fixes a deploy-breaker the design branch only half-diagnosed: outside development, sassc-rails defaults css_compressor to :sass (production.rb only comments the line out), and libsass raises on Tailwind v4 output, so `assets:precompile` would fail. TailwindSafeCssCompressor skips the Tailwind build, which the CLI already minifies, and hands everything else to the same Sass compressor. The compiled Bootstrap application.css is byte-identical to before (same SHA-256 in test), and a production precompile succeeds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UCzWYw6Gq5YdmU4MaiGnQa
This was referenced Nov 19, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #5764. Stacked draft PR 2 of 4, based on PR 1. Plan:
docs/design-system-slicing-plan.mdon thedesignbranchStack (review and merge in order; each PR shows only its own diff):
Description
Links the design system stylesheet from the three live layouts (bank app, partner portal, sign-in), after every other stylesheet. No page changes. I screenshotted 25 pages as four roles (signed out, bank user, super admin, partner). 24 are pixel-identical before and after. The 25th is
/admin/dashboard, which shows live data and also differs between two runs of the same build.The
designbranch never put both stylesheets on one page. Each migrated area moved to a new Tailwind-only layout with its own navigation. Loading both is what lets later PRs bring the design system in one concept at a time (tokens, buttons, tables, forms…) without moving buttons or changing navigation. What makes it safe:mb-3is 0.75rem in Tailwind and 1rem in Bootstrap, and Tailwind'scollapsewould hide every open Bootstrap collapsible. A new spec fails if any class is defined by both stylesheets. I checked that it catches a plantedmb-3andcollapse.Fixes a deploy-breaker. Outside development, sassc-rails defaults
css_compressorto:sass. libsass can't parse Tailwind v4 output, so a productionassets:precompilewould fail.TailwindSafeCssCompressorskips the Tailwind build, which the CLI already minifies, and hands everything else to the same Sass compressor. The compiled Bootstrapapplication.cssis byte-identical to before (same SHA-256), and a production precompile succeeds.Type of change
How Has This Been Tested?
bundle exec rspec spec/assets/design_system_build_spec.rbRAILS_ENV=production bundle exec rails assets:precompilemain.🤖 Generated with Claude Code
https://claude.ai/code/session_01UCzWYw6Gq5YdmU4MaiGnQa