Comments (5)
Interesting @jrjohnson - let's test some more - I think that is acceptable behavior for sure if that is the case - I would close this ticket and update the user guide and my brain.
from ilios.
Will need to test, but I think it starts at the time of the first offering. So if there is an 8am offering it would start there, same with 1am or 2pm.
from ilios.
jumping in here since Jon's working on something else - i checked our code and he's correct, the calendar will scroll to the earliest hour among given events.
from ilios.
video1720909924.mp4
from ilios.
upon further inspection, there are several things wrong with the current implementation:
- calculation of "earliest date", which is used to identify the scroll target. turns out that all events passed to the calendar are taken into consideration, not just the ones pertaining to the given week. for example, if the earliest event for this week starts at 10am, but last week had an event starting at 8am, then 8am is considered to be the earliest date. this can likely be fixed by applying a filter on the given events to further scope this down by just this week.
https://github.com/ilios/common/blob/master/addon/components/weekly-calendar.js#L63 - the scroll-target calculation is hinky. we currently are doing this by finding the top offset of the hours-element in the calendar grid that is 2 hours before the earliest event. For example, if the earliest event starts at 10am, then the calendar attempts to scrolls to the 8am row on the Y-axis of the grid, based on the
topOffset
value of that element. however, this is not sufficient or perhaps incorrect altogether, since this evidently does not bring the event into view. I currently have no idea how to fix this correctly, perhaps we can fudge this further and apply a 3 hours before offset.
https://github.com/ilios/common/blob/master/addon/components/weekly-calendar.js#L22
from ilios.
Related Issues (20)
- Correct left-hand alignment of content in main area of the user management screen
- linting the frontend code crashes the app HOT 1
- disconnect between resource-backed model getters and async methods in current-user service HOT 1
- Refresh the production search-index every once in a while
- Loading Learner Group class still uses heart monitor animation HOT 1
- Update pnpm dependency to v9
- API Version Mismatch banner message is misleading
- Deprecation error in handling LDAP calls to campus directory service
- Courses and Sessions Search Issue HOT 1
- Frontend: Running pnpm lint while using ember serve kills the latter
- Search to add new users not working HOT 5
- In Schools, format "Session Types" like "Vocabularies" HOT 1
- Prune Years that are too Far Past from Admin Console Cohort Selector HOT 1
- Long LM Display Name Needs to Wrap like Instructional Notes or Description
- LM Caption Update Suggestion
- If MeSH Selected For LM, Should be more evident in edit mode
- Need Shading Stripes - Course LM's
- Need Shading Stripes - Session LM's
- TypeError: App\Service\CasAuthentication::generateSignature(): Argument #1 ($value) must be of type string, ...
- For validation meta discussion
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ilios.