Skip to content

Cafe page typing fix#1135

Open
Tomas-Ka wants to merge 2 commits intomainfrom
cafe-page-typing-fix
Open

Cafe page typing fix#1135
Tomas-Ka wants to merge 2 commits intomainfrom
cafe-page-typing-fix

Conversation

@Tomas-Ka
Copy link
Contributor

🧩 Summary

Fixes the issues had in #1077.

🔗 Related issues (if any)

Closes nothing because we never made an issue

📸 Screenshots / recordings (if applicable)

before: 500 server error page (was gone in production because of hotfix)
now: successfully renders webpage

💬 Other information

There is a way to generate the typing of the enum programatically with a prisma generate script / macro or something similar, but afaik that's not something we've done previously, and frankly I was dissuaded because it seemed complicated. This was a good solution to me.

Turns out you can't import Prisma client side, so this fixes that by
exporting a vetted and build time checked version of the TimeSlot field.

This could be done programatically with a hook/generate script of some
kind, but I don't know how those work.
@Tomas-Ka Tomas-Ka requested a review from Isak-Kallini March 12, 2026 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🆕 New

Development

Successfully merging this pull request may close these issues.

2 participants