-
Notifications
You must be signed in to change notification settings - Fork 5
Add basic escape room ordering functionality with Stripe integration #433
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
racecn
wants to merge
30
commits into
main
Choose a base branch
from
nathan/escape-room-subsite-ordering
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
26d4e08
feat: Add basic purchase page for accessible escape room with form ha…
racecn 863eb85
feat: Implement Stripe API integration for session status and webhook…
racecn 08b3b2f
fix: Correct storage directory path for purchase data
racecn 67879ad
feat: Return only non-sensitive fields in session status response
racecn 606cef9
Enhance debugging
racecn eba9ab0
Implement save purchase data API and local development instructions
racecn e698c3b
Remove deprecated Azure checkout session and purchase data handling f…
racecn 5f16546
Add comprehensive tests for API endpoints and setup configuration
racecn 2956cab
Merge remote-tracking branch 'origin/main' into nathan/escape-room-su…
racecn f6d14d6
Remove merge conflict marker in icon list
racecn 091ec9c
Set output option to 'server' in Astro configuration
racecn a5a92ef
Rework session mocking in tests and add access control middleware tests
racecn 883f5c3
Change session handling to use session-store module in download mater…
racecn 22c03cf
Add session handling to middleware and update type definitions
racecn cc3bfae
Change data extraction in escape room theme page and enable prerendering
racecn 0a16d16
Rework escape room access and content handling
racecn 298c779
Remove unnecessary createdAt field from PurchaseSession interface and…
racecn 6e23141
Merge branch 'main' into nathan/escape-room-subsite-ordering
racecn 963db3a
Refactor robots.txt rules into astro config
racecn e4c9bd3
Update sitemap filter to exclude newer escape room content path
racecn e7f1658
Remove kitType from API and UI, update pricing logic, and adjust conf…
racecn b796c28
Fix theme mapping for baking kit in checkout session
racecn 2b83cf1
Update theme selection to dynamically render options from escape room…
racecn 80480c2
Componentize FooterER to simplify EscapeRoomLayout
racecn 8c493a2
Add hideSiteHeader prop to Layout for conditional header rendering
racecn 7864588
Add escape room dynamic theme rendering
racecn 95fe042
Make email confirmation functionality as function and store purchase …
racecn 107cd91
Refactor Stripe webhook to use dedicated email and purchase storage f…
racecn 1504fad
Merge branch 'main' into nathan/escape-room-subsite-ordering
brian-montgomery 80f9b96
Initial setup with Drizzle and Postgres
brian-montgomery File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,25 @@ | ||
| .DS_Store | ||
| # System files | ||
| .DS_Store | ||
|
|
||
| # Node.js dependencies | ||
| node_modules/ | ||
|
|
||
| # Astro build outputs | ||
| dist/ | ||
| .astro/ | ||
|
|
||
| # Environment variables | ||
| .env | ||
|
|
||
| # Local development files | ||
| local-dev/purchases/ | ||
| local-dev/emails/ | ||
| local-dev/uploads/ | ||
|
|
||
| # Protected materials | ||
| astro/src/protected-materials/ | ||
|
|
||
| # Test files and debug content | ||
| **/test*.astro | ||
| **/debug*.astro | ||
| **/*-test.* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| import 'dotenv/config'; | ||
| import { defineConfig } from 'drizzle-kit'; | ||
|
|
||
| export default defineConfig({ | ||
| out: './drizzle', | ||
| schema: './src/db/schema.ts', | ||
| dialect: 'postgresql', | ||
| dbCredentials: { | ||
| url: process.env.DATABASE_URL!, | ||
| }, | ||
| }); |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
interesting, do we have to explicitly allow /materials/basic even though we don't disallow it below?