Commit Graph

35 Commits

Author SHA1 Message Date
Carlos Precioso
4ca8a996da Update OpenSaas for Wasp main 2025-11-13 16:41:03 +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
95fbe059e3 checkout result page 2025-09-17 11:54:18 +02:00
Filip Sodić
fabbfef0e9 Migrate Open Saas to 0.18.0 (#500) 2025-09-12 15:49:59 +02:00
vincanger
6a52e4579e add user guard to default admin layout (#497)
* add user guard to default admin layout

* Update AnalyticsDashboardPage.tsx
2025-09-11 10:19:08 +02:00
Fran
2caac6c1de OpenSaaS Redesign - Add ShadCN, and redesign OpenSaaS.sh landing page (#447)
* add shadcn and shadcn script

* cleanup

* navbar and announcement

* remove unnecessary documentation

* cleanup

* dark mode switcher

* update hero

* update features

* update clients

* update testimonials

* update faq

* add avatar and use it in hero

* update the demo app

* update pricing page

* update file upload page

* update account page

* update dropdown

* fix mobile menu

* use card for testimonials

* update analytics to use new color tokens

* use sheet for mobile nav bar

* update user table

* update settings page to use shadcn components

* update testimonials to use new design

* add section title component

* update components to use section header

* add gradients

* add secondary muted

* add dynamic navbar

* cleanup

* fix color tokens for the dark mode

* don't scale all the cards

* Examples component

* fix the carousel scrolling into view

* add highlighted feature component

* add features grid

* cleanup

* fix navbar announcment sticking

* fix padding

* cleanup

* cleanup

* cleanup

* cleanup

* cleanup

* more robust on mouse leave for examples carousel

* auto scroll threshold set to 1

* generate app diff fo creating opensaassh

* add orbit

* fix mobile layout for Hero

* update template FeaturesGrid, and fix logos location

* Update the title for the features grid on landing

* update testimoinals layout

* update contentSections to support new testimonials

* update examples carousel

* update examples carouselui

* cleanup

* fix navbar layout when Announcement not present

* add highlighted features in examples

* cleanup

* fix faq component

* fix testimonials UI

* cleanup

* cleanup

* update contentSections

* update the ui limits

* make highlighted feature items centered

* remove inconsistent styles

* remove legacy classnames

* standardize chart cards

* fix dark mode ui issue with dropdown

* make it so that you can't change your own admin status

* fix changes with filtering on user table

* make filtering more intuitive

* fix calendar visibility issues

* remove forms pages

* use type tel for phone number

* button page redo

* clean up breadrcrumb and remove comments from default layout

* clean up navbar

* throttle scroll for navbar

* clean up remaining template items

* clean up

* fix the examples carousel so that it automatically scrolls

* fix demo app page

* fix FeaturesGrid types

* fix highlighted feature

* fix section title

* Replace old icons

* Remove package-lock.json

* fix opensaas issues

* remove all legacy icons

* remove accidental package files

* update throttleWithTrailingInvocation

* refactor the FeaturesGrid

* clean up highlithted feature

* clean up highlithted feature

* fix behavior of ExamplesCarousel

* clean up ExamplesCarousel

* fix wrong copy and layout on the landing for opensaas.sh

* center examples on the page if there are not enough of them

* Fix layout of pricing

* fix wrong link

* color of sidebar on admin

* add new examples

* fix icon layout

* adds specific tokens for opensaas landing

* layout fix

* remove leftover custom svgs

* update layout to better match figma

* use kebab-case for forms

* revert to h3

* png -> webp

* Update layout for bento grid for opensaas

* parse day views only once

* dropdown edit delete to shadcn

* remove the remaining svgs

* make useDebounce generic

* address small pr comments

* update examples carousel

* remove the banner from the hero

* section title subtitle → description

* remove unnecessary files

* address layout comments for opensaas.sh

* add back git star count

* update contentSections to have currently deployed copy

* useRef instaed of class query

* address layout comments for opensaas.sh

* adjust padding for RepoInfo on diff

* fix gradient on template

* Revert "fix gradient on template"

This reverts commit 4b45f7f437.

* fix gradient on template

* add AI Ready highlighted feature

* update landing page features & add LLM copy button and

Introduced a 'Copy URL for LLMs' button to the blog navbar by creating CopyForLlmButton.astro and integrating it into a new MyRightNavBarItems.astro component, replacing the previous theme select. Updated astro.config.mjs to use the new component. In the app template, added an example highlighted feature component to the landing page and updated testimonial avatars. Also enabled Google, GitHub, Discord, and Slack auth providers in main.wasp.

* Update NavBar announcement for Product Hunt launch

Refactored the Announcement component in NavBar to promote the Open SaaS v2.0 Product Hunt launch, including dynamic messaging based on launch date and updated links. Also updated the landing page to import and render new example components.

---------

Co-authored-by: vincanger <70215737+vincanger@users.noreply.github.com>
2025-07-28 18:29:22 +02:00
Mihovil Ilakovac
09ea4ee982 Updates for Wasp 0.17.0 (#448)
Co-authored-by: Filip Sodić <filip.sodic@fer.hr>
2025-07-10 16:16:19 +02:00
Franjo Mindek
0caed34032 update favicon changes 2025-04-11 13:41:11 +02:00
vincanger
f98d17b2ad remove newsletter stuff (#383)
* remove newsletter stuff

* Update guided-tour.md

* Update deletions
2025-03-03 09:43:51 -05:00
Mihovil Ilakovac
66d1155a0d Handle missing Discord email sooner. Make sure emails are verified. 2025-02-26 15:25:17 +01:00
vincanger
c6152345a8 remove user.lastActiveTimestamp 2025-02-14 14:48:24 +01:00
vincanger
ef0df9aa02 updateIsUserAdminById 2025-02-13 13:38:37 +01:00
vincanger
7a30c41529 change func name 2025-02-13 13:19:37 +01:00
vincanger
7e46899a44 change url to wasp.sh 2025-02-13 12:59:17 +01:00
vincanger
8eecd97147 Upgrade v0.16 (#357)
* bump version

* add update banner and cursorrules
2025-01-29 12:26:21 +01:00
vincanger
3bb78654d8 Use webp over png and lazy load images (#314)
* use webp and lazy load images

* fix hero

* update app_diff

* fix app_diff

* fix head

* remove async decoding
2024-11-12 13:38:06 +01:00
Cameron Blackwood
530e87a6b2 Add a 404 page to the standard open saas template (#281)
* Add a 404 page to the standard open saas template

* Revert "Add a 404 page to the standard open saas template"

This reverts commit c9e4073232.

* reinstate 404 page after mistake with patch script
2024-10-14 10:34:00 +02: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
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
94a6b8f645 Upgrade v0.14 (#232)
* Create schema.prisma

* update admin pages

* update app_diff

* Update e2e-tests.yml

* update docs & rename hook

* Update schema.prisma

* update app_diff

* add discord auth and app_diff

* update docs

* Update template/app/src/auth/userSignupFields.ts

Co-authored-by: Martin Šošić <Martinsos@users.noreply.github.com>

* move landing page

* update .env.vault

* Update e2e-tests.yml

---------

Co-authored-by: Martin Šošić <Martinsos@users.noreply.github.com>
2024-07-16 12:01:03 +02:00
vincanger
f52bc42de1 Openai demo app vertical reorg (#234)
* organize demo ai app vertically

* Update main.wasp.diff

* Update guided-tour.md

* Leftover vertical org changes (#233)

* newsletter dir & leftovers

* update app_diff

* Update guided-tour.md

* Update guided-tour.md
2024-07-15 16:06:50 +02:00
vincanger
f9c920f0f1 reorganize admin dash (#227)
* reorganize admin dash

* remove messages & ui stuff from admin

* separate analytics from admin

* update app_diff

* Update .env.vault.diff
2024-07-15 11:10:17 +02:00
Martin Šošić
a812b2d7ac Fix MailGun in main.wasp to Mailgun (#221)
* Fix MailGun in main.wasp to Mailgun

* fix
2024-07-11 18:26:53 +02:00
Martin Šošić
a348a85660 Organized 'users' functionality vertically. (#226) 2024-07-11 12:57:30 +02:00
vincanger
0e4e76ae88 Organize payments vertically (#225)
* organize payments vertically

* update docs

* docs updates and small changes
2024-07-11 11:48:43 +02:00
vincanger
78a9189e32 refactor Stripe webhook (#200)
* rename TierIds to PaymentPlanIds

* refactor webhook and util functions

* pass userDelegate to function

* Update dbSeeds.ts

* update app diff

* Update template/app/src/server/stripe/stripeClient.ts

Co-authored-by: Martin Šošić <Martinsos@users.noreply.github.com>

* extract event handlers and more

* Update AccountPage.tsx

* address filips pro effective typescripting and stuff

* Martin's attempt at consolidating types.

* fix

* fix webhook events and validation

* small changes

* put stripe event handlers back for marty merge

* merge consilidated types from martin

* move some types around

* add docs for stripe api version

* Update AccountPage.tsx

* Update stripe.ts

* update SubscriptionStatus type

* Update actions.ts

* add assertUnreachable util

* more small changes

* Update deploying.md

* update accountPage and docs

* update app_diff

---------

Co-authored-by: Martin Šošić <Martinsos@users.noreply.github.com>
Co-authored-by: Martin Sosic <sosic.martin@gmail.com>
2024-07-10 16:08:20 +02:00
Martin Šošić
138552d541 Vertical auth (#210)
* Vertically organized auth logic.

* Updated opensaas-sh app.

* Updated docs.
2024-07-10 16:07:44 +02:00
Martin Šošić
f01d2414da Grouped all file-upload functionality. (#170)
* Grouped all file-upload functionality.

* fix
2024-07-02 14:36:25 +02:00
vincanger
471217ba92 clean up db seeding file (#197)
* improve naming and flow

* make seed code cleaner

* Update dbSeeds.ts

* Update template/app/src/server/scripts/dbSeeds.ts

Co-authored-by: Martin Šošić <Martinsos@users.noreply.github.com>

* cleaner seed script

* Update dbSeeds.ts

---------

Co-authored-by: Martin Šošić <Martinsos@users.noreply.github.com>
2024-07-02 10:10:40 +02:00
Cameron Blackwood
d0de9af8eb Make the user entitiy use a uuid as its identifier (#189)
* Make the user entitiy user a uuid as its identifier

* migrate to string types for user id everywhere
2024-06-27 11:52:00 +02:00
vincanger
2cb9c3dc71 change filenames for auth user fields (#193)
* change filenames

* change names
2024-06-27 11:17:57 +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
vincanger
c06d060b5f Revert "fix landing page import"
This reverts commit 0993d68b17.
2024-06-05 14:19:28 +02:00
vincanger
0993d68b17 fix landing page import 2024-06-05 11:35:20 +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