Enhance session schedule block with grid view and hover panel features - #1153
Merged
Conversation
- Added a new grid view for displaying sessions with proportional time axis and sticky headers. - Implemented hover panel to show speaker details when hovering over session cards. - Introduced zoom controls for adjusting the vertical scale of the grid. - Updated CSS styles to accommodate new grid layout and hover panel design. - Enhanced JavaScript logic to manage grid rendering, session stacking, and hover card positioning. Signed-off-by: Chris Abraham <cjyabraham@gmail.com>
There was a problem hiding this comment.
Pull request overview
Adds a proportional schedule grid with sticky headers, zoom controls, and speaker hover cards.
Changes:
- Replaces the uniform grid with proportional session positioning.
- Adds persistent zoom controls and overlap packing.
- Adds hover-card and responsive grid styling.
Reviewed changes
Copilot reviewed 3 out of 6 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
src/view.js |
Implements grid rendering, zooming, packing, and hover cards. |
src/style.css |
Adds grid and hover-card styles. |
build/view.asset.php |
Updates the frontend asset version. |
build/style-index.css |
Rebuilds production CSS. |
build/style-index-rtl.css |
Rebuilds RTL production CSS. |
Files not reviewed (2)
- web/wp-content/plugins/sessionize-blocks/blocks/sessionize-schedule/build/style-index-rtl.css: Generated file
- web/wp-content/plugins/sessionize-blocks/blocks/sessionize-schedule/build/style-index.css: Generated file
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+2138
to
+2155
| .sched-hovercard{ | ||
| position:fixed; | ||
| left:0; | ||
| top:0; | ||
| z-index:100000; | ||
| display:none; | ||
| width:302px; | ||
| max-width:calc(100vw - 16px); | ||
| padding:13px 15px 14px; | ||
| border:1px solid var(--border); | ||
| border-radius:14px; | ||
| background:#fff; | ||
| box-shadow:0 18px 44px rgba(2,6,23,.18); | ||
| font-family:system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial; | ||
| color:var(--text); | ||
| /* Never intercept the pointer, so it cannot flicker or block a click. */ | ||
| pointer-events:none; | ||
| } |
|
|
||
| lane.appendChild( renderProportionalCard( d, { | ||
| top, | ||
| height: Math.max( GRID_MIN_CARD_PX, exact ), |
Comment on lines
+2226
to
+2229
| button.setAttribute( | ||
| 'aria-label', | ||
| `${ fmtTimeRange( derived.startMs, derived.endMs ) } ${ derived.raw.title || '' }` | ||
| ); |
| let top = rect.top + ( rect.height / 2 ) - ( height / 2 ); | ||
| top = Math.max( edge, Math.min( window.innerHeight - height - edge, top ) ); | ||
|
|
||
| el.style.left = `${ Math.round( left ) }px`; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Test page