WIP: Add popover to indicate the current meal block period #712
Draft
laasyaaki wants to merge 15 commits from
block_periods into staging
pull from: block_periods
merge into: ScottyLabs:staging
ScottyLabs:main
ScottyLabs:kennel-no-mapkit-backend
ScottyLabs:eats-kennel
ScottyLabs:Issue#833Fix
ScottyLabs:issue-843-active-filter
ScottyLabs:staging
ScottyLabs:unblocking-search-bar
ScottyLabs:sort-by-rating
ScottyLabs:cirex-web-patch-1
ScottyLabs:copilot/add-user-settings-feature
ScottyLabs:uncorrupted-version
ScottyLabs:raffle_greeting
ScottyLabs:tweaks/mobile-drawer
ScottyLabs:sort-locations-by-distance
ScottyLabs:edit-readme
ScottyLabs:delete
ScottyLabs:remove_collegecart_cards
ScottyLabs:revert-812-feat/collegecart-theme-apr-11-13
ScottyLabs:searchable_menus
ScottyLabs:ui/refactored-mobile-redesign-staged
ScottyLabs:ox-tooling
ScottyLabs:april-fools-2026
ScottyLabs:grubhub_links
ScottyLabs:rating-display
ScottyLabs:sort-by-distance
ScottyLabs:easter-theme
ScottyLabs:map-filter
ScottyLabs:feat/gallo-perm-close
ScottyLabs:feat/miku-day-2026
ScottyLabs:bruh3
ScottyLabs:report-system
ScottyLabs:valentines
ScottyLabs:review_system_promo_banner
ScottyLabs:banner-component
ScottyLabs:card-header-dropdown
ScottyLabs:listpage-offline-alert-fix
ScottyLabs:feat/review-system
ScottyLabs:compact-mode-style-tweaks
ScottyLabs:wrapped-analysis-2025
ScottyLabs:search-bar-query-delay
ScottyLabs:context-refactor-uhh
ScottyLabs:copilot/sub-pr-741
ScottyLabs:copilot/sub-pr-741-again
ScottyLabs:eatery-card-refactor
ScottyLabs:sponsor_carousel
ScottyLabs:ui/refactored-mobile-redesign
ScottyLabs:google_auth
ScottyLabs:banner-update
ScottyLabs:chore/tiny-refactor
ScottyLabs:style/tweak-pin-and-hide-buttons
ScottyLabs:card-refactor
ScottyLabs:bye_nova_25
ScottyLabs:hide-location
ScottyLabs:add_nova_banner
ScottyLabs:swtich_to_pnpm
ScottyLabs:schatz-menu-link
ScottyLabs:ui/mobile-redesign
ScottyLabs:fix/search-bar
ScottyLabs:increase_form_visibility
ScottyLabs:feat/pinned-cards-on-map
ScottyLabs:feat/banner
ScottyLabs:copilot/fix-13c3c122-a651-43d2-8d62-56ddf22bdcf1
ScottyLabs:copilot/fix-9c1d6fe9-b606-44d1-a5b1-a90f3133e0b9
ScottyLabs:fix/error-reporting-2
ScottyLabs:fix/error-reporting
ScottyLabs:fix/time-sorting
ScottyLabs:fix/weekly-times
ScottyLabs:Readme
ScottyLabs:bruh2
ScottyLabs:chore/update-staging
ScottyLabs:staging-reset
ScottyLabs:fix/404
ScottyLabs:update-footer
ScottyLabs:literally-a-single-line-change-unless-I-reset-wrong
ScottyLabs:fix/copilot-suggestions
ScottyLabs:test/pwa
ScottyLabs:fix/pwa
ScottyLabs:fix/dot-flashing
ScottyLabs:fix/env
ScottyLabs:feature/dynamic-email-contacts
ScottyLabs:Fix-readme
ScottyLabs:star_items_v2
ScottyLabs:quick-fix
ScottyLabs:chore/upd-staging
ScottyLabs:Yuxiang-Huang-patch-2
ScottyLabs:Yuxiang-Huang-patch-1
ScottyLabs:emergency-url-fix
ScottyLabs:tsurbs-patch-1
ScottyLabs:Footer-link
ScottyLabs:Footer-name
ScottyLabs:style/code-cleanup
ScottyLabs:style/times-popup
ScottyLabs:fix/map-color
ScottyLabs:timesdatesbetter-hurebranch2
ScottyLabs:fix/aaaaaaaa
ScottyLabs:bruh
ScottyLabs:fix/a-bit-of-refactoring
ScottyLabs:april-fools
ScottyLabs:time_filter
ScottyLabs:location-filter
ScottyLabs:star_items
ScottyLabs:cmueats_filters_food
ScottyLabs:style/a-bit-of-animation
ScottyLabs:evelyn-branch
ScottyLabs:map-almost-closed-view
ScottyLabs:feedback-form
ScottyLabs:nutrition-details
ScottyLabs:discard
ScottyLabs:hurebranch
ScottyLabs:alex_branch
ScottyLabs:no-merge
ScottyLabs:css-improvements-2
ScottyLabs:railway-test
ScottyLabs:nicolas/fix-ci
ScottyLabs:nettlin/update-email
ScottyLabs:update-mapkit-js-token
ScottyLabs:fix-menus
ScottyLabs:fix-specials
ScottyLabs:nettlin/add-map
ScottyLabs:nettlin/fix-css-syntax
ScottyLabs:modern-react
No reviewers
Labels
Clear labels
bad first issue
bootcamp
Bootcamp Task
bug
Something isn't working
cmueats 2.0
codebase
Codebase or developer experience (DX) improvements
complexity: low
complexity: medium
complexity: nontrivial
dependencies
Pull requests that update a dependency file
design needed
documentation
Improvements or additions to documentation
duplicate
This issue or pull request already exists
enhancement
New feature or request
github_actions
Pull requests that update GitHub Actions code
good first issue
Good for newcomers
help wanted
Extra attention is needed
high priority
important
invalid
This doesn't seem right
javascript
Pull requests that update JavaScript code
low pri
math heavy
outdated
The pull request is outdated and there's a newer pull request for the issue
question
Further information is requested
theory heavy
typescript
Pull requests that update TypeScript code
ui/ux
UI and/or UX improvements
wontfix
This will not be worked on
needs/docs
Must have documentation written
needs/research
Discuss the ideal implementation with the tech lead
needs/upstream
Needs a contribution to an upstream project
type/bug
Something not working as intended
type/external
Lives outside of code
type/feature
New functionality
type/refactor
Improving existing code
urgency
high
This is currently causing issues
urgency
immediate
This is making a project or feature unusable
urgency
low
This can happen whenever
urgency
medium
This is expected to cause issues soon
No labels
bad first issue
bootcamp
bug
cmueats 2.0
codebase
complexity: low
complexity: medium
complexity: nontrivial
dependencies
design needed
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
high priority
important
invalid
javascript
low pri
math heavy
outdated
question
theory heavy
typescript
ui/ux
wontfix
needs/docs
needs/research
needs/upstream
type/bug
type/external
type/feature
type/refactor
urgency
high
urgency
immediate
urgency
low
urgency
medium
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set
Reference
ScottyLabs/eats!712
Loading…
Reference in a new issue
No description provided.
Delete branch "block_periods"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
#706
based on feedback form request
The latest updates on your projects. Learn more about Vercel for GitHub.
oh yea also I have like three midterms next week 😭 so feel free to approve and merge other ppl's PRs without my approval. I think main thing is just make sure the class names are named well and that css modules are used whenever possible.
試験がんばってね、エリック!

