Skip to content

Preview time select#3789

Draft
tvdeyen wants to merge 5 commits intomainfrom
preview-time-select
Draft

Preview time select#3789
tvdeyen wants to merge 5 commits intomainfrom
preview-time-select

Conversation

@tvdeyen
Copy link
Copy Markdown
Member

@tvdeyen tvdeyen commented Mar 26, 2026

What is this pull request for?

Describe you pull request here...

Closes # (Remove if not related to any issue)

Notable changes (remove if none)

Explain any changes (maybe breaking?) that have been made.

Screenshots

Remove if no visual changes have been made.

Checklist

  • I have followed Pull Request guidelines
  • I have added a detailed description into each commit message
  • I have added tests to cover this change

@tvdeyen tvdeyen force-pushed the preview-time-select branch 13 times, most recently from 336532f to c266b1a Compare March 27, 2026 13:55
@tvdeyen tvdeyen force-pushed the preview-time-select branch 3 times, most recently from b6bea99 to dee842c Compare March 27, 2026 16:36
@tvdeyen tvdeyen added this to the 8.2 milestone Mar 27, 2026
@tvdeyen tvdeyen force-pushed the preview-time-select branch from d7ae1ab to 297f804 Compare March 27, 2026 17:46
tvdeyen added 4 commits March 27, 2026 18:47
If this module is included in a controller out of the Alchemy::Admin scope we need to make sure we do not set the time zone.
The list of timezones is extremely long and a type ahead
is better ux in this case.

Signed-off-by: Thomas von Deyen <vondeyen@blish.cloud>
Defaults to Time.current but allows to globally control the time
when we consider elements and pages to be public.

Signed-off-by: Thomas von Deyen <vondeyen@blish.cloud>
…ements

Alchemy now supports previewing pages as they will appear at a specific
point in time. This allows content editors to verify that scheduled
elements will publish and unpublish correctly.

The feature adds a preview_at attribute to Alchemy::Current which is
used globally by the Publishable concern to determine element visibility.
When a datetime is selected in the toolbar, both the page preview iframe
and the elements sidebar reload with time-filtered content. The published
scope and public? method on all publishable records (elements,
page versions) respect this setting, falling back to Time.current when
not set.

Signed-off-by: Thomas von Deyen <vondeyen@blish.cloud>
@tvdeyen tvdeyen force-pushed the preview-time-select branch from 297f804 to 8703014 Compare March 27, 2026 17:48
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.49%. Comparing base (ff60f45) to head (8703014).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3789      +/-   ##
==========================================
+ Coverage   97.48%   97.49%   +0.01%     
==========================================
  Files         320      322       +2     
  Lines        8497     8551      +54     
==========================================
+ Hits         8283     8337      +54     
  Misses        214      214              

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

Rebuilt assets after source or dependency changes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants