π Bug / Enhancement
Area: UI / User Experience β Global
Type: UX Fix
Priority: High β affects every user interaction
π Description
FlowForge currently uses native browser alert()
popups for ALL user feedback messages. This is a
significant UX problem because browser alerts:
- Are visually jarring and break the polished UI
- Completely block the page β user cannot interact
with anything until dismissed
- Are unstyled β look nothing like the app theme
- Are considered bad practice in all modern web apps
Every production web app (Notion, Linear, Vercel)
uses a toast/snackbar notification system instead.
π Proof β alert() Found in Source Code
In frontend/app/login/page.tsx:
alert("Supabase is not configured.");
alert("Please enter your email and password.");
if (error) alert(error.message);
These blocking popups fire on the most common
user actions β login attempts and errors.
β Current Behaviour
- User clicks Login without filling fields
- Browser freezes and shows a native OS popup
- User must click OK before doing anything
- Popup has zero styling β completely out of
place with the rest of the app
β
Expected Behaviour
- User clicks Login without filling fields
- A styled toast notification slides in
smoothly from the top-right corner
- Shows the error in the app's theme colors
- Auto-dismisses after 3-4 seconds
- User can still interact with the page
π‘ Proposed Implementation
New Files to Create
1. frontend/app/context/ToastContext.tsx
- Global
showToast(message, type) function
- Manages toast queue and auto-dismiss timer
- Types:
success | error | info
2. frontend/app/components/Toast.tsx
- Fixed notification at top-right of screen
- Styled with CSS variables matching app theme
- Smooth slide-in / fade-out animation
- Manual close button
Files to Modify
3. frontend/app/layout.tsx
- Wrap app with
<ToastProvider>
4. frontend/app/login/page.tsx
- Replace all
alert() calls with showToast()
π Summary of Changes
frontend/app/
βββ context/
β βββ ToastContext.tsx β new
βββ components/
β βββ Toast.tsx β new
βββ layout.tsx β minor edit
βββ login/
βββ page.tsx β replace alert()
π₯οΈ Steps to Reproduce
- Go to
http://localhost:3000/login
- Click "Sign in" without entering anything
- Observe the jarring native browser alert popup
- Compare with the polished homepage design
@Shriii19
I'd like to work on this issue.
Could you please assign it to me?
nsoc26
π Bug / Enhancement
Area: UI / User Experience β Global
Type: UX Fix
Priority: High β affects every user interaction
π Description
FlowForge currently uses native browser
alert()popups for ALL user feedback messages. This is a
significant UX problem because browser alerts:
with anything until dismissed
Every production web app (Notion, Linear, Vercel)
uses a toast/snackbar notification system instead.
π Proof β alert() Found in Source Code
In
frontend/app/login/page.tsx:These blocking popups fire on the most common
user actions β login attempts and errors.
β Current Behaviour
place with the rest of the app
β Expected Behaviour
smoothly from the top-right corner
π‘ Proposed Implementation
New Files to Create
1.
frontend/app/context/ToastContext.tsxshowToast(message, type)functionsuccess|error|info2.
frontend/app/components/Toast.tsxFiles to Modify
3.
frontend/app/layout.tsx<ToastProvider>4.
frontend/app/login/page.tsxalert()calls withshowToast()π Summary of Changes
frontend/app/
βββ context/
β βββ ToastContext.tsx β new
βββ components/
β βββ Toast.tsx β new
βββ layout.tsx β minor edit
βββ login/
βββ page.tsx β replace alert()
π₯οΈ Steps to Reproduce
http://localhost:3000/login@Shriii19
I'd like to work on this issue.
Could you please assign it to me?
nsoc26