I like how you bold the active row here!

thoughts on this revision of your design? (filter has been moved to the right, closer to the search bar, which makes more sense I think) I also added a button so ppl on mobile can click on it (actually we can probably make the whole row clickable and hoverable)
Figma link: https://www.figma.com/design/dp9RzhJtoMFWiUGjVCd6K7/CMUEats?node-id=1626-13703&t=ziZxOqbwwu2MDqOy-11
I'm 90% sure this doesn't do what you think it does - this is probably equivalent to
const pittsbughTime = new Date()(and new Date().getHours() defaults to whatever timezone your computer is set to)You can use the
luxonpackage'sDateTime.now().setZone('America/New_York')instead to force the timezone to be in pittsburgh time, no matter what the computer's local timezone ismight be good to make
getBlockPerioda pure function that takes in the current time instead. (helps with testing and re-rendering if we decide to periodically update what "now" represents)any reason why this is decoupled from
might be good to extract all of this into a separate component/file (its functionality is completely separate from everything else)
I made this in MN (cst) and it worked out fine then! but i'll test a bit more
math is hard :/
I like the buttons you added i think it could be helpful for mobile!
i'm not really sure how I like this design because it looks a bit out of place from the cmueats theme, and on mobile it kind of seperates the screen, but we can get some more opinions on what's more user friendly!
What specifically about this feels off?
and yea maybe we can pick a better font but I think having a monospaced one helps with readability

or ig this (Inter) is fine

How about de-emphasizing the text a bit for mobile?

or maybe two lines?

or this?


I prefer the popup under the searchbar, and I don't really like how it disrupts the margin and comes in from the right. But I like your idea to have a different font, I like the monospaced font.
I like this! I just think the header should be the first thing people see and the block periods popup should be with the rest of the filters and I would make it the dark gray color of the rest of the filtering and search stuff
you don't think that making it the same color as the filtering and search might cause confusion? cuz it's not really part of the search functionality lol
no lol I think it's all part of the side functionality and not the main eatery card functionality. Also, If its on the other side there's some space between the block period popover and the other filters. Maybe we can switch the sides of the filters to group all of the filters together, but I still think the popover should follow the same color scheme and styling as the filtering stuff. we can poll slack?
sure
Very cool, thanks!
composedPathfor detecting clicks outside the dropdown in a chrome extension I built last month, if you want an examplehi Laasya! I can wrap this up if you're busy over the next few days
Hey I can wrap this up, I'm sorry I didn't see your comment on my latest changes
The div is too wide so that hovering on any area will trigger the expansion
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.