Skip to content

Fix next reservation date and time after the final booking slot - #569

Merged
karanshukla merged 4 commits into
karanshukla:mainfrom
Jmschuitmaker-YAK:upstream/fix-next-reservation-slot
Nov 24, 2026
Merged

karanshukla merged 4 commits into
karanshukla:mainfrom
Jmschuitmaker-YAK:upstream/fix-next-reservation-slot

Conversation

@Jmschuitmaker-YAK

@Jmschuitmaker-YAK Jmschuitmaker-YAK commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Summary

When the last reservation slot has passed, the booking interface should suggest the next valid reservation date and time instead of defaulting to a date or time when the restaurant is closed.

We discovered this issue while running OpenResto in our restaurant, De Eilanderij, in the Netherlands.

Changes

  • Calculate the next schedulable reservation date and time in the restaurant's timezone.
  • Respect opening days, special opening hours, walk-in-only days, booking intervals, minimum notice and the booking horizon.
  • Default single-location views to the next valid booking date while preserving manual date selection.
  • Add regression tests covering these scenarios.

Actual table availability remains determined by the API.

Scope

  • Frontend only.
  • No API changes.
  • No database migrations.

Testing

Regression tests included. Upstream CI validation pending.

Thank you for developing OpenResto and making it available as open-source software. We are happy to contribute improvements based on our experience running it in a real restaurant.

Related issue

Closes #

Scope

  • API (OpenRestoApi)
  • Frontend (openresto-frontend)
  • Database migration
  • Docs / infra

Changes

Testing

  • OpenRestoApi.Tests pass locally
  • Frontend tests/build pass locally
  • CI passes (build, migration-check)
  • Manually verified the change end-to-end

Migrations

  • This PR includes a database migration
  • Migration was tested locally (up and, if applicable, down)

Checklist

  • No secrets, connection strings, or credentials committed
  • Docs updated if API contracts or setup changed

@Jmschuitmaker-YAK Jmschuitmaker-YAK changed the title Upstream/fix next reservation slot Fix next reservation date and time after the final booking slot Nov 24, 2026
@karanshukla

Copy link
Copy Markdown
Owner

Thanks for the heads up @Jmschuitmaker-YAK ! I will review it shortly and merge it back in.

Appreciate you using the app for the restaurant! If you have a link to your website I'd love to check it out!!!

@karanshukla
karanshukla disabled auto-merge November 24, 2026 23:45
@karanshukla
karanshukla merged commit 9daa275 into karanshukla:main Nov 24, 2026
21 checks passed
@Jmschuitmaker-YAK

Copy link
Copy Markdown
Contributor Author

Thanks for merging our first contribution!

OpenResto is now live at our restaurant, De Eilanderij, in the Netherlands.

We've also been working on Dutch translations, including the guest interface, booking emails and administration screens.

We'd be happy to contribute these improvements upstream through separate pull requests.

It's great to see an open-source project benefiting from real-world restaurant experience. Thanks for your work!

https://eilanderij.nl

@karanshukla

Copy link
Copy Markdown
Owner

Thanks @Jmschuitmaker-YAK I've merged the NL localisation as well.

Really stoked to hear that its working well for you! Please let me know if you have any other feedback about the app!

@Jmschuitmaker-YAK

Copy link
Copy Markdown
Contributor Author

Hi Karan,

Just a little milestone we wanted to share with you!

As of today, OpenResto is officially running in production at our restaurant, De Eilanderij in Kolhorn, the Netherlands. Our first real reservation came in tonight, and everything worked perfectly.

We've also developed an optional print agent that automatically prints reservation confirmations, changes and cancellations on our existing restaurant receipt printer, independently of our POS system.

It's now running successfully in our restaurant. We'd love to contribute this functionality upstream once we've prepared a clean branch and proper documentation.

Thank you for creating OpenResto and making it open source. It's genuinely exciting to be able to contribute to a project that we use in our own business every day.

Amazing what we can achieve together in just a few days!

Greetings from Kolhorn! 🍻

Jeck & Anneke
De Eilanderij
https://eilanderij.nl/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants