Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial support for Supabase Sync #554

Open
wants to merge 35 commits into
base: v1-dev
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
5bfc29f
wip on settings
joelmnz May 13, 2024
f719ace
settings saving
joelmnz May 13, 2024
3ec5482
wip on supabase connection
joelmnz May 13, 2024
9a0c165
wip on sync
joelmnz May 14, 2024
eaa2b4c
Merge remote-tracking branch 'origin/main' into main-supabase
joelmnz May 14, 2024
7aafb73
.
joelmnz May 14, 2024
0f623bb
sync wip
joelmnz May 14, 2024
a1c41b0
save to db working
joelmnz May 15, 2024
cf36e31
wip on import from server
joelmnz May 15, 2024
b6f78c3
added docs
joelmnz May 15, 2024
4c1b65f
better messages
joelmnz May 15, 2024
1ab20f0
Merge remote-tracking branch 'origin/main' into main-supabase
joelmnz May 15, 2024
da8c26e
publish fixes
joelmnz May 15, 2024
f4be5dc
PR tidy up
joelmnz May 15, 2024
9823cb8
Merge remote-tracking branch 'origin/main' into main-supabase
joelmnz May 17, 2024
460068b
improve sync + support sync from Module settings (e.g. first sync)
joelmnz May 17, 2024
319a33c
Merge pull request #1 from joelmnz/main-supabase
joelmnz May 18, 2024
1b3f193
Merge branch 'enricoros:main' into main
joelmnz May 21, 2024
002c650
wip not working, but might be close. need to put session info in app …
joelmnz May 25, 2024
67303e4
Merge branch 'enricoros:main' into main-supabaseUserAuth
joelmnz May 27, 2024
649ddc0
Merge branch 'enricoros:main' into main
joelmnz May 29, 2024
23afb25
doc: supabase db schema
joelmnz Jun 3, 2024
ade4299
wip: so close yet so far
joelmnz Jun 3, 2024
93ad2dd
Merge branch 'enricoros:main' into main
joelmnz Jun 6, 2024
cc69d20
Merge branch 'enricoros:main' into main-supabaseUserAuth
joelmnz Jun 6, 2024
72d61f5
Merge branch 'enricoros:main' into main
joelmnz Jun 11, 2024
ba1c7c1
Merge branch 'enricoros:main' into main
joelmnz Jun 26, 2024
161b104
enh: use Supabase user auth
joelmnz Jun 26, 2024
2121bcc
Merge branch 'main' into main-supabaseUserAuth
joelmnz Jun 26, 2024
bf97301
tidy: fix up code for PR, login consistency + db table check
joelmnz Jul 1, 2024
96dd36f
doc: update documentation
joelmnz Jul 1, 2024
dd7a344
fix: " vs ' for import
joelmnz Jul 1, 2024
58eff5e
fix: " vs ' in imports
joelmnz Jul 1, 2024
9457b2c
Merge pull request #2 from joelmnz/main-supabaseUserAuth
joelmnz Jul 1, 2024
7b30214
Merge branch 'main' into main
joelmnz Jul 26, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
publish fixes
joelmnz committed May 15, 2024
commit da8c26e6441855037a5786364b095d5b96af3bf0
1 change: 1 addition & 0 deletions src/modules/backend/backend.router.ts
Original file line number Diff line number Diff line change
@@ -60,6 +60,7 @@ export const backendRouter = createTRPCRouter({
hasLlmPerplexity: !!env.PERPLEXITY_API_KEY,
hasLlmTogetherAI: !!env.TOGETHERAI_API_KEY,
hasVoiceElevenLabs: !!env.ELEVENLABS_API_KEY,
hasSupabaseSync: !!env.SUPABASE_SYNC_URL && !!env.SUPABASE_SYNC_KEY,
llmConfigHash: generateLlmEnvConfigHash(env),
};
}),
1 change: 1 addition & 0 deletions src/modules/backend/store-backend-capabilities.ts
Original file line number Diff line number Diff line change
@@ -54,6 +54,7 @@ const useBackendCapabilitiesStore = create<BackendStore>()(
hasLlmPerplexity: false,
hasLlmTogetherAI: false,
hasVoiceElevenLabs: false,
hasSupabaseSync: false,
llmConfigHash: '',

loadedCapabilities: false,
2 changes: 1 addition & 1 deletion src/modules/supabasesync/SupabaseSyncSettings.tsx
Original file line number Diff line number Diff line change
@@ -45,7 +45,7 @@ export function SupabaseSyncSettings() {
return <>

<FormHelperText sx={{ display: 'block' }}>
Configure the Supabase Chat Sync, if you don't have a Supabase account you will need to create one.
Configure the Supabase Chat Sync, if you do not have a Supabase account you will need to create one.
</FormHelperText>

<FormControl orientation='horizontal' sx={{ justifyContent: 'space-between', alignItems: 'center' }}>
4 changes: 4 additions & 0 deletions src/server/env.mjs
Original file line number Diff line number Diff line change
@@ -68,6 +68,10 @@ export const env = createEnv({
GOOGLE_CLOUD_API_KEY: z.string().optional(),
GOOGLE_CSE_ID: z.string().optional(),

// Supabase Sync
SUPABASE_SYNC_URL: z.string().url().optional(),
SUPABASE_SYNC_KEY: z.string().optional(),

// Browsing Service
PUPPETEER_WSS_ENDPOINT: z.string().url().optional(),