Skip to content

Conversation

@pftg
Copy link
Member

@pftg pftg commented Sep 26, 2025

Summary by CodeRabbit

  • New Features

    • Added FAQs to multiple blog articles for quick answers.
    • Introduced reusable CSS utilities and consistent typography across rich text.
    • Enhanced grid, navigation, and pagination styling compatibility.
  • Accessibility

    • Added skip-link, screen-reader utilities, and improved focus-visible states.
  • Performance

    • Enabled cached loading for CSS bundles across key pages.
    • Added subresource integrity for diagrams and reduced inline CSS.
  • Style

    • Applied alignment utilities to CTAs, hero, services, testimonials, and use cases.
    • Updated logo styling and broadened responsive behaviors.
  • Documentation

    • Published a comprehensive Technical Debt Report.
  • Tests

    • Added extensive template coverage for 404, base, home, list, and single pages.

pftg added 30 commits September 26, 2025 11:48
…upport

- Convert .fl-form-field to dual-class .c-form-field, .fl-form-field
- Maintain 100% backward compatibility
- Part of systematic FL Builder CSS migration
…upport

- Convert input.fl-form-error to dual-class with c-form-error
- Extends c-form-field coverage to input error states
- Maintains 100% backward compatibility
- Convert .fl-widget to dual-class .c-widget, .fl-widget
- Enable modern widget component styling
- Maintains 100% backward compatibility
…pport

- Convert .fl-animation to dual-class .c-animation, .fl-animation
- Enable modern animation component styling
- Maintains 100% backward compatibility
…port

- Convert complex animation selectors to include dual-class patterns
- Add c-animated class for modern animation states
- Maintains 100% backward compatibility
…s support

- Convert standalone .fl-animated to dual-class pattern
- Complete animation-fill-mode properties dual-class support
- Maintains 100% backward compatibility
…lass pattern

- Add c-slideshow selector alongside fl-slideshow
- Include universal child selectors (c-slideshow *, fl-slideshow *)
- Maintains box-sizing: content-box for slideshow components
- Zero visual impact - maintains backward compatibility
…e selector

- Add c-slideshow .c-slideshow-image img alongside fl-slideshow .fl-slideshow-image img
- Maintains max-width: none !important for slideshow images
- Preserves nested selector functionality for both class prefixes
- Zero visual impact - maintains backward compatibility
… dual-class pattern

- Add c-slideshow-social selector alongside fl-slideshow-social
- Maintains line-height: 0 !important for social elements
- Preserves important styling for social media integration
- Zero visual impact - maintains backward compatibility
…versal selector

- Add c-slideshow-social * alongside fl-slideshow-social *
- Maintains margin: 0 !important for all child elements
- Completes slideshow social element styling migration
- Zero visual impact - maintains backward compatibility
…ts to dual-class

- Add c-col:before, c-col:after alongside fl-col:before, fl-col:after
- Maintains clearfix functionality for grid layout system
- Preserves display: table and content properties for pseudo-elements
- High-frequency class (47 occurrences) - critical grid structure
…er conversion

- Add c-col:after alongside fl-col:after in clearfix rule
- Maintains clear: both functionality for grid column structure
- Completes dual-class support for fl-col clearfix system
- Essential for grid layout float clearing mechanism
…ts to dual-class

- Add c-row:before, c-row:after alongside fl-row:before, fl-row:after
- Maintains clearfix functionality for row layout system
- Preserves display: table and content properties for pseudo-elements
- High-frequency class (31 occurrences) - critical grid structure
…er conversion

- Add c-row:after alongside fl-row:after in clearfix rule
- Maintains clear: both functionality for grid row structure
- Completes dual-class support for fl-row clearfix system
- Essential for grid layout float clearing mechanism
- Added .c-rich-text dual-class support to primary .fl-rich-text selector
- Maintains backward compatibility with FL-Builder content
- Typography system applies to both class variants
- Tier 1 CSS migration Phase 2 micro-change 1/5
- Added .c-content-text dual-class support to FL-Builder content block compatibility
- Maintains @extend .c-content-block__text functionality
- Enables modern .c-content-text usage alongside existing .fl-rich-text
- CSS Migration Phase 2 micro-change 2/N
…tance

- Added .c-content-text dual-class to font-weight inherit pattern
- Applies to *:not(b, strong) elements for consistent font weights
- Extends functionality that appears in 150+ places
- CSS Migration Phase 2 micro-change 3/N
…nu integration

- Added .c-menu alongside .fl-menu in navigation component
- Ultra-conservative ≤3 line change
- Tests passing: 39 runs, 57 assertions, 0 failures
…on items

- Added .c-menu-item alongside .fl-menu-item
- Ultra-conservative ≤3 line change
- Tests passing: 39 runs, 57 assertions, 0 failures
…uilder integration

