Skip to content

Conversation

@stefannibrasil
Copy link
Contributor

@stefannibrasil stefannibrasil commented Jan 29, 2026

What github issue is this PR for, if any?

Closes #6596

Related: #6665

What changed, and why?

4.0 changed how to configure previews.paths from config.view_component.preview_paths to
config.view_component.previews.paths. See ViewComponent/view_component#2317

Official docs for the new configuration: https://viewcomponent.org/guide/previews.html#use-with-rspec

Screenshots please :)

N/A

@github-actions github-actions bot added dependencies Pull requests that update a dependency file ruby Pull requests that update Ruby code labels Jan 29, 2026
@stefannibrasil stefannibrasil force-pushed the sb-bump-view-component-version-6596 branch 2 times, most recently from 4b2a687 to 83185e3 Compare January 29, 2026 00:50
Closes rubyforgood#6596

In ViewComponent/view_component#2317,
`view_component` 4.0 changed how to configure `previews.paths`
from `config.view_component.preview_paths` to
`config.view_component.previews.paths`.

Official docs for the new configuration: https://viewcomponent.org/guide/previews.html#use-with-rspec
@stefannibrasil stefannibrasil force-pushed the sb-bump-view-component-version-6596 branch from 83185e3 to 340001e Compare January 29, 2026 00:50
@compwron compwron requested a review from Copilot January 29, 2026 03:02
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR upgrades the view_component dependency from version 3.22.0 to 4.2.0 and updates the configuration syntax to be compatible with the new version. Version 4.0 of view_component changed the configuration API for preview paths from config.view_component.preview_paths to config.view_component.previews.paths.

Changes:

  • Updated view_component gem from 3.22.0 to 4.2.0
  • Changed preview path configuration to use the new v4.x syntax
  • Updated concurrent-ruby dependency from exact version 1.3.4 to ~> 1 (resolved to 1.3.5)

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
config/application.rb Updated ViewComponent preview path configuration from preview_paths to previews.paths to match v4.x API
Gemfile.lock Bumped view_component from 3.22.0 to 4.2.0 with updated dependency constraints and concurrent-ruby minor version update

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@compwron compwron merged commit 5fdce09 into rubyforgood:main Jan 29, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file ruby Pull requests that update Ruby code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Upgrade dependency view_component

2 participants