-
Notifications
You must be signed in to change notification settings - Fork 12
feat(calendar-apps): add orientation-based event limits to schedule view #651
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
base: master
Are you sure you want to change the base?
Conversation
- Display 10 events in landscape mode, 15 in portrait mode - Dynamically recalculate on orientation change Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
PR Reviewer Guide 🔍(Review updated until commit 09c6f02)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to 09c6f02
Previous suggestionsSuggestions up to commit 2a94cca
|
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
Adds orientation-aware event limiting to the schedule calendar view so the number of rendered events adapts when switching between portrait and landscape.
Changes:
- Introduces portrait/landscape max event thresholds (15/10) and derives the active limit via a computed value.
- Adds a window resize listener to update orientation state and re-run event filtering when the limit changes.
- Tweaks schedule view landscape sizing multiplier for a specific breakpoint.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
edge-apps/blueprint/ts/components/calendar/ScheduleCalendarView.vue |
Adds orientation tracking + computed max event limit and re-filters events when orientation/limit changes. |
edge-apps/blueprint/ts/assets/calendar/schedule-calendar-view.scss |
Adjusts landscape breakpoint scaling multiplier. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
edge-apps/blueprint/ts/components/calendar/ScheduleCalendarView.vue
Outdated
Show resolved
Hide resolved
…ed tests - Initialize isPortrait without accessing window during setup - Add typeof window !== 'undefined' checks before window access - Call updateOrientation on mount to set initial value - Prevents errors in Node-based tests and non-browser contexts Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
Persistent review updated to latest commit 09c6f02 |
User description
Summary
Added orientation-aware event limits to the schedule calendar view. Landscape mode displays 10 events while portrait mode displays 17 events, with dynamic recalculation on screen orientation changes.
Changes
Screenshots
PR Type
Enhancement, Bug fix
Description
Add dynamic event limits based on orientation
Guard
windowaccess for SSR and testsAdjust SCSS landscape view sizing ratio
Diagram Walkthrough
File Walkthrough
ScheduleCalendarView.vue
Add orientation logic and SSR window guardsedge-apps/blueprint/ts/components/calendar/ScheduleCalendarView.vue
onMountedandonUnmountedhooksupdateOrientationmaxEventsfromisPortraitflagwindowaccess in safety checksschedule-calendar-view.scss
Update landscape sizing ratioedge-apps/blueprint/ts/assets/calendar/schedule-calendar-view.scss