Skip to content

Use JS in the sandbox app#4923

Merged
kennyadsl merged 1 commit intosolidusio:masterfrom
nebulab:kennyadsl/sandbox-with-js
Feb 9, 2023
Merged

Use JS in the sandbox app#4923
kennyadsl merged 1 commit intosolidusio:masterfrom
nebulab:kennyadsl/sandbox-with-js

Conversation

@kennyadsl
Copy link
Member

@kennyadsl kennyadsl commented Feb 8, 2023

Summary

New Rails versions do not come with Webpacker anymore. We can safely generate sandboxes with Javascript now.
This is also needed because the Starter Frontend has some Stimulus/Turbo code that relies on the Rails JS stack.

Fixes CI failures, like https://app.circleci.com/pipelines/github/solidusio/solidus/4021/workflows/0a92bb5c-2fd6-460c-8cc7-7ff1a69b968e/jobs/38086

Checklist

Check out our PR guidelines for more details.

The following are mandatory for all PRs:

The following are not always needed:

  • 📖 I have updated the README to account for my changes.
  • 📑 I have documented new code with YARD.
  • 🛣️ I have opened a PR to update the guides.
  • ✅ I have added automated tests to cover my changes.
  • 📸 I have attached screenshots to demo visual changes.

@kennyadsl kennyadsl requested a review from elia February 8, 2023 15:49
@kennyadsl kennyadsl requested a review from a team as a code owner February 8, 2023 15:49
@kennyadsl kennyadsl self-assigned this Feb 8, 2023
@github-actions github-actions bot added the changelog:repository Changes to the repository not within any gem label Feb 8, 2023
@kennyadsl kennyadsl force-pushed the kennyadsl/sandbox-with-js branch from 82f3b53 to 4ee1aa0 Compare February 8, 2023 15:49
Copy link
Member

@elia elia left a comment

Choose a reason for hiding this comment

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

The CI failure I think is tied to the merged autocomplete feature, I've seen it also on solidus_stripe.

@kennyadsl
Copy link
Member Author

@elia the point of this PR is to fix that failure so I think I need to take a closer look 😄

New Rails versions do not come with webpacker anymore.
We can safely generate sandboxes with Javascript now.

This is also needed because now the Starter Frontend has
some Stimulus/Turbo code that relies on the Rails JS stack
to work.

This change needs to bump the CircleCI cache for the installer
test, because the Rails application needs to be re-installed
without the --skip-javascript option.
@kennyadsl kennyadsl force-pushed the kennyadsl/sandbox-with-js branch from 4ee1aa0 to e097e9b Compare February 8, 2023 22:07
@github-actions github-actions bot added the changelog:solidus_core Changes to the solidus_core gem label Feb 8, 2023
@kennyadsl kennyadsl changed the title Let the sandbox use JS Fix installer job on CI reflecting latest changes to starter frontend Feb 8, 2023
@kennyadsl kennyadsl changed the title Fix installer job on CI reflecting latest changes to starter frontend Fix CI installation tests reflecting latest changes to starter frontend Feb 8, 2023
@kennyadsl kennyadsl force-pushed the kennyadsl/sandbox-with-js branch 2 times, most recently from 561485d to 954b8ff Compare February 8, 2023 22:55
@kennyadsl kennyadsl marked this pull request as draft February 8, 2023 23:26
@kennyadsl
Copy link
Member Author

kennyadsl commented Feb 9, 2023

I moved the cache issue to #4927. We can merge the first commit indipendently.

@kennyadsl kennyadsl force-pushed the kennyadsl/sandbox-with-js branch from 954b8ff to 033bad1 Compare February 9, 2023 11:12
@kennyadsl kennyadsl marked this pull request as ready for review February 9, 2023 11:12
@github-actions github-actions bot removed the changelog:solidus_core Changes to the solidus_core gem label Feb 9, 2023
@kennyadsl kennyadsl changed the title Fix CI installation tests reflecting latest changes to starter frontend Use JS in the sandbox app Feb 9, 2023
@kennyadsl kennyadsl added the type:enhancement Proposed or newly added feature label Feb 9, 2023
@kennyadsl kennyadsl merged commit 365d63a into solidusio:master Feb 9, 2023
@kennyadsl kennyadsl deleted the kennyadsl/sandbox-with-js branch February 9, 2023 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog:repository Changes to the repository not within any gem type:enhancement Proposed or newly added feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants