Commit Graph

271 Commits

Author SHA1 Message Date
77dd052951 Added add admin and privacy in sidebar for admin 2026-04-04 20:56:49 +03:00
1207dbe20d removed the validation from the email 2026-04-02 16:05:20 +03:00
c9f52f64cb removed the validation from the email 2026-04-02 16:00:05 +03:00
5fd22f0e01 disabled the validation on email 2026-04-02 14:44:23 +03:00
2998a6bd75 fix: import useMapEvents as hook instead of dynamic component 2026-04-01 19:07:22 +00:00
571c85f14f fix: detect auth changes via polling and visibility change 2026-04-01 15:29:41 +00:00
9e1f8f517b Merge branch 'main' of http://45.93.137.91:3000/Rahaf/SweetHome 2026-04-01 02:18:08 +03:00
700b446463 Edit register 2026-04-01 02:18:03 +03:00
be14250a08 fix: request permission synchronously from user click gesture 2026-03-31 23:16:05 +00:00
eec7a9a75d fix: show notification permission prompt on user click instead of auto-request 2026-03-31 23:07:15 +00:00
4ca7106b48 Merge branch 'main' of http://45.93.137.91:3000/Rahaf/SweetHome 2026-04-01 02:05:39 +03:00
7685134a39 Edit register 2026-04-01 02:05:32 +03:00
6ad2457e74 fix: use HTTPS URL in firebase.js 2026-03-31 22:53:34 +00:00
98c3f51df2 fix: switch API base URL to HTTPS (nip.io) 2026-03-31 22:48:50 +00:00
5d44fb56ec Edit profits 2026-04-01 01:46:48 +03:00
ba389042c2 chore: add nip.io domain with SSL for HTTPS notifications 2026-03-31 22:38:11 +00:00
c546e11ed3 Merge branch 'main' of http://45.93.137.91:3000/Rahaf/SweetHome 2026-04-01 01:34:54 +03:00
8d7efe82a4 Edit profits for owner 2026-04-01 01:34:51 +03:00
52758eae9d fix: wait for hydration before checking auth in NotificationHandler 2026-03-31 22:12:55 +00:00
a824fb0c7c fix: send FCM token to User/SetFCMToken endpoint 2026-03-31 21:24:43 +00:00
9e87aa90e8 feat: send FCM token to backend on permission grant 2026-03-31 20:20:52 +00:00
199e78d6b1 chore: set VAPID key for FCM 2026-03-31 20:09:07 +00:00
df9711f539 fix: only request notification permissions for signed-in users 2026-03-31 19:52:47 +00:00
2bea2d190c feat: integrate Firebase Cloud Messaging for push notifications 2026-03-31 19:50:48 +00:00
81674c4aa7 fix: add remote image pattern for next.config.mjs 2026-03-31 19:45:03 +00:00
cf7f51b514 fix: update GetMyRentListings endpoint (userId removed from URL) 2026-03-31 18:46:12 +00:00
0171c7a2bf fix: prepend /Pictures/ to image paths for nginx static serving 2026-03-30 18:52:08 +00:00
9f6a730a94 Show login dialog when favoriting without auth 2026-03-30 18:34:19 +00:00
2c04cd751f Fix favorites: optimistic remove + no loading flash 2026-03-30 18:18:09 +00:00
db184bbace Merge branch 'main' of http://45.93.137.91:3000/Rahaf/SweetHome 2026-03-30 21:02:43 +03:00
230805e02b Edit phone in footer 2026-03-30 21:02:34 +03:00
3b9831a513 Integrate FavoriteProperty API: add/remove/get favorites with real backend 2026-03-30 17:54:42 +00:00
1f40c6a4fd Edit footer 2026-03-30 20:36:09 +03:00
4dd60ec14a Fix copy link & Instagram sharing: add clipboard fallback for HTTP 2026-03-30 16:28:12 +00:00
68cb802d60 Merge branch 'main' of http://45.93.137.91:3000/Rahaf/SweetHome 2026-03-30 19:26:08 +03:00
d22248248d Added sidebar 2026-03-30 19:26:03 +03:00
d375ed9d89 Add share dropdown: Facebook, WhatsApp, Telegram, Instagram, Copy Link
- Replaced single Facebook button with dropdown menu
- WhatsApp: shares via wa.me with structured text + link
- Telegram: shares via t.me with text + URL
- Instagram: copies link + opens Instagram
- Copy Link: copies URL with toast notification
- Each share includes: property type, price, rooms, area, link
2026-03-30 16:08:35 +00:00
e6d754d014 perf: convert fonts to WOFF2 (10x smaller), fix preload to match, add html,body CSS font rule 2026-03-30 15:34:36 +00:00
dee74d335f fix: font-display block → swap to prevent FOIT in header 2026-03-30 15:32:08 +00:00
8f2679253b Fix font loading flash: font-display block + preload
- Changed @font-face from font-display: swap to block (hides text until font loads)
- Added preload links for 3 most used font weights (Regular, Bold, Medium)
- Eliminates FOUC (Flash of Unstyled Content) where default font shows first
2026-03-30 15:31:35 +00:00
9bf67ffa38 Add SweetHome logo as OG image fallback for Facebook share
- Always includes logo.png as OG image
- Property images shown first if available, logo as second
- If no property images, shows logo only
2026-03-30 14:07:52 +00:00
d56b4d2a11 Fix Facebook share: server-side OG metadata via generateMetadata
- Split page.js into server component + PropertyDetail client component
- Server component exports generateMetadata that fetches property data
- OG tags now rendered in initial HTML (visible to Facebook/Twitter crawlers)
- Removes client-side useEffect OG tag injection (crawlers don't execute JS)
2026-03-30 13:44:52 +00:00
4d43cdaba2 Improve Facebook share: structured text + OG meta tags
- Share quote now includes: property type, price, rooms, area, description snippet
- Added Open Graph meta tags (og:title, og:description, og:image, og:url)
- Added Twitter card meta tags
- OG tags set dynamically via useEffect for client-side rendering
2026-03-30 13:36:12 +00:00
891756e092 Edit background in register 2026-03-30 15:28:39 +03:00
722d69cc92 Fix image URLs: handle paths with or without leading slash
Some API paths have / (e.g. /Pictures/abc.jpg) and some don't (e.g. scaled_photo.jpg).
Now always inserts / between API base and path.
2026-03-30 01:35:20 +00:00
9d671f1985 Fix: add missing imports and currencies fetch in add property form
- Import getCurrencies and uploadPicture were missing from import statement
- Added currencies state and fetch call in useEffect
- Added debug log in handleImageUpload
2026-03-30 01:25:48 +00:00
505dcd4bb0 Fix image upload field name: 'file' -> 'image'
Endpoint expects field named 'image', returns path like /Pictures/abc123.jpg
2026-03-30 01:15:57 +00:00
8f700d0957 Fix missing uploadedImagePaths state declaration 2026-03-30 01:06:23 +00:00
39193337b3 Display property images from API using full URLs
- All mappers extract images from propertyInformation.images
- Paths prefixed with API base URL (http://45.93.137.91/api)
- Falls back to placeholder if no images
- Updated: main page, properties listing, property detail, owner properties
2026-03-30 01:01:42 +00:00
4299968764 Add image upload to property form via FilesController
- Added uploadPicture() API function for POST /Files/UploadPicture
- Images uploaded immediately on selection, paths stored
- PropertyInformation.images sent with server-side paths
- Remove image also removes from uploaded paths
2026-03-30 00:57:52 +00:00