Skip to content
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

feat: Agenda URL #hash scrolls to 'now' or specific day #7772

Merged
merged 14 commits into from
Aug 26, 2024

Conversation

holloway
Copy link
Contributor

@holloway holloway commented Jul 31, 2024

Fixes #7245

Allows scrolling to either #now or #agenda-day-YYYY-MM-DD on page load.

Adds a developer-only utility to modify server agenda dates to be the same as local browser time, so that the 'Now' button is available.

@@ -206,8 +206,6 @@ function scrollToDay (dayId, ev) {
}

function scrollToNow (ev) {
ev.preventDefault()
Copy link
Contributor Author

@holloway holloway Jul 31, 2024

Choose a reason for hiding this comment

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

Removed so that when clicking 'Now' <a href="#now">Now</a>
Screenshot from 2024-08-01 10-52-50

...it will update the browser location with #now so that future reloads will have a hashstate that expresses 'Now'

Copy link

codecov bot commented Jul 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.79%. Comparing base (c7f6bde) to head (56f29b2).
Report is 47 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7772      +/-   ##
==========================================
+ Coverage   88.78%   88.79%   +0.01%     
==========================================
  Files         296      303       +7     
  Lines       41320    41422     +102     
==========================================
+ Hits        36687    36782      +95     
- Misses       4633     4640       +7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@holloway holloway changed the title feat: Agenda URL #now scrolls to current event feat: Agenda URL #hash scrolls to now or day Aug 14, 2024
@holloway holloway changed the title feat: Agenda URL #hash scrolls to now or day feat: Agenda URL #hash scrolls to 'now' or specific day Aug 14, 2024
@holloway holloway marked this pull request as ready for review August 14, 2024 00:07
@holloway holloway requested a review from rjsparks August 14, 2024 00:10
client/agenda/store.js Outdated Show resolved Hide resolved
@rjsparks
Copy link
Member

This is looking good on desktop, but on screens the size of an iphone 11, its not acting as intended. With the dev code uncommented, looking in this view, the now link doesn't change what's in the url bar, and pasting http://localhost:8000/meeting/agenda/#now into a blank tab doesn't cause the viewport to move to the red line.

@holloway
Copy link
Contributor Author

@rjsparks the functionality should work now. I still need to fix the tests.

@holloway
Copy link
Contributor Author

@rjsparks fixed. ready for review

@holloway holloway requested a review from NGPixel August 22, 2024 00:21
client/agenda/store.js Outdated Show resolved Hide resolved
rjsparks
rjsparks previously approved these changes Aug 23, 2024
@rjsparks rjsparks merged commit bece8fd into ietf-tools:main Aug 26, 2024
9 checks passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Button to go straight to “now”
3 participants