Skip to content

[solidus_admin] Add stores editor - #6589

Open
benjaminwil wants to merge 15 commits into
solidusio:mainfrom
benjaminwil:admin-stores-add-edit
Open

[solidus_admin] Add stores editor#6589
benjaminwil wants to merge 15 commits into
solidusio:mainfrom
benjaminwil:admin-stores-add-edit

Conversation

@benjaminwil

@benjaminwil benjaminwil commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Summary

Replaces #6228.

image image

This pull request creates the initial store creator and editor interface for solidus_admin. I have co-opted an old pull request implementing this feature and have verified, after rebasing against main and resolving merge conflicts, that it's in working order.

Since I am creating this replacement PR, I will take responsibility for resolving any issues that come up as the result of code review.

Checklist

The original author checked off all checklist items on the original pull request #6228.

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.

@codecov

codecov Bot commented Sep 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.29%. Comparing base (6692e51) to head (f7c77a8).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6589      +/-   ##
==========================================
+ Coverage   92.26%   92.29%   +0.02%     
==========================================
  Files        1037     1040       +3     
  Lines       21241    21274      +33     
==========================================
+ Hits        19598    19634      +36     
+ Misses       1643     1640       -3     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@benjaminwil
benjaminwil force-pushed the admin-stores-add-edit branch from 914aa77 to f9b25d2 Compare September 8, 2026 19:28
@benjaminwil

Copy link
Copy Markdown
Contributor Author

I am still absorbing the best practices for committing to solidus_admin, but based on my review I see no reason why we could not merge this. I welcome your feedback and expertise, though.

