Commit Graph

256 Commits

Author SHA1 Message Date
gpt-engineer-app[bot] d9491fa007 Remove om konditoriet link
Removed the "Om konditoriet" link from the footer links section. Updated footer to only show “Vårt sortiment” and “Kontakta oss.”

X-Lovable-Edit-ID: edt-4d31e989-48ff-477e-b760-f7d67560bf83
2026-01-28 00:07:47 +00:00
gpt-engineer-app[bot] de557fc53c Changes 2026-01-28 00:07:46 +00:00
gpt-engineer-app[bot] 1847d08200 Add contact form page
Implemented a new contact flow:
- Added contact page with form and submission to email via edge function
- Exposed /contact route and wired to header/footer
- Updated edge function to send email using Resend (fetch-based) with CORS
- Integrated form validation and user feedback

X-Lovable-Edit-ID: edt-06d16b58-a22a-447e-b6cb-4a7b4af3347b
2026-01-28 00:07:21 +00:00
gpt-engineer-app[bot] f903d47874 Changes 2026-01-28 00:07:21 +00:00
gpt-engineer-app[bot] ca0d8dcd8d Byt till logga i footer
Replace footer text with logo image and fix copyright
- Swapped textual header for logo image in footer
- Updated logo alt text and sizing
- Corrected copyright line to "Lennart Svensson Konditorivaror"

X-Lovable-Edit-ID: edt-09cdb42f-4ed2-4482-9a83-f782926c4408
2026-01-28 00:05:29 +00:00
gpt-engineer-app[bot] bcd0f4a851 Changes 2026-01-28 00:05:28 +00:00
gpt-engineer-app[bot] 1495663cb2 Make Save button conditional
Gör Spara ändringar-knappen beroende på om användaren gjort ändringar i Mitt konto-sidan. Lades till originalProfile state för att jämföra med nuvarande värden, uppdaterade fetch-logik att spara originalprofil och visa Save-knappen endast när ändringar finns.

