-
Notifications
You must be signed in to change notification settings - Fork 14
[Document Editor] Add missing preview features #2821
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Document Editor] Add missing preview features #2821
Conversation
…ures # Conflicts: # assets/js/src/core/modules/icon-library/index.ts
…-preview-features' into 2172-document-editor-add-missing-preview-features
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds missing preview features to the document editor, specifically implementing device preview modes (desktop, tablet, phone) and a time slider for scheduled content preview.
Changes:
- Added device preview modes with responsive iframe sizing
- Implemented time slider functionality for previewing scheduled content at specific timestamps
- Added new icons (monitor, tablet, phone, phone-horizontal) to support device preview UI
- Enhanced date picker component to optionally show suffix icon
Reviewed changes
Copilot reviewed 18 out of 1452 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| public/build/0fdcc1fe-4c01-481b-be83-593fd9b52885/static/js/async/3156.6d2bbc6b.js | Compiled bundle with new notifyTimeSliderVisible API method |
| assets/js/src/core/modules/icon-library/index.ts | Registered new device preview icons |
| assets/js/src/core/modules/element/dynamic-types/definitions/document/editable/types/dynamic-type-document-editable-scheduledblock.tsx | Added onDocumentReady to notify parent about scheduledblock presence |
| assets/js/src/core/modules/document/hooks/use-document-url-processor.ts | Extended preview URL processor with device type and timestamp parameters |
| assets/js/src/core/modules/document/editor/shared-tab-manager/tabs/preview/document-preview.tsx | Implemented device preview toolbar and time slider UI |
| assets/js/src/core/modules/document/document-editor-slice.ts | Added Redux state for tracking time slider visibility |
| assets/js/src/core/components/date-picker/date-picker.tsx | Added showSuffixIcon prop to control suffix icon display |
| assets/js/src/core/components/date-picker/date-picker.styles.tsx | Added CSS for conditional suffix icon display |
| assets/js/src/core/app/public-api/document/document-api.ts | Added notifyTimeSliderVisible API method |
| public/build/* | Build artifacts and manifest files |
markus-moser
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey,
Please check my comments, just a few details :)
assets/js/src/core/modules/document/editor/shared-tab-manager/tabs/preview/document-preview.tsx
Show resolved
Hide resolved
assets/js/src/core/modules/document/editor/shared-tab-manager/tabs/preview/document-preview.tsx
Show resolved
Hide resolved
assets/js/src/core/modules/document/editor/shared-tab-manager/tabs/preview/document-preview.tsx
Show resolved
Hide resolved
assets/js/src/core/modules/document/editor/shared-tab-manager/tabs/preview/document-preview.tsx
Show resolved
Hide resolved
assets/js/src/core/modules/document/editor/shared-tab-manager/tabs/preview/document-preview.tsx
Show resolved
Hide resolved
assets/js/src/core/modules/document/editor/shared-tab-manager/tabs/preview/document-preview.tsx
Show resolved
Hide resolved
markus-moser
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MSchinwaldEl Ok fine, sorry the studio.en.yaml was for some reason filtered as vendor file by github when I checked the PR



Changes in this pull request
Resolves #2172