@benjaminwil
benjaminwil force-pushed the admin-stores-add-edit branch 2 times, most recently from 4ffd364 to aceb5cb Compare September 8, 2026 22:45
@benjaminwil
benjaminwil marked this pull request as draft September 8, 2026 23:06
chaimann and others added 15 commits September 8, 2026 16:42
Store deletion can be aborted if we are deleting a default
store, so we'll show alert in that case.
We don't have to use turbo_frames on these pages since we are not
loading content into it but always do a page visit to /new and /edit
routes, and when server responds with 422 and templates with validation
errors we can just place relevant "id" on the topmost element of the
page so its content will be replaced with turbo stream.
To fix the following issues:

    standard: Use Ruby Standard Style (https://github.com/standardrb/standard)
      admin/app/components/solidus_admin/stores/form/component.rb:14:15: Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
      admin/app/components/solidus_admin/stores/index/component.rb:35:15: Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
      admin/app/components/solidus_admin/stores/index/component.rb:36:35: Style/TrailingCommaInHashLiteral: Avoid comma after the last item of a hash.
      admin/app/components/solidus_admin/stores/index/component.rb:37:8: Style/TrailingCommaInArrayLiteral: Avoid comma after the last item of an array.
      admin/app/components/solidus_admin/stores/index/component.rb:46:21: Style/TrailingCommaInArrayLiteral: Avoid comma after the last item of an array.
      admin/app/components/solidus_admin/stores/index/component.rb:56:54: Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
      admin/app/components/solidus_admin/stores/index/component.rb:65:53: Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
      admin/app/components/solidus_admin/stores/index/component.rb:74:54: Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
      admin/app/components/solidus_admin/stores/index/component.rb:83:36: Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
      admin/app/components/solidus_admin/stores/index/component.rb:83:64: Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
      admin/app/controllers/solidus_admin/stores_controller.rb:26:26: Layout/SpaceInsideHashLiteralBraces: Space inside { detected.
      admin/app/controllers/solidus_admin/stores_controller.rb:26:36: Layout/SpaceInsideHashLiteralBraces: Space inside { detected.
      admin/app/controllers/solidus_admin/stores_controller.rb:26:80: Layout/SpaceInsideHashLiteralBraces: Space inside } detected.
      admin/app/controllers/solidus_admin/stores_controller.rb:26:82: Layout/SpaceInsideHashLiteralBraces: Space inside } detected.
      admin/app/controllers/solidus_admin/stores_controller.rb:28:28: Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
      admin/app/controllers/solidus_admin/stores_controller.rb:51:30: Style/TrailingCommaInArguments: Avoid comma after the last parameter of a method call.
      admin/spec/requests/solidus_admin/stores_spec.rb:4:9: Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
      admin/spec/requests/solidus_admin/stores_spec.rb:9:20: Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
      admin/spec/requests/solidus_admin/stores_spec.rb:9:46: Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
      admin/spec/requests/solidus_admin/stores_spec.rb:11:31: Layout/SpaceInsideHashLiteralBraces: Space inside { detected.
      admin/spec/requests/solidus_admin/stores_spec.rb:11:118: Layout/SpaceInsideHashLiteralBraces: Space inside } detected.
      admin/spec/requests/solidus_admin/stores_spec.rb:12:33: Layout/SpaceInsideHashLiteralBraces: Space inside { detected.
      admin/spec/requests/solidus_admin/stores_spec.rb:12:42: Layout/SpaceInsideHashLiteralBraces: Space inside } detected.
      core/spec/models/spree/store_spec.rb:145:58: Lint/AmbiguousRegexpLiteral: Ambiguous regexp literal. Parenthesize the method arguments if it's surely a regexp literal, or add a whitespace to the right of the `/` if it should be a division.
    standard: Run `standardrb --fix` to fix up to 24 problems.

    Error: Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
    Error: Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
    Error: Style/TrailingCommaInHashLiteral: Avoid comma after the last item of a hash.
    Error: Style/TrailingCommaInArrayLiteral: Avoid comma after the last item of an array.
    Error: Style/TrailingCommaInArrayLiteral: Avoid comma after the last item of an array.
    Error: Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
    Error: Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
    Error: Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
    Error: Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
    Error: Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
    Error: Layout/SpaceInsideHashLiteralBraces: Space inside { detected.
    Error: Layout/SpaceInsideHashLiteralBraces: Space inside { detected.
    Error: Layout/SpaceInsideHashLiteralBraces: Space inside } detected.
    Error: Layout/SpaceInsideHashLiteralBraces: Space inside } detected.
    Error: Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
    Error: Style/TrailingCommaInArguments: Avoid comma after the last parameter of a method call.
    Error: Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
    Error: Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
    Error: Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
    Error: Layout/SpaceInsideHashLiteralBraces: Space inside { detected.
    Error: Layout/SpaceInsideHashLiteralBraces: Space inside } detected.
    Error: Layout/SpaceInsideHashLiteralBraces: Space inside { detected.
    Error: Layout/SpaceInsideHashLiteralBraces: Space inside } detected.
    Error: Lint/AmbiguousRegexpLiteral: Ambiguous regexp literal. Parenthesize the method arguments if it's surely a regexp literal, or add a whitespace to the right of the `/` if it should be a division.
    Error: Process completed with exit code 1.
@benjaminwil
benjaminwil force-pushed the admin-stores-add-edit branch from aceb5cb to f7c77a8 Compare September 8, 2026 23:49
@benjaminwil benjaminwil self-assigned this Sep 9, 2026
@benjaminwil
benjaminwil marked this pull request as ready for review September 9, 2026 00:04
@benjaminwil benjaminwil moved this to Review in Solidus Admin Sep 9, 2026
@benjaminwil benjaminwil mentioned this pull request Sep 9, 2026
4 tasks

@tvdeyen tvdeyen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Works great. Thanks for taking this over.

@tvdeyen

tvdeyen commented Sep 9, 2026

Copy link
Copy Markdown
Member

I am still absorbing the best practices for committing to solidus_admin, but based on my review I see no reason why we could not merge this. I welcome your feedback and expertise, though.

That's what I post to everyone asking me about commit messages: https://cbea.ms/git-commit/

Especially this

  1. Use the body to explain what and why vs. how

I don't have to add much to that :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Review

Development

Successfully merging this pull request may close these issues.

3 participants