X-Lovable-Edit-ID: edt-4c28a1c2-8950-4a99-88a6-b1d5f54ff4ef
2026-01-28 00:03:20 +00:00
gpt-engineer-app[bot] ee02801b54 Changes 2026-01-28 00:03:19 +00:00
gpt-engineer-app[bot] d8188f6f2c Fix start subscription link
Changed HeroSection start button to link to abonnemang section (#abonnemang) instead of plans (#plans) to ensure navigation to subscription area.

X-Lovable-Edit-ID: edt-8df3264b-7991-40cf-a0b5-66d4b264015e
2026-01-28 00:01:10 +00:00
gpt-engineer-app[bot] 9ea06e9391 Changes 2026-01-28 00:01:09 +00:00
gpt-engineer-app[bot] 241cfd6f36 Smått på мобил-planerna
Anpassa mobilgränssnittet: minskad textstorlek och mindre kort på plansektionen. Uppdaterade PlansSection.tsx så att:
- Sectionen har mindre padding och mindre rubrik/textstorlek på små skärmar.
- Kortens innehåll och rubriker skalas ned (mindre fontstorlek och marginaler).
- Pris, axel-andel och funktioner visas i kompakt format på mobilen.
- CTA-knappen reducerad padding och textstorlek för bättre passform.

X-Lovable-Edit-ID: edt-4a9b67b5-7847-45c3-b1a8-65a8bd338666
2026-01-28 00:00:38 +00:00
gpt-engineer-app[bot] 64b51468b3 Changes 2026-01-28 00:00:37 +00:00
gpt-engineer-app[bot] 4e93aa8644 Make plans responsive mobile
Adjust PlansSection grid to show 3 columns on mobile with smaller gaps for tablet/desktop alignment, so subscriptions and images appear side-by-side on mobile.

X-Lovable-Edit-ID: edt-6fc75a02-2705-41f6-a8a0-ad38ed4bb53e
2026-01-27 23:59:24 +00:00
gpt-engineer-app[bot] e8adc191b6 Changes 2026-01-27 23:59:24 +00:00
gpt-engineer-app[bot] 2a204bac5c Hide scrollbar on page
Removed visible scrollbar across browsers by adding CSS to hide scrollbar (Firefox, IE/Edge, WebKit) while preserving scroll functionality. Updated src/index.css accordingly.

X-Lovable-Edit-ID: edt-7f8ddf69-2219-44a8-bada-d03e11f1b84a
2026-01-27 23:58:43 +00:00
gpt-engineer-app[bot] 20c26e197e Changes 2026-01-27 23:58:42 +00:00
gpt-engineer-app[bot] f95c79a8a3 Fix footer text and links
Changed footer: "Lennart Svenssons" to "Lennart Svensson" and removed "Allmänna villkor" link from footer.

X-Lovable-Edit-ID: edt-95d89159-a96f-4cb0-8be3-0fc9c57a0234
2026-01-27 23:43:22 +00:00
gpt-engineer-app[bot] 52179e5377 Changes 2026-01-27 23:43:22 +00:00
gpt-engineer-app[bot] e0e19b0d59 Enhance account confirmation flow
Redirect after save now passes justSaved flag; AccountConfirmation adapts heading and content based on whether user just saved or viewing existing data, and uses location state to show appropriate messages. Also adjust back link text and icon usage to reflect new behavior.

X-Lovable-Edit-ID: edt-b7c82fa3-77f1-43a5-b01f-b5e1fafcdb35
2026-01-27 23:24:05 +00:00
gpt-engineer-app[bot] 5e6ae3653a Changes 2026-01-27 23:24:05 +00:00
gpt-engineer-app[bot] 0a8507f84b Set abonnemang section id
Changed PlansSection section id from plans to abonnemang to support in-page navigation from account confirmation.

X-Lovable-Edit-ID: edt-b42457a8-0745-49c6-8086-9cd1b6be92fb
2026-01-27 23:22:43 +00:00
gpt-engineer-app[bot] 8fb8a1b4e1 Changes 2026-01-27 23:22:43 +00:00
gpt-engineer-app[bot] 062f4ff63f Update show subscription page
Implemented navigation to a new account confirmation flow that now displays:
- User address details from profile (street, postal, city)
- A subscription section with status and action to order
- Back to account link and navigation tweaks
Also added loading state handling and protected routing for authenticated users.

X-Lovable-Edit-ID: edt-42d4e7d6-3c3c-4e7a-bdd4-87fddcaf54df
2026-01-27 23:21:14 +00:00
gpt-engineer-app[bot] e82a311353 Changes 2026-01-27 23:21:14 +00:00
gpt-engineer-app[bot] 8dec4d85c3 Synced destructive red color
Adjusted CSS so destructive color matches primary red for consistency by updating --destructive and --destructive-foreground in src/index.css to align with the main red hue.

X-Lovable-Edit-ID: edt-fc59391d-856a-4d58-86c5-df53ccb4d8d5
2026-01-27 23:20:29 +00:00
gpt-engineer-app[bot] aca0058f44 Changes 2026-01-27 23:20:28 +00:00
gpt-engineer-app[bot] 1dcc08c662 Move back link top-left
Moved the "Tillbaka till startsidan" link outside the centered container to align it to the left, placing it above the main content in Account.tsx.

X-Lovable-Edit-ID: edt-9a074529-236d-41a4-b3a6-7d919bb944cb
2026-01-27 23:19:59 +00:00
gpt-engineer-app[bot] 85dfbae98b Changes 2026-01-27 23:19:58 +00:00
gpt-engineer-app[bot] c855c803d0 Split address into 3 fields
Inför tre separata fält för leveransadress (street_address, postal_code, city) i profil, uppdatera migrering, typ-definitioner, fetch och spara logik samt UI med tre inputs. Implementerade ny migrations, utökade API-samtal och uppdaterade Account-sidan att hantera de nya fälten.

X-Lovable-Edit-ID: edt-bcc30255-fbe9-4cbc-bbe4-9513937b286d
2026-01-27 23:19:37 +00:00
gpt-engineer-app[bot] 53fda6cd7e Changes 2026-01-27 23:19:36 +00:00
gpt-engineer-app[bot] 9f573cd525 Adjust account page layout
Moved "Tillbaka till startsidan" link to top-left under header; made sign-out red and kept as text link with underline on hover; removed the separate return button.

X-Lovable-Edit-ID: edt-6ddfe69a-b2ae-42d1-87e8-40c1d3660a2b
2026-01-27 23:18:46 +00:00
gpt-engineer-app[bot] 115ca0e103 Changes 2026-01-27 23:18:46 +00:00
gpt-engineer-app[bot] ddf3242773 Rensa Logga ut ruta
Bytte ut sign out box mot enkel textlänk och understrykning vid hover; gjorde länken för utloggning och bakåt-länk till separata små textlänkar under centrera area.

X-Lovable-Edit-ID: edt-2b146f5a-6fa1-48de-b1e7-9fa4521102c9
2026-01-27 23:17:44 +00:00
gpt-engineer-app[bot] afb703314f Changes 2026-01-27 23:17:43 +00:00
gpt-engineer-app[bot] a858b0c525 Rensade kontofältet för epost
Fjorde fältet Företagsnamn och behöll endast e-post och leveransadress på kontosidan. Användarens e-post visas (ensatt, ej redigerbart) och uppdateringsflödet justerat att endast spara adress.

X-Lovable-Edit-ID: edt-4be49567-5c4f-4f2c-9b1c-064db1544996
2026-01-27 23:16:58 +00:00
gpt-engineer-app[bot] a3287359a7 Changes 2026-01-27 23:16:57 +00:00
gpt-engineer-app[bot] 4afd8e2ef8 Uppdaterade konto flow
Lade till nya kontosida som sparar och visar företagsnamn/e-post samt leveransadress. Efter sparande navigeras användaren till en bekräftelsesida (/account/confirmation). Implementerade migrationssteg för att lägga till company_name i profils-tabellen och uppdaterade Kontosidan, bekräftelsesidan och routing.

X-Lovable-Edit-ID: edt-544c3dce-903e-4036-a44e-70c5deb2d6b1
2026-01-27 23:15:48 +00:00
gpt-engineer-app[bot] 1bbf4698fb Changes 2026-01-27 23:15:47 +00:00
gpt-engineer-app[bot] c30a081f49 Add account page and save address
Implement dedicated /account page for logged-in users, wire address from subscription into profile on order, and update account menu to navigate to account when logged in. Also extend AbonnemangForm to prefill/save address to profile and update App routing accordingly. Refactor AccountMenu to direct to account and simplify logic.

X-Lovable-Edit-ID: edt-998f3ddd-0243-4847-bad7-27b351f58fc3
2026-01-27 23:08:46 +00:00
gpt-engineer-app[bot] 6a4a1f9b96 Changes 2026-01-27 23:08:46 +00:00
gpt-engineer-app[bot] 58b6ebb21c Lagd profilsida för inloggade
Implementerade profilsida där inloggade kan redigera namn, telefon och adress. Lägg till ny page Profile med fetch och update via Supabase, lägga till rutt /profile, och utöka konto-meny med snabblänk till profilen. Innehåller klientvalidering och användarfeedback.

X-Lovable-Edit-ID: edt-15d9d135-22fa-4ec1-9fc7-b44edbb667a9
2026-01-27 23:07:05 +00:00
gpt-engineer-app[bot] d6fc2e43dc Changes 2026-01-27 23:07:04 +00:00
gpt-engineer-app[bot] 0bfec68fc4 Add forgot password flow
Implements forgot-password functionality:
- UI flow in AuthDialog for forgot mode
- Backend support via Supabase resetPasswordForEmail
- New ResetPassword page to set new password
- Routing updated to include /reset-password
- Extend useAuth with resetPassword and updatePassword methods

X-Lovable-Edit-ID: edt-d0fb934c-ec67-43f4-93e8-83e18d9a258a
2026-01-27 23:05:30 +00:00
gpt-engineer-app[bot] 2ea67737c3 Changes 2026-01-27 23:05:30 +00:00
gpt-engineer-app[bot] cba635b8f9 Switched to plate images
Replaced mandelkubb.jpg, kolasnitt.jpg, and chokladsnitt.jpg imports with plate variants to bypass caching and ensure fresh previews.

X-Lovable-Edit-ID: edt-825ff711-9bfc-4534-8928-9e491967814f
2026-01-27 23:03:40 +00:00
gpt-engineer-app[bot] 58a1ae153f Changes 2026-01-27 23:03:40 +00:00
gpt-engineer-app[bot] 60cf96c567 Align signup/login items
Adjusted AccountMenu layout to align the Sign Up button with the Log In option:
- Updated container padding from px-1 py-1 to px-2 py-1.5
- Updated Sign Up button styling to match width and typography (px-2 py-1.5, text-sm, rounded-sm) and hover/focus hover bg
- Ensured consistent vertical alignment with Log In item

X-Lovable-Edit-ID: edt-c46c1dfd-a4d9-40af-9a0f-b0fba9d488f1
2026-01-27 22:54:40 +00:00
gpt-engineer-app[bot] 0246efa525 Changes 2026-01-27 22:54:40 +00:00
gpt-engineer-app[bot] 886740cff0 Make login text black on hover
Updated Logga in item to ensure text turns black on hover and focus by adding hover:!text-black and focus:!text-black styles.

X-Lovable-Edit-ID: edt-c8899314-7da7-4ff1-bd4c-bc3bafd446ca
2026-01-27 22:52:31 +00:00
gpt-engineer-app[bot] da4742a7ec Changes 2026-01-27 22:52:30 +00:00