- Created comprehensive pagination component with dual-class support
- Integrated .fl-builder-pagination with .c-pagination dual-class system
- Includes semantic component structure: item, link, current states
- Tests passing: 39 runs, 57 assertions, 0 failures
- Add u-text-center, u-text-left, u-text-right to test-cta.html
- Apply alignment utilities to test-hero.html button wraps
- Replace inline text-align styles with utility classes
- ✅ All tests pass with bin/rake test:critical
- Ultra-conservative approach: only test templates modified
- No production CSS or FL-Builder components touched

🎯 Progress: Safely validating utility class effectiveness
⚡ Impact: Demonstrating duplication reduction without risk
- Add u-text-center to category paragraph for consistent text alignment
- Add u-text-center to main heading for improved visual hierarchy
- Maintains FL-Builder class compatibility using additive approach
- All tests pass (39 runs, 57 assertions, 0 failures)
- Replace style="margin-top: 3rem" with u-margin-top-xl utility class
- Eliminates inline CSS in favor of consistent utility system
- Maintains identical visual spacing with reusable approach
- All tests pass (39 runs, 57 assertions, 0 failures)
- Apply u-text-center to heading, subheading, and description elements
- Creates consistent visual hierarchy with proper text alignment
- Maintains existing class compatibility using additive approach
- All tests pass (39 runs, 57 assertions, 0 failures)
- Add u-text-center to testimonial blockquote for consistent quote styling
- Add u-text-center to CTA title, description, and action elements
- Improves visual consistency across different page contexts
- Maintains existing CSS functionality with additive approach
- All tests pass (39 runs, 57 assertions, 0 failures)
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Sep 26, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

Adds FAQ front matter to several blog posts; updates Services description; introduces a comprehensive Technical Debt report doc; broad CSS/SCSS updates for utilities, accessibility, dual-class (.c-/ .fl-) compatibility, and pagination; switches many Hugo templates to cached CSS partials and tweaks base layout (removes inline CSS, adds Mermaid SRI); removes single-title block; adds extensive template/tests.

Changes

Cohort / File(s) Summary
Blog front matter FAQs
content/blog/best-practices-for-optimizing-ruby-on-rails-performance/index.md, content/blog/deploying-ruby-on-rails-applications-with-kamal-devops-docker/index.md, content/blog/mastering-ruby-on-rails-best-practices-for-efficient-development-in-2024/index.md, content/blog/rails-8-introducing-new-default-asset-pipeline-propshaft-ruby/index.md
Added YAML faqs entries (Q&A lists); one post also mirrors FAQs in body.
Services page copy
content/services/_index.md
Rewrote description to service-focused copy; metadata unchanged.
Technical Debt report doc
docs/comprehensive-technical-debt-report.md
New comprehensive Markdown report with roadmap, risks, metrics.
Template caching and layout updates
themes/beaver/layouts/baseof.html, themes/beaver/layouts/404.html, themes/beaver/layouts/home.html, themes/beaver/layouts/single.html, themes/beaver/layouts/careers/single.html, themes/beaver/layouts/clients/single.html, themes/beaver/layouts/page/about.html, themes/beaver/layouts/page/contact-us.html, themes/beaver/layouts/page/single.html
Switched CSS processor calls from partial to partialCached with cache keys; base layout removes inline CSS, adds Mermaid SRI/crossorigin; single layout removes custom title block.
Shortcodes and page test alignments
themes/beaver/layouts/shortcodes/cta.html, themes/beaver/layouts/shortcodes/testimonial.html, themes/beaver/layouts/page/test-cta.html, themes/beaver/layouts/page/test-hero.html, themes/beaver/layouts/page/test-service.html, themes/beaver/layouts/page/test-testimonials.html, themes/beaver/layouts/page/test-usecase.html
Added utility classes (u-text-, u-margin-) and removed an inline style to standardize alignment/spacing.
Accessibility and utilities CSS
themes/beaver/assets/css/accessibility-focus.css, themes/beaver/assets/css/components.css, themes/beaver/assets/css/components/css-utilities.scss
New/updated focus, skip-link, sr-only styles; added utilities import; introduced utility classes (margin, weight, text-align, display).
Typography and content components
themes/beaver/assets/css/components/_content-block.scss, themes/beaver/assets/css/components/c-typography.scss
Extended styles to FL-Builder markup (.fl-rich-text); mapped headings/text elements to existing tokens.
Navigation and pagination components
themes/beaver/assets/css/components/c-navigation.scss, themes/beaver/assets/css/components/c-pagination.scss
Applied nav styles to .c- and .fl- menus; added dual-class pagination styles with FL-Builder compatibility.
Grid/layout namespace convergence
themes/beaver/assets/css/beaver-grid-layout.css, themes/beaver/assets/css/fl-homepage-layout.css, themes/beaver/assets/css/theme-main.css
Broadened selectors to support .c- alongside .fl-; added float columns; expanded responsive/preview and widget selectors; added logo style.
New template test suites
test/unit/404_template_test.rb, test/unit/baseof_template_test.rb, test/unit/home_template_test.rb, test/unit/list_template_test.rb, test/unit/single_template_test.rb
Added extensive DOM/SEO/Accessibility tests for 404, base, home, list, and single templates.

