Skip to content

Enhance session schedule block with grid view and hover panel features - #1153

Merged
cjyabraham merged 1 commit into
mainfrom
sessionize2
Aug 1, 2026
Merged

Enhance session schedule block with grid view and hover panel features#1153
cjyabraham merged 1 commit into
mainfrom
sessionize2

Conversation

@cjyabraham

@cjyabraham cjyabraham commented Jul 31, 2026

Copy link
Copy Markdown
Collaborator

Test page

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

- 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>
Copilot AI review requested due to automatic review settings July 31, 2026 20:57

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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`;
@cjyabraham
cjyabraham merged commit 4d01ad2 into main Aug 1, 2026
15 of 16 checks passed
@cjyabraham
cjyabraham deleted the sessionize2 branch August 1, 2026 18:39
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