Skip to content

Preview time select#3789

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

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

Conversation

@tvdeyen
Copy link
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 from 5a87abc to 9176e9a Compare March 26, 2026 17:27
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.
@tvdeyen tvdeyen force-pushed the preview-time-select branch 6 times, most recently from eb30545 to 0cf5717 Compare March 26, 2026 22:00
tvdeyen added 2 commits March 26, 2026 23:48
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>
@tvdeyen tvdeyen force-pushed the preview-time-select branch 2 times, most recently from 56277b4 to 8c649d0 Compare March 27, 2026 07:05
…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 8c649d0 to d7ce119 Compare March 27, 2026 07:20
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.

1 participant