Commit Graph

26 Commits

Author SHA1 Message Date
Franjo Mindek
93e3e9d916 Improve Stripe payment provider logic (#550)
Co-authored-by: Mihovil Ilakovac <mihovil@ilakovac.com>
2025-11-12 22:29:03 +01:00
Franjo Mindek
a55adf7eb9 for now 2025-11-06 13:45:40 +01:00
vincanger
7d36c8f0b1 Refactor file upload and toast notifications (#472)
* Refactor file upload and toast notifications

Replaces react-hot-toast with a custom toast system using @radix-ui/react-toast, updating all usages and adding new UI components for toast and dialog. Refactors file upload to use a two-step process: first generating an S3 upload URL, then adding the file to the database, and adds file deletion support with confirmation dialog and S3 cleanup. Updates Prisma schema, removes unused fields, and cleans up navigation and admin settings page.

* Enforce file upload limit and update dependencies on opensaas-sh

Added a check to restrict users to 2 file uploads in the demo, with a new helper function and error handling. Updated navigation items, improved landing page content, and removed unused dependencies (react-hot-toast). Added @radix-ui/react-toast, updated testimonials, and made minor content and code improvements.

* update tests

* Improve file deletion error handling and cleanup

Refactors file deletion to delete the database record before attempting S3 deletion, ensuring the file is removed from the app even if S3 deletion fails. Adds error logging for failed S3 deletions to aid in manual cleanup. Also simplifies error handling in the file upload page and removes unused imports in the demo app page.

* Add credit check and S3 file existence validation

Added logic to decrement user credits or throw an error if out of credits in the AI demo app. Updated file upload operations to validate file existence in S3 before adding to the database, and implemented S3 file existence check utility. Minor UI and code improvements included.

* Update s3Utils.ts

* update app_diff

* fix diff

* Update deletions

* Improve toast UI, error handling, and credit messaging

Updated toast action hover style and icon spacing for better UI consistency. Enhanced error handling in file deletion to display specific error messages. Refined credit/subscription error message in GPT response operation for clarity and removed redundant credit decrement logic.

* Refactor file upload validation and error handling

Replaces error state management with toast notifications for file upload errors and success. Refactors file type validation to use a new ALLOWED_FILE_TYPES_CONST and type AllowedFileTypes. Updates validation logic to throw errors instead of returning error objects, and simplifies type handling across file upload modules.

* Refactor file upload to use s3Key and add cleanup job

Replaces the 'key' field with 's3Key' for file storage references throughout the codebase and database schema. Updates all related logic, types, and API contracts to use 's3Key'. Adds a scheduled job to delete old files from S3 and the database. Cleans up file type validation constants and improves consistency in file upload and download operations.

* add orphaned file clean up

* remove s3 cleanup job from template

removed but added suggestion to docs.

* Update SettingsPage.tsx

* prettier format

* Update  UI, remove unused files

Updated README with deployment and demo details. Removed unused App.tsx and package-lock.json files. Modified Main.css, NavBar constants, file uploading logic, file upload operations, and landing page content sections for improved UI and functionality.

* remove pricing page from isMarketingPage
2025-10-15 12:01:08 +02:00
Franjo Mindek
2a0cd5f682 Merge branch 'main' into franjo/account-page-improvements
# Conflicts:
#	template/app/src/user/AccountPage.tsx
#	template/e2e-tests/tests/utils.ts
2025-09-24 13:21:50 +02:00
Franjo Mindek
354274fb01 fix find credits 2025-09-22 15:04:16 +02:00
Franjo Mindek
b880fc75cf Merge remote-tracking branch 'origin/main' into franjo/run-prettier
# Conflicts:
#	.prettierignore
#	template/e2e-tests/.gitignore
2025-09-19 18:04:26 +02:00
Franjo Mindek
41cd4120bf gitignore changes 2025-09-18 11:48:51 +02:00
Franjo Mindek
3f463fb202 format 2025-09-18 11:42:49 +02:00
Franjo Mindek
054c1f8dc5 Revert "format write"
This reverts commit 448f3290fc.
2025-09-18 11:42:31 +02:00
Franjo Mindek
448f3290fc format write 2025-09-18 11:29:50 +02:00
Franjo Mindek
95fbe059e3 checkout result page 2025-09-17 11:54:18 +02:00
Carlos Precioso
fd9f45c523 Use the wasp-app-runner (#495) 2025-08-14 12:53:48 +02:00
Carlos Precioso
8fc03d970b Upgrade to Node 22.12 (#477) 2025-08-05 10:53:09 +02:00
Franjo Mindek
3b7a67d5ae Fix failing e2e tests (#460)
* fix broken tests

* navbar fixes + return pricing

* changes

* re-remove pricing
2025-07-30 15:19:59 +02:00
Franjo Mindek
91549ea9ae raise node 2025-07-02 12:58:37 +02:00
Anish Roy
60d757e704 Add more detail about SKIP_EMAIL_VERIFICATION_IN_DEV to e2e tests README (#373)
* Add more detail about SKIP_EMAIL_VERIFICATION_IN_DEV to e2e tests README

Fixes #363

Add `SKIP_EMAIL_VERIFICATION_IN_DEV=true` to `template/app/.env.server.example` file.

* Add a new section to the file to skip email verification in development mode.
* Add `SKIP_EMAIL_VERIFICATION_IN_DEV=true` to the new section.

* Update .env.server.example

Update README with SKIP_EMAIL_VERIFICATION_IN_DEV instructions and remove default from .env

* Update e2e-tests/README.md

Added more detailed explanations about the SKIP_EMAIL_VERIFICATION_IN_DEV variable in e2e-tests/README.md, including its significance, usage in CI pipelines, and troubleshooting tips. Let me know if any additional clarifications are needed!

* Remove SKIP_EMAIL_VERIFICATION_IN_DEV from .env
2025-04-02 14:28:05 +02:00
vincanger
e1a9436029 improve one-time payment webhook logic (#375)
* improve one-time payment webhook logic

* Update paymentProcessor.ts.diff

* update tests and docs

* fix requested changes
2025-02-20 10:58:51 +01:00
vincanger
7e46899a44 change url to wasp.sh 2025-02-13 12:59:17 +01:00
Mihovil Ilakovac
8a368532b4 Updates for Wasp 0.15.0 (#255)
* Bumps Prisma to v5

Signed-off-by: Mihovil Ilakovac <mihovil@ilakovac.com>

* Update Prisma to 5.19.1

* Update for React Router v6

* Update types dep

* Update Prisma version

* Update package-lock.json

* update docs

* Update main.wasp.diff

* Add type: module

* Updated app_diff with type:module change from package.json.

* Updated version of Wasp in CI to 0.15.0-rc2.

* Removed type:module from e2e-tests/package.json.

---------

Signed-off-by: Mihovil Ilakovac <mihovil@ilakovac.com>
Co-authored-by: vincanger <70215737+vincanger@users.noreply.github.com>
Co-authored-by: Filip Sodić <filip.sodic@fer.hr>
Co-authored-by: Martin Sosic <sosic.martin@gmail.com>
2024-10-10 18:13:48 +02:00
vincanger
e7cf1ee582 bump playwright version 2024-10-04 12:29:19 +02:00
vincanger
cb3d75c0b6 add lemon squeezy as payment provider (#246)
* add lemon squeezy checkout and webhook

* add lemonSqueezy customer portal url

* Update AccountPage.tsx

* add lemon squeezy total revenue function

* update app diff

* update app diff

* add LS docs

* Update PricingPage.tsx

* add unified payment processor

* unify customer portal url

* Update paymentProcessor.ts

* update paymentProcessor logic

* update app diff to use both payments processors

* Update contentSections.ts.diff

* finishing touches

* Update e2e-tests.yml

* remove lemonsqueezy from app diff

* Update webhook.ts
2024-09-09 11:32:42 +02:00
vincanger
03f989f910 Add test docs (#239)
* add test docs

* Update README.md

* Update contentSections.ts.diff
2024-07-18 13:06:13 +02:00
vincanger
3a153a40bd add instructions for local e2e env vars (#184)
* add instructions for e2e env vars

* add env var to session

* Update README.md
2024-06-21 16:49:17 +02:00
vincanger
027d7c2018 avoid cookie setting race condition (#176)
* increase max time to await cookies

* Update landingPageTests.spec.ts

* Update landingPageTests.spec.ts

* Update e2e-tests.yml

* Update landingPageTests.spec.ts

* Update landingPageTests.spec.ts

* Update landingPageTests.spec.ts

* extract cookie check to function

* apply marty's suggestions
2024-06-13 16:41:46 +02:00
vincanger
602aad0f75 add cookie consent banner and tests (#163)
* add cookie consent banner and tests

* update docs and app_diff

* Create .env.client.diff

* Update main.wasp.diff

* add migrattion_lock diff again

* small typo fixes
2024-06-06 16:27:37 +02:00
Martin Šošić
04553cd60c All in dirs (#154)
* Split the project into template and opensaas-sh (demo app (diff) + docs).

* fix
2024-06-04 13:24:32 +02:00