Skip to content

Add Time Zone Select#6437

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

Add Time Zone Select#6437
tvdeyen wants to merge 8 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 added 8 commits April 15, 2026 18:58
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.
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>
From v3.4.0

Signed-off-by: Thomas von Deyen <vondeyen@blish.cloud>
The icon for language is not a globe and not flags, because countries
are not synomous to spoken languages. Using the language symbol instead.

This allows us to use the globe icon for a timezone select later.

Ref: https://languageicon.org
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 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 88.98%. Comparing base (1931ee8) to head (da9c31e).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6437      +/-   ##
==========================================
- Coverage   89.66%   88.98%   -0.68%     
==========================================
  Files         990      724     -266     
  Lines       20792    15821    -4971     
==========================================
- Hits        18644    14079    -4565     
+ Misses       2148     1742     -406     

☔ 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.

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