You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Shift to serving timeslider js and css from main web codebase #910
That has been convenient in the past for rapid initial development of the timeslider, but it's a problem when we need to make and test changes to the timeslider.
For #855 we had to make some breaking changes to the timeslider to accommodate new expressions-based map styles (#775).
We now have working map styles and a working timeslider (in a branch), but we don't have a staging environment.
To solve that, we are going to:
Pull the relevant JS, CSS, and image assets into the website repo and make sure they are working locally.
Before we do any automation off the main timeslider branch, we need to merge and deploy OpenHistoricalMap/ohm-website#260, then we can make some changes in the timeslider repo without worrying about impact on the live site.
For the future deployment automation, while it's fresh.
One note is that the transition will be simpler if we rename the /images/ folder Timeslider repo to /assets/ and update all references in leaflet-ohm-timeslider.css. that will make the paths match between the standalone repo and the Rails assets. Simple change, just need to make it before we implement the automation.
I'd like to sever the live connection between website and timeslider repo before we make that change.
Activity
Updates to pull timeslider code into website
danrademacher commentedon Nov 19, 2024
Before we do any automation off the
maintimeslider branch, we need to merge and deploy OpenHistoricalMap/ohm-website#260, then we can make some changes in the timeslider repo without worrying about impact on the live site.For the future deployment automation, while it's fresh.
We need to fetch these files:
https://github.com/OpenHistoricalMap/leaflet-ohm-timeslider-v2/blob/main/decimaldate.js
https://github.com/OpenHistoricalMap/leaflet-ohm-timeslider-v2/blob/main/leaflet-ohm-timeslider.js
https://github.com/OpenHistoricalMap/leaflet-ohm-timeslider-v2/blob/main/leaflet-ohm-timeslider.css
https://github.com/OpenHistoricalMap/leaflet-ohm-timeslider-v2/tree/main/images/*
and copy to:
https://github.com/OpenHistoricalMap/ohm-website/tree/staging/app/assets/javascripts
https://github.com/OpenHistoricalMap/ohm-website/tree/staging/app/assets/stylesheets
https://github.com/OpenHistoricalMap/ohm-website/tree/staging/app/assets/images
One note is that the transition will be simpler if we rename the
/images/folder Timeslider repo to/assets/and update all references inleaflet-ohm-timeslider.css. that will make the paths match between the standalone repo and the Rails assets. Simple change, just need to make it before we implement the automation.I'd like to sever the live connection between website and timeslider repo before we make that change.
Update image paths from /images to /assets
danrademacher commentedon Dec 9, 2024
@Rub21 this is now ready for the next step:
dd0acbdc9432fae6a4d09a17a4848c391e5064f0danrademacher commentedon Dec 17, 2024
This was merged and deployed here OpenHistoricalMap/ohm-deploy#428