Skip to content

Fix verify_components: ignore generated docs stubs#438

Merged
djalmaaraujo merged 3 commits intomainfrom
fix/regenerate-ruby-ui-components
Mar 24, 2026
Merged

Fix verify_components: ignore generated docs stubs#438
djalmaaraujo merged 3 commits intomainfrom
fix/regenerate-ruby-ui-components

Conversation

@djalmaaraujo
Copy link
Contributor

Summary

  • The ruby_ui generator creates docs component stubs that conflict with the app's existing Components::ComponentSetup namespace (superclass mismatch: Phlex::HTML vs Components::Base)
  • Adds a CI step to revert generated docs stubs before the git status check
  • This allows verify_components to pass while keeping the app's own docs component implementations

Context

After merging the ruby_ui gem bump (#432), the verify_components job has been failing on main because the generator now produces docs stubs that the app already has custom implementations for.

Run `rails g ruby_ui:component:all --force true` to sync generated
components with the updated ruby_ui gem (f882429 → 755b288).
…nents

The docs component stubs (base, component_setup_tabs, etc.) generated by
ruby_ui:component:all conflict with the app's existing Components::ComponentSetup
namespace, causing a superclass mismatch TypeError.
The ruby_ui generator creates docs component stubs that conflict with
the app's existing Components::ComponentSetup namespace (superclass
mismatch). Revert those generated files before the git status check.
@djalmaaraujo djalmaaraujo requested a review from cirdes as a code owner March 24, 2026 11:09
@djalmaaraujo djalmaaraujo merged commit a27d562 into main Mar 24, 2026
3 checks passed
@djalmaaraujo djalmaaraujo deleted the fix/regenerate-ruby-ui-components branch March 24, 2026 11:11
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.

1 participant