curriculum icon indicating copy to clipboard operation
curriculum copied to clipboard

Feature: Set start time on day plan

Open SallyMcGrath opened this issue 1 year ago • 2 comments

What is the work that needs to be done?

Pass a startTime into the timestamper web component

  1. Set startTime on hugo.toml in custom params so orgs can set a general rule
  2. Allow day plan to override this front matter so specific sessions can be scheduled at other starts
  3. Fallback to 10am if no start Time is present
  4. Update https://common.codeyourfuture.io/common-theme/pages/day-plan/ with the new feature https://github.com/CodeYourFuture/curriculum/blob/main/common-docs/content/common-theme/pages/day-plan.md?plain=1

https://github.com/CodeYourFuture/curriculum/blob/874907ac6f636e00e745ae1b79c6c429957e0eef/common-theme/assets/scripts/time-stamper.js#L20

https://github.com/CodeYourFuture/curriculum/blob/874907ac6f636e00e745ae1b79c6c429957e0eef/common-theme/hugo.toml#L28

https://github.com/CodeYourFuture/curriculum/blob/874907ac6f636e00e745ae1b79c6c429957e0eef/common-theme/layouts/_default/day-plan.html#L30

Why is this work important to do?

At the moment the timestamp web component is hardcoded to start at 10am. We do start main courses at 10am, but ITD sessions might start at other times. And other orgs might want to start at a different time!

SallyMcGrath avatar Sep 27 '24 09:09 SallyMcGrath

hi, id like to contribute to this issue!

gustavogabaldon avatar Oct 01 '24 00:10 gustavogabaldon

🎉 Great - I'll assign you. Let me know if/when you have questions. Welcome to CYF 🤝

SallyMcGrath avatar Oct 01 '24 05:10 SallyMcGrath

Hi @gustavogabaldon, have you managed to make progress on this ticket? We'd love to see a draft PR! 🙂

40thieves avatar Oct 22 '24 17:10 40thieves