Sequence Diagram(s)

sequenceDiagram
  autonumber
  actor User
  participant Hugo as Hugo Renderer
  participant T as Template (e.g., home.html)
  participant P as assets/css-processor.html (cached)

  User->>Hugo: Request page
  Hugo->>T: Render template
  T->>P: partialCached(dict{resources,bundleName}, cacheKey)
  alt Cache hit
    P-->>T: Return cached CSS bundle markup
  else Cache miss
    P->>P: Process resources & build bundle
    P-->>T: Return generated CSS bundle markup
  end
  T-->>Hugo: Final HTML
  Hugo-->>User: Response
Loading
sequenceDiagram
  autonumber
  participant Base as baseof.html
  participant CDN as CDN (Mermaid)
  Note over Base: Load Mermaid with SRI + crossorigin
  Base->>CDN: <script src ... integrity ... crossorigin>
  CDN-->>Base: Script delivered (SRI verified by browser)
Loading

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~60 minutes

Possibly related PRs

Suggested reviewers

  • dgorodnichy
  • AucT

Poem

I cached my CSS with a whisk and a wink,
Hopped through the layouts—no time to blink.
New FAQs sprout like clover in spring,
Utilities tidy each button and string.
With SRI shields and tests in a row—
This bunny ships fast, ready to go. 🐇✨

✨ Finishing touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch refact/components-fixes-2

📜 Recent review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between e06ca83 and 5434cb3.

📒 Files selected for processing (37)
  • content/blog/best-practices-for-optimizing-ruby-on-rails-performance/index.md (1 hunks)
  • content/blog/deploying-ruby-on-rails-applications-with-kamal-devops-docker/index.md (1 hunks)
  • content/blog/mastering-ruby-on-rails-best-practices-for-efficient-development-in-2024/index.md (1 hunks)
  • content/blog/rails-8-introducing-new-default-asset-pipeline-propshaft-ruby/index.md (1 hunks)
  • content/services/_index.md (1 hunks)
  • docs/comprehensive-technical-debt-report.md (1 hunks)
  • test/unit/404_template_test.rb (1 hunks)
  • test/unit/baseof_template_test.rb (1 hunks)
  • test/unit/home_template_test.rb (1 hunks)
  • test/unit/list_template_test.rb (1 hunks)
  • test/unit/single_template_test.rb (1 hunks)
  • themes/beaver/assets/css/accessibility-focus.css (1 hunks)
  • themes/beaver/assets/css/beaver-grid-layout.css (6 hunks)
  • themes/beaver/assets/css/components.css (1 hunks)
  • themes/beaver/assets/css/components/_content-block.scss (2 hunks)
  • themes/beaver/assets/css/components/c-navigation.scss (1 hunks)
  • themes/beaver/assets/css/components/c-pagination.scss (1 hunks)
  • themes/beaver/assets/css/components/c-typography.scss (1 hunks)
  • themes/beaver/assets/css/components/css-utilities.scss (1 hunks)
  • themes/beaver/assets/css/fl-homepage-layout.css (1 hunks)
  • themes/beaver/assets/css/theme-main.css (5 hunks)
  • themes/beaver/layouts/404.html (1 hunks)
  • themes/beaver/layouts/baseof.html (2 hunks)
  • themes/beaver/layouts/careers/single.html (1 hunks)
  • themes/beaver/layouts/clients/single.html (1 hunks)
  • themes/beaver/layouts/home.html (1 hunks)
  • themes/beaver/layouts/page/about.html (1 hunks)
  • themes/beaver/layouts/page/contact-us.html (1 hunks)
  • themes/beaver/layouts/page/single.html (1 hunks)
  • themes/beaver/layouts/page/test-cta.html (6 hunks)
  • themes/beaver/layouts/page/test-hero.html (3 hunks)
  • themes/beaver/layouts/page/test-service.html (1 hunks)
  • themes/beaver/layouts/page/test-testimonials.html (1 hunks)
  • themes/beaver/layouts/page/test-usecase.html (1 hunks)
  • themes/beaver/layouts/shortcodes/cta.html (1 hunks)
  • themes/beaver/layouts/shortcodes/testimonial.html (1 hunks)
  • themes/beaver/layouts/single.html (0 hunks)

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@pftg pftg merged commit 53b31b0 into master Sep 26, 2025
1 check passed
@pftg pftg deleted the refact/components-fixes-2 branch September 26, 2025 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants