-
Notifications
You must be signed in to change notification settings - Fork 22
feat: browseros API #284
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
Merged
Merged
feat: browseros API #284
Changes from all commits
Commits
Show all changes
60 commits
Select commit
Hold shift + click to select a range
c37c5e2
feat: created auth client
DaniAkash 8fcb8e9
feat: created login page for testing auth
DaniAkash f815109
feat: setup logout page
DaniAkash 6fc0fdc
feat: setup graphql codegen
DaniAkash 283a503
feat: setup graphql + react query utils
DaniAkash 15bad5d
feat: setup queryprovider with localforage
DaniAkash 75ff74a
feat: created auth provider
DaniAkash 1f315f8
feat: update claude.md
DaniAkash 84af25e
feat: documents for bulk conversation upload
DaniAkash aaf70a2
chore: install missing package
DaniAkash da3535d
fix: setup codegen to scan for .ts files
DaniAkash 184c19a
chore: setup check conversation query
DaniAkash cc36c0f
chore: merge with main
DaniAkash 20d5538
feat: upload conversation by profileId
DaniAkash 214d6d5
chore: upload messages in batches
DaniAkash 7c7b45c
feat: account for edge cases in conversation upload
DaniAkash 8ef99df
feat: delete uploaded conversations from localstorage
DaniAkash b2d4f97
feat: load conversation history from api
DaniAkash cceaa02
feat: implement delete conversation using graphql
DaniAkash dbf4aa4
feat: delete confirmation for conversation history
DaniAkash f05e9c9
fix: issue with clearing conversations after upload
DaniAkash d711b61
feat: implement pagination for graphql chat history
DaniAkash aaf526d
chore: update CLAUDE.md
DaniAkash 92341eb
chore: update claude.md
DaniAkash 7ea1949
feat: save conversations to server
DaniAkash 159b807
fix: handle streaming check on remote conversation save
DaniAkash d4d7186
feat: restore conversation from graphql
DaniAkash 512921d
fix: timestamp issue on the chat history page
DaniAkash 07e9c75
feat: sync llm providers from background script
DaniAkash 5c81374
feat: update llm providers on change via background script
DaniAkash 949ff36
chore: added a try catch block
DaniAkash f9fd942
feat: display incomplete providers in separate UI
DaniAkash acb03dd
feat: delete provider on server when initiated by user
DaniAkash fdf01fb
feat: setup scheduled tasks storage to sync to graphql
DaniAkash a32c281
feat: auto run sync in background script
DaniAkash 482b6dc
fix: sync all keys of scheduled tasks based on updatedAt timestamp
DaniAkash 6564acc
feat: added login dropdown on the sidebar
DaniAkash 086e981
feat: simplify sidenav header
DaniAkash df17473
feat: update header design after login
DaniAkash f5400e0
feat: setup profile page
DaniAkash 4df60e0
feat: added back button to profile page
DaniAkash af66ca3
fix: scrollbar flash in profile page
DaniAkash 7e66437
feat: finish login handshake
DaniAkash 9efb80d
feat: clear storage on logout
DaniAkash f0b392b
fix: logout page style
DaniAkash 2981daf
feat: added tooltip to encourage user to sign in
DaniAkash ce43dc8
feat: added back button to login page
DaniAkash 7d9c1fd
fix: upload logic for profile picture
DaniAkash 09dd794
feat: account for profile name in sidebar branding
DaniAkash 126e2fd
chore: set file upload url from backend request
DaniAkash 3c1d09c
chore: remove default placeholder from profile component
DaniAkash 77e06b8
chore: sync with main
DaniAkash dd921d9
Revert "chore: sync with main"
DaniAkash e10c4a3
Reapply "chore: sync with main"
DaniAkash 6f84cff
chore: updated lock file
DaniAkash 243e666
fix: run codegen before build:ext
shadowfax92 9d1d030
fix: run codegen before build:gent
shadowfax92 6721d10
chore: sync with main
DaniAkash 36530f1
chore: sync with main
DaniAkash 2b4c511
fix: remove hardcoded localhost header in magic link
DaniAkash File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,3 +30,6 @@ stats-*.json | |
| # Env files | ||
| .env* | ||
| !.env.example | ||
|
|
||
| # GraphQL generated files | ||
| generated/ | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| import path from 'node:path' | ||
| import { includeIgnoreFile } from '@eslint/compat' | ||
| import type { CodegenConfig } from '@graphql-codegen/cli' | ||
|
|
||
| // biome-ignore lint/style/noProcessEnv: env needed for codegen config | ||
| const env = process.env | ||
|
|
||
| const schemaPath = env.GRAPHQL_SCHEMA_PATH as string | ||
|
|
||
| const gitignorePath = path.resolve(__dirname, '.gitignore') | ||
|
|
||
| const ignorePatterns = includeIgnoreFile( | ||
| gitignorePath, | ||
| 'Imported .gitignore patterns', | ||
| ) | ||
|
|
||
| const ignoresList = ignorePatterns.ignores?.map((each) => `!${each}`) ?? [] | ||
|
|
||
| const config: CodegenConfig = { | ||
| schema: schemaPath, | ||
| documents: ['./**/*.tsx', './**/*.ts', ...ignoresList], | ||
| ignoreNoDocuments: true, | ||
| generates: { | ||
| './generated/graphql/': { | ||
| preset: 'client', | ||
| config: { | ||
| documentMode: 'string', | ||
| }, | ||
| }, | ||
| './generated/graphql/schema.graphql': { | ||
| plugins: ['schema-ast'], | ||
| config: { | ||
| includeDirectives: true, | ||
| }, | ||
| }, | ||
| }, | ||
| } | ||
|
|
||
| export default config | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| import { Loader2 } from 'lucide-react' | ||
| import type { FC, ReactNode } from 'react' | ||
| import { Navigate, useLocation } from 'react-router' | ||
| import { useSession } from '@/lib/auth/auth-client' | ||
|
|
||
| interface AuthGuardProps { | ||
| children: ReactNode | ||
| } | ||
|
|
||
| export const AuthGuard: FC<AuthGuardProps> = ({ children }) => { | ||
| const { data: session, isPending } = useSession() | ||
| const location = useLocation() | ||
|
|
||
| if (isPending) { | ||
| return ( | ||
| <div className="flex min-h-screen items-center justify-center bg-background"> | ||
| <Loader2 className="size-8 animate-spin text-muted-foreground" /> | ||
| </div> | ||
| ) | ||
| } | ||
|
|
||
| if (!session) { | ||
| return <Navigate to="/login" state={{ from: location }} replace /> | ||
| } | ||
|
|
||
| return <>{children}</> | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.