Commit graph

242 commits

Author SHA1 Message Date
Builder.io
50ebbd06aa Update createInitialProfile signature
cgen-5e34bb7ca93143268d1cde447daa85a7
2025-10-04 10:38:36 +00:00
Builder.io
a7e8b61199 Normalize current user return
cgen-bc45884aaf6b4b22823236e6fe84d754
2025-10-04 10:38:23 +00:00
Builder.io
63cb1a4642 Pass email to createInitialProfile on error
cgen-1a4af17b2f464a179e274a7c92fc94c1
2025-10-04 10:38:11 +00:00
Builder.io
6b8da6efea Add streak helper utilities
cgen-f0cb506b21104388a1be4a2671622a4b
2025-10-04 10:37:48 +00:00
Builder.io
6041c0afd8 Add streak fields to AethexUserProfile interface
cgen-09d127f3b4cc45a18dc3802776bfe485
2025-10-04 10:37:24 +00:00
Builder.io
9120b76477 Add streak fields to database types
cgen-678c1b0c87034c67b93ba67e927d9775
2025-10-04 10:35:39 +00:00
Builder.io
18ea884efc Ensure awardAchievement updates XP using Supabase data
cgen-a6c761219b6d45ff8dc12d85e62ef0f1
2025-10-01 00:58:25 +00:00
Builder.io
13bd717336 Make community service rely on Supabase for reads
cgen-5e5b0294d5b843cdb86140eca686cef6
2025-10-01 00:57:36 +00:00
Builder.io
2195308de9 Remove localStorage fallback in setUserRoles
cgen-fbdbc86b741348ad91bf73727163d21b
2025-10-01 00:56:14 +00:00
Builder.io
d59859ea05 Remove localStorage fallback from role service
cgen-7796b3b52a03466fb0127eb307106daf
2025-10-01 00:56:08 +00:00
Builder.io
95c3839228 Remove unused aethexToast import
cgen-cb6e01b98b014fc7bf2c2e5dc8629212
2025-10-01 00:56:01 +00:00
Builder.io
b193c280a1 Remove local achievement fallbacks and rely on Supabase
cgen-1e5a5a6f6f014fa59abcb5e35ad3a4ce
2025-10-01 00:55:25 +00:00
Builder.io
a6b7c214c3 Remove local fallback in createInitialProfile
cgen-a4aa9cf9f3fe404fb3436bdebb61bd7f
2025-10-01 00:53:49 +00:00
Builder.io
a53162600b Remove local fallback in listProfiles
cgen-f8093d03b2844778b1abe6bef2d24c89
2025-10-01 00:53:35 +00:00
Builder.io
22e3ea7ac8 Remove local fallback in getProfileById
cgen-c14e034888eb46118fc6593904d0ff64
2025-10-01 00:53:30 +00:00
Builder.io
ec086655df Remove demo fallback in getCurrentUser
cgen-75c884f4f4284d8699199a6a25547f45
2025-10-01 00:53:25 +00:00
Builder.io
eec76c50d5 Fallback listProfiles when table missing
cgen-f0da836d6f87442da49bcb67d2bb86f4
2025-10-01 00:01:37 +00:00
Builder.io
04667c4a8f Fallback getProfileById when table missing
cgen-03d7ccafa8f0483ca6fbc43738805d28
2025-10-01 00:01:19 +00:00
Builder.io
b3cd4c9bbf Create local fallback in createInitialProfile when table missing
cgen-236b45a21038444cb9b9ea24baedb328
2025-10-01 00:01:07 +00:00
Builder.io
2c74312458 Fallback when user_profiles missing — return local demo profile
cgen-d54ed16ecf0843a1ba1e24976359c079
2025-10-01 00:01:00 +00:00
Builder.io
af52706b2f Normalize supabase imports to alias
cgen-7a7ea548b1664e8eb32d1950991019ee
2025-09-30 23:22:34 +00:00
Builder.io
a4d0f26d01 Normalize supabase imports to alias
cgen-9b8b9c5e485d4937b822c534bba5b8b8
2025-09-30 23:22:18 +00:00
Builder.io
e0c7394f74 Normalize supabase imports to alias
cgen-423a21ae749f45c4b3d7882f929d1fbf
2025-09-30 23:22:15 +00:00
Builder.io
8cda6c9075 Remove duplicate import leftover blank line
cgen-53ee94601f3e4615b41e161f9e45a950
2025-09-30 23:19:35 +00:00
Builder.io
b30223b712 Remove duplicate import in aethex-social-service
cgen-0b1495f3edca468eb6988922ae3c0e7d
2025-09-30 23:18:49 +00:00
Builder.io
e98476e055 Add user_follows table type
cgen-854a25ba4d4749848776fd3bbfa18621
2025-09-30 23:14:37 +00:00
Builder.io
b536bb92d6 Use Supabase only for social service
cgen-f7efa9713fc7429e8239a46f709003cc
2025-09-30 23:08:18 +00:00
Builder.io
867619529e Remove demo fallbacks from communityService
cgen-f22927c8e9144ab18e2ff6fad7b95409
2025-09-30 23:07:55 +00:00
Builder.io
f6be0e0e7e Remove demo feed import
cgen-17b90f289074485fa1177c88a88ddaa3
2025-09-30 23:03:34 +00:00
Builder.io
5a7b56a792 Prettier format pending files 2025-09-30 22:55:59 +00:00
Builder.io
12127ff4ef Remove mock fallback from updateUserXPAndLevel
cgen-32de4238eaaa40f789eac3bbc17d4fe1
2025-09-30 22:54:48 +00:00
Builder.io
237905c160 Update interests methods to require Supabase
cgen-ac6531d0ece840f1a6c71564ce26fd0b
2025-09-30 22:53:43 +00:00
Builder.io
c12b79ac17 Update createInitialProfile to remove mock fallback
cgen-72d47237768349d1b223c597d8a4bd54
2025-09-30 22:53:32 +00:00
Builder.io
c6c2155413 Update updateProfile to remove mock fallback
cgen-a8151420d19b459c8637eca0dd941c84
2025-09-30 22:53:14 +00:00
Builder.io
b5a65d7f24 Update listProfiles to rely solely on Supabase
cgen-7a131d2da1524af8b6071a7e4ffc27d9
2025-09-30 22:53:07 +00:00
Builder.io
16f1996a3e Remove mock fallback from getCurrentUser and getProfileById
cgen-ebd1779544b9413b9dea76b7d7c17edb
2025-09-30 22:52:22 +00:00
Builder.io
b977c3c675 Add ensureSupabase helper
cgen-979e81e5a48a4c67904db267282a72dd
2025-09-30 22:51:44 +00:00
Builder.io
78254e1e40 Remove mockAuth import
cgen-44f721c8c680458aa63ebb59fd94f8bf
2025-09-30 22:51:36 +00:00
Builder.io
885693d2e6 Simplify Supabase client and remove mock fallback
cgen-43e2f0c3c9294158bef35e367965ba18
2025-09-30 22:51:32 +00:00
Builder.io
2fb9c140d0 Use mockAuth profile in integration test
cgen-63261292e53e40a688f78b61e24f4246
2025-09-30 22:10:59 +00:00
Builder.io
d313d64dab Sync mock profile after initial creation
cgen-dade1514be1741e7bd59a44fb2f95ae0
2025-09-30 22:10:02 +00:00
Builder.io
3cbf1cdecb Keep mock profile in sync after Supabase update
cgen-4231258ed8f34bf6a446f5555fd27689
2025-09-30 22:09:49 +00:00
Builder.io
37a549f3e7 Enrich listProfiles mapping
cgen-1d0e232d7dd4453a814b2558c7e615dc
2025-09-30 22:09:35 +00:00
Builder.io
4c670092e4 Enrich Supabase profile fetch with fallback email
cgen-8f8fbe1f4d59475e9eabbf18a3b1a768
2025-09-30 22:09:29 +00:00
Builder.io
019945863e Add profile lookup and listing helpers
cgen-4559e4c1ecfe4176866c30f5af37f0c1
2025-09-30 22:05:03 +00:00
Builder.io
523199508a Expose all mock profiles
cgen-41f1a1260873414d9fb0e499123b11b2
2025-09-30 22:04:37 +00:00
Builder.io
62971899ee Refine onboarding integration test mocks
cgen-b194d7af77dd428c8df3950f288341f8
2025-09-30 22:02:52 +00:00
Builder.io
bc3b8f9d20 Add onboarding integration test
cgen-6f556f4b240242eda148c08428d795c3
2025-09-30 22:02:31 +00:00
Builder.io
c9b5f5e637 Prettier format pending files 2025-09-30 21:32:01 +00:00
Builder.io
0cdd7bd7d6 Improve profile completion detection
cgen-e1d003ece5b946c39081526e975144df
2025-09-30 21:23:51 +00:00
Builder.io
f3f5a49e45 Add link/unlink identity support
cgen-4f85ab2d1842464284ddc3cb13f488a9
2025-09-30 08:27:48 +00:00
Builder.io
13a12d212c Enhance mock auth with identity linking support
cgen-82f426a67b00456fb95c68f5e79f12e7
2025-09-30 08:27:07 +00:00
Builder.io
144f975e7e Prettier format pending files 2025-09-30 04:56:36 +00:00
Builder.io
b687f4de04 Add signInWithOAuth to supabase auth proxy
cgen-e5aaa915f7f94248bd15ad7831b10207
2025-09-30 04:50:31 +00:00
Builder.io
56436bcfb7 Add signInWithOAuth mock and proxy support
cgen-41599b5f62b9482b87186aa5eed0c264
2025-09-30 04:50:13 +00:00
Builder.io
86db6bac9e Fix auth state updates when Supabase auth falls back to mock by subscribing to both real and mock auth state changes
cgen-8e8e553dd55a470b8f18a9db949b0a5b
2025-09-30 04:37:27 +00:00
Builder.io
49cfc10890 Prettier format pending files 2025-09-30 02:01:39 +00:00
Builder.io
cf3f00fb62 Make role services compatible with role_id schema and roles table
cgen-2438b2f80028422a9a6bfe6be36f901a
2025-09-30 01:59:09 +00:00
Builder.io
7f95152632 Prettier format pending files 2025-09-30 01:40:07 +00:00
Builder.io
f70ffedd4e Make profiles and interests persistent in offline mode using mockAuth/localStorage when Supabase is not configured
cgen-15ee54e7b7594e35ab49d6cb4653fca7
2025-09-30 00:25:24 +00:00
Builder.io
8df7ddda9e Add robust local fallback for achievements, XP/level, and onboarding without Supabase
cgen-4ec3c99880b14107a6a6cfe83dd8af97
2025-09-30 00:24:18 +00:00
Builder.io
63153cfee3 Add Builder CMS client helper
cgen-0164ce382c7548628c12e74a6cb5f262
2025-09-29 04:07:38 +00:00
Builder.io
16b1505dac Remove conflicting optional property from AethexUserProfile to satisfy TypeScript structural typing
cgen-88b2a2eb50514941b89c98e87db92ff7
2025-09-28 07:16:58 +00:00
Builder.io
7b6082adf7 Prettier format pending files 2025-09-28 05:04:51 +00:00
Builder.io
c322b37910 route onboarding achievement award via server API
cgen-14c7ba865740498c83ef39749a97f40b
2025-09-28 04:46:49 +00:00
Builder.io
c7aab36dc9 fix: use correct achievement for onboarding
cgen-4710dc1a34cf492b98f0d908fe8f16be
2025-09-28 04:23:46 +00:00
Builder.io
7301fd0169 fix: import createClient in client supabase
cgen-6c2904fc0c2b4997af9fc0c5ba870894
2025-09-28 04:10:17 +00:00
Builder.io
9748c0c331 Wire client to server API for posts and onboarding to avoid RLS issues
cgen-4d11caba61394f70aed01c897057e1b2
2025-09-28 04:01:31 +00:00
Builder.io
223f06fcf5 Prettier format pending files 2025-09-28 01:30:28 +00:00
Builder.io
d710a8f759 Seed demo posts automatically in communityService fallback
cgen-2fc11181be3249648d320cea3b958bb2
2025-09-28 01:03:04 +00:00
Builder.io
175c22c348 Add profile completion checker
cgen-b50e9bd57c724cf19c901f9d01ef0cf6
2025-09-28 01:01:42 +00:00
Builder.io
76f9494548 Prettier format pending files 2025-09-28 00:32:17 +00:00
Builder.io
e12a453f61 Add safe channel fallback in supabase proxy
cgen-e200d5d6f64b4dc0b04825c5369711a9
2025-09-28 00:26:42 +00:00
Builder.io
e60ed816d4 Prettier format pending files 2025-09-28 00:23:53 +00:00
Builder.io
d7f628015d Guard supabase.channel in aethexRealtimeService
cgen-77ab1761744c406d80570099654cb9df
2025-09-28 00:23:02 +00:00
Builder.io
abaee59965 Guard Supabase realtime channel usage to prevent runtime errors
cgen-2bd999acc01d4c88aea6ab918f2ea3f9
2025-09-28 00:17:17 +00:00
Builder.io
15dbb11bcf Prettier format pending files 2025-09-27 23:53:05 +00:00
Builder.io
72a90ef347 Fallback recommended users to demo profiles
cgen-b1f6a1e64f7e41299a73278fa1530c51
2025-09-27 23:49:15 +00:00
Builder.io
08da68486a Add demo feed seeding utility
cgen-21ba02a62b214d1eb117d2660a770543
2025-09-27 23:48:47 +00:00
Builder.io
98ff196d8c Seed demo data and fallback for feed; move Admin link to user menu
cgen-772e1d3ac799495e9ca0e61214e0b2a7
2025-09-27 23:48:16 +00:00
Builder.io
cd41527a58 Prettier format pending files 2025-09-27 23:26:32 +00:00
Builder.io
a50af29ccb Improve updateProfile to create row when missing; include banner_url in profile creation
cgen-b9fe2367200f495684300fd4a7ef38cb
2025-09-27 22:34:28 +00:00
Builder.io
a4a0c0329b Insert banner_url into Insert and Update types for user_profiles
cgen-78bc74aae5aa4e009fad1a15f380590c
2025-09-27 22:29:56 +00:00
Builder.io
bfa0f89f13 Add banner upload input and include banner in completion
cgen-4a69fbe41a0941f8b5d8ba908b67ec1a
2025-09-27 22:29:31 +00:00
Builder.io
6091b44e4c Remove mock fallbacks when DB is available; create profile on missing row; use DB-only for projects
cgen-7c483f59a89c44fb94b54bd9a61888b5
2025-09-27 22:15:49 +00:00
Builder.io
f53d1a7735 Improve mock fallback when Supabase returns empty objects
cgen-1919042aa9764046a6dcdbd9282911c5
2025-09-27 22:09:07 +00:00
Builder.io
38367daebe Make project service resilient with timeout and localStorage fallback
cgen-0a88274abfc64dc5b2fc449daf876ffe
2025-09-27 21:57:41 +00:00
Builder.io
ef56ff44fd Prettier format pending files 2025-09-27 21:48:02 +00:00
Builder.io
adf11251ec Add social/network service
cgen-f0b222929f3e49439a3424259ec71d18
2025-09-27 21:43:13 +00:00
Builder.io
96361e7852 Restore full adapter and add role service
cgen-fbbed0f2f74845869a52e41fb6d2ec6a
2025-09-27 21:09:10 +00:00
Builder.io
230997cd86 Append role service to adapter
cgen-f3c6ce75f0074dc293666da343e307ab
2025-09-27 21:08:31 +00:00
Builder.io
385536e3ad Prettier format pending files 2025-09-27 20:58:59 +00:00
Builder.io
793b437730 Make mock query builder thenable so await returns {data,error}
cgen-40d5853fd30140b8a14188a749884247
2025-09-27 20:57:01 +00:00
Builder.io
b1021f0b1b Return object instead of null from mock single() to avoid spread errors
cgen-c16ce148051f49a397aa0953934fffb6
2025-09-27 20:56:46 +00:00
Builder.io
d35c4bbeea Provide chainable mock for supabase.from when not configured to avoid loading hangs
cgen-515a21feaa744d9990d68533b41ebbe8
2025-09-27 20:56:31 +00:00
Builder.io
76720abb34 Fix supabase proxy to not mock database queries when configured
cgen-c1a3ddaf730745ff8dd4057dc69ebd1f
2025-09-27 00:36:41 +00:00
Builder.io
ff06e4600d Add fallbacks to mock storage for missing tables/unreachable DB; improve resilience
cgen-e7f42cd055f94d6d91d75ade377027ed
2025-09-27 00:35:40 +00:00
Builder.io
f1c849b472 Fix initialization order of isSupabaseConfigured
cgen-c0bd5b2bddf64725b7b6386bb5e6f48c
2025-08-17 01:14:35 +00:00
Builder.io
63ee6e6dd1 Add environment variable debugging
cgen-66cce74d49f54619af3377dbe56a34fc
2025-08-17 00:18:50 +00:00
Builder.io
e22e74f647 Add global Supabase test function
cgen-e4718614a9e8400c9c01122f80dbbdee
2025-08-17 00:18:17 +00:00
Builder.io
d393a34157 Add direct Supabase connection test
cgen-6956b0a4c52e4ea984b68a4102aff0b5
2025-08-17 00:18:06 +00:00
Builder.io
491f6eaf06 Update signOut to notify auth state changes
cgen-7b6080a47fe74da1a173a231cd272f7b
2025-08-17 00:16:03 +00:00
Builder.io
04f4418803 Update signIn and signOut to notify auth state changes
cgen-45a41023af394c5195abf123501266df
2025-08-17 00:15:56 +00:00
Builder.io
cd3ebd8852 Improve mock auth session management
cgen-c34330c73eeb4aa8873011c6f6e86489
2025-08-17 00:15:45 +00:00
Builder.io
d524f128f1 Fix onAuthStateChange in proxy
cgen-10faf35cf70944daacd95863cd6801f3
2025-08-17 00:15:34 +00:00
Builder.io
01bec84abb Improve other auth methods in proxy
cgen-322a0a56df934064950e20a7a07ef977
2025-08-17 00:15:26 +00:00
Builder.io
3d50af82cd Fix Supabase proxy to properly handle connection failures
cgen-4d110997bc7a4d9bbd0b8c087b10faae
2025-08-17 00:15:11 +00:00
Builder.io
f6896a7d5d Fix createInitialProfile to work with existing database schema
cgen-136270cd5c4648229b59ae6f94aabc30
2025-08-17 00:14:27 +00:00
Builder.io
8f3f762bcf Update user service to work with existing database structure
cgen-06b007030c664654bfa74178ccd60caa
2025-08-17 00:13:53 +00:00
Builder.io
e0f939c4e5 Update database adapter to work with existing shared database
cgen-94d8dbc08c204cf28de7ddc58f1b3f3d
2025-08-17 00:13:42 +00:00
Builder.io
fdffadc7f0 Remove duplicate export declarations
cgen-417785668e2b46429c446d82ad2d3ab1
2025-08-17 00:12:12 +00:00
Builder.io
72dd012296 Simplify Supabase config with working credentials
cgen-bcae1e70e5f14f7ebc523b18f63cf929
2025-08-17 00:10:30 +00:00
Builder.io
892139829a Add fallback to mock authentication when Supabase fails
cgen-b104e9d8751642338d83d1384d6df9db
2025-08-17 00:06:30 +00:00
Builder.io
9b7033d32f Create mock authentication service for development
cgen-a96f3a61be7644c1ab9f1aeda2649ec7
2025-08-17 00:05:56 +00:00
Builder.io
117850501b Fix Supabase configuration and add proper connection testing
cgen-273c48e01e314dc392022b241ace8cee
2025-08-17 00:04:37 +00:00
Builder.io
478dc8836b Add connection testing and fallback for Supabase
cgen-d3c88383855e49db8dd63e0d326a1cad
2025-08-17 00:04:19 +00:00
Builder.io
121e8c2681 Fix notification service field names
cgen-ed3a6d29c49f48aa950295df52af46b0
2025-08-16 04:15:17 +00:00
Builder.io
2e7c77d11f Fix TypeScript errors with proper type safety
cgen-90f78422492540b9b952e8b8ad55c173
2025-08-16 04:14:58 +00:00
Builder.io
1d737acd6b Fix updateUserXPAndLevel to handle missing database fields gracefully
cgen-d3549eb875f84ca286f89b1db2d35a35
2025-08-16 04:12:10 +00:00
Builder.io
854ac3b37e Fix getUserAchievements to handle missing unlocked_at field
cgen-48f30678b39e43ec8a6fd8e605154254
2025-08-16 04:11:50 +00:00
Builder.io
9f23130777 Fix updateUserXPAndLevel profiles update table name
cgen-4a0f8a14fa3e4bce9b213664593c0b7e
2025-08-16 04:11:18 +00:00
Builder.io
6002836d22 Fix updateUserXPAndLevel profiles table name
cgen-43ce9340f28a47649b49d2e042d7f08a
2025-08-16 04:11:12 +00:00
Builder.io
a1ce309b12 Fix points_reward to xp_reward in updateUserXPAndLevel call
cgen-7fc0fd30e716418eb0930ba74b9e162f
2025-08-16 04:10:59 +00:00
Builder.io
644d8b79b1 Fix points_reward to xp_reward in ordering
cgen-271277c3a9424e8e88fda9edfa1d8a66
2025-08-16 04:10:47 +00:00
Builder.io
718076bd87 Fix achievement interface to match database schema
cgen-cb155c3346474365ad99fcee5b5976ef
2025-08-16 04:10:34 +00:00
Builder.io
4032fa747c Fix createInitialProfile table name
cgen-392c7eb10e3b4f37b2e6a0634a2ce4c1
2025-08-16 04:10:06 +00:00
Builder.io
74ddee8362 Fix updateProfile table name
cgen-442d6eec32164c9f94ce071ede57663f
2025-08-16 04:09:54 +00:00
Builder.io
31753f3717 Fix database table name from profiles to user_profiles
cgen-4a0ff9b81ae94ea4bed5463240b3c519
2025-08-16 04:09:47 +00:00
Builder.io
3b2f04b68b Add isSupabaseConfigured export
cgen-7fe01e523dab4f73bfbc0da6d18abe05
2025-08-06 02:18:29 +00:00
Builder.io
d47d9329b3 Prettier format pending files 2025-08-06 02:15:39 +00:00
Builder.io
0c0be1305d Rename demo_url to live_url for production
cgen-cc60444ad3754768894cbccec491e5ee
2025-08-06 02:13:19 +00:00
Builder.io
e220b00a1f Remove demo storage file
cgen-13f91198a8ac46d4bb8ec7a2f03bf233
2025-08-06 02:12:22 +00:00
Builder.io
8b06e9cc71 Remove demo fallbacks and require Supabase configuration
cgen-4d661c08fb904cf28ee2df7d8745dbb7
2025-08-06 02:11:25 +00:00
Builder.io
7097f8408b Prettier format pending files 2025-08-06 00:35:27 +00:00
Builder.io
931158d9dd Create database adapter for existing AeThex schema
cgen-3c850819cf154266a319eebb1dbea822
2025-08-06 00:29:35 +00:00
Builder.io
de4d9dcd89 Create demo storage service for offline functionality
cgen-80d9b7f7731641a68a68fed9b4bc8155
2025-08-06 00:25:24 +00:00
Builder.io
0fafedb725 Fix Supabase configuration with fallback for missing environment variables
cgen-29fa12290ad14af2ac17820babaf345e
2025-08-06 00:12:59 +00:00
Builder.io
c20613a8be Create Supabase service helpers
cgen-b271b1ef9e5a4a1a96416f389455706a
2025-08-06 00:04:05 +00:00
Builder.io
c9e541741a Create TypeScript database types
cgen-e41b24e47dca43288271a356e05489fc
2025-08-06 00:03:12 +00:00
Builder.io
71ce8dce2d Create Supabase configuration
cgen-b9943585781b4c149ec41b73047a1192
2025-08-06 00:02:38 +00:00
Builder.io
2443886384 Create enhanced toast utility for AeThex theme
cgen-11935451a42b476ea89f36eef7a6200a
2025-08-05 23:18:10 +00:00
Builder.io
37df3b33de Initial commit 2025-08-05 20:03:34 +00:00