Skip to content

Add Time Zone Select#6437

Draft
tvdeyen wants to merge 11 commits intosolidusio:mainfrom
blish:timezone-select
Draft

Add Time Zone Select#6437
tvdeyen wants to merge 11 commits intosolidusio:mainfrom
blish:timezone-select

Conversation

@tvdeyen
Copy link
Copy Markdown
Member

@tvdeyen tvdeyen commented Apr 15, 2026

Summary

Adding a timezone select into the various admin/backend navigations we have. Allows for users to see dates in the admin in the selected timezone. If the current solidus user record has a preferred timezone this is used instead. The resolved timezone is stored in the users session.

This includes a huge update the vendored remixicon sprite (from 3.4.0 to 4.9.1), which has a time zone icon.

This also changes the locale select icon from a globe to the official language icon.

It probably makes sense to extract the two changes into separate PRs.

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.

@tvdeyen tvdeyen added the type:enhancement Proposed or newly added feature label Apr 15, 2026
@tvdeyen tvdeyen self-assigned this Apr 15, 2026
@github-actions github-actions Bot added changelog:solidus_backend Changes to the solidus_backend gem changelog:solidus_core Changes to the solidus_core gem changelog:solidus_admin labels Apr 15, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.68%. Comparing base (bbd0e75) to head (899d5a5).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6437      +/-   ##
==========================================
+ Coverage   89.66%   89.68%   +0.01%     
==========================================
  Files         990      991       +1     
  Lines       20793    20816      +23     
==========================================
+ Hits        18645    18668      +23     
  Misses       2148     2148              

☔ View full report in Codecov by Sentry.
📢 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.

tvdeyen added 4 commits April 22, 2026 18:39
Currently we just see a Ruby stacktrace and not any
usefull hint on what linting error happened in a PR.

This adds GitHub comments and stops redirecting all
output to stdout, but use the --out instead for the
results.xml.
These were using deprecated Node 20 action syntax,
which produces a lot of annoying warnings in the CI
The GH action linter flagged this and it is actually very useful
By including this module into a controller it will
run all controller actions within the defined timezone.

The timezone is taken from the params, the session, user preference (if existing), or the default timezone of the app.
The resolved timezone is then stored in the session for future
reference.
@tvdeyen tvdeyen force-pushed the timezone-select branch 2 times, most recently from 50eda57 to 96ce820 Compare April 22, 2026 17:32
tvdeyen added 5 commits April 22, 2026 20:29
Use the `Spree::Core::ControllerHelpers::Timezone` module
to wrap all admin actions inside the selected timezone.
Use the `Spree::Core::ControllerHelpers::Timezone` module
to wrap all admin actions inside the selected timezone.

Signed-off-by: Thomas von Deyen <vondeyen@blish.cloud>
Spans do not self close and this actually has a closing tag
anyway.

Signed-off-by: Thomas von Deyen <vondeyen@blish.cloud>
Signed-off-by: Thomas von Deyen <vondeyen@blish.cloud>
Signed-off-by: Thomas von Deyen <vondeyen@blish.cloud>
tvdeyen added 2 commits April 22, 2026 22:33
If the user has a timezone column we show
a select to let admins set the preferred time
zone of the user.
If the user has a timezone column we show
a select to let admins set the preferred time
zone of the user.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog:solidus_admin changelog:solidus_backend Changes to the solidus_backend gem changelog:solidus_core Changes to the solidus_core gem type:enhancement Proposed or newly added feature

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant