Skip to content
This repository was archived by the owner on May 11, 2026. It is now read-only.

Fix verify_components: ignore generated docs stubs#438

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

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

Conversation

@djalmaaraujo
Copy link
Copy Markdown
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
djalmaaraujo added a commit to djalmaaraujo/web that referenced this pull request Apr 16, 2026
* Regenerate ruby_ui components after gem bump

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

* Remove generated ruby_ui/docs stubs that conflict with existing components

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.

* Fix verify_components: ignore generated docs stubs

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.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant