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

Multi-repo #1153

Merged
merged 88 commits into from
Jan 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
194e52e
wip: multi-repo
ggordonhall Oct 30, 2023
93c62eb
update answer prompt for multi-repo
ggordonhall Nov 23, 2023
2965d21
WIP: projects
calyptobai Nov 24, 2023
be504ed
WIP: projects
calyptobai Nov 25, 2023
c3d747f
WIP: Projects
calyptobai Nov 28, 2023
efeb404
WIP: Projects
calyptobai Nov 28, 2023
ccbe7de
WIP: Projects
calyptobai Nov 29, 2023
6687f43
WIP: Projects - refactoring conversation threads for multi-project co…
calyptobai Nov 30, 2023
d098fb9
WIP: Projects
calyptobai Dec 1, 2023
fa7b62a
WIP: Projects
calyptobai Dec 20, 2023
5374ada
WIP: Projects
calyptobai Dec 4, 2023
eb26d9f
WIP: Projects
calyptobai Dec 5, 2023
8088dba
WIP: Projects
calyptobai Dec 6, 2023
92415c7
WIP: Projects
calyptobai Dec 11, 2023
76dac26
fix repo tantivy search (#1174)
ggordonhall Dec 13, 2023
f151485
Fix conversation store/load
calyptobai Dec 13, 2023
997db17
Add `PUT /projects/:id/repos`, change `DELETE /projects/:id/repos/:id`
calyptobai Dec 13, 2023
924f778
Avoid JSON body in `DELETE /projects/:id/repos`
calyptobai Dec 13, 2023
1b3d880
Filter repos in semantic search by query repos, if present
calyptobai Dec 13, 2023
8c0b20d
Sync docs in background, whether stream still exists
calyptobai Dec 14, 2023
ae8bbee
Return thread_id in conversation routes
calyptobai Dec 14, 2023
10e1507
Fix handling of `conversation_id` with `/answer`
calyptobai Dec 14, 2023
242960a
Fix routing for `DELETE /projects/:id/conversations/:id`
calyptobai Dec 15, 2023
c65ec7f
Use `conversation_id` instead of `thread_id` in `GET /answer`
calyptobai Dec 19, 2023
7da9a32
Return errors with debug formatting
calyptobai Dec 21, 2023
2db0859
Fix more rebase errors
calyptobai Jan 9, 2024
00552aa
Indexing status reporting improvements (#1192)
ggordonhall Jan 4, 2024
a21ccff
rework sync logic for docs (#1186)
oppiliappan Jan 10, 2024
9cf39f4
Fix tests
calyptobai Jan 10, 2024
00820d6
Run cargo fmt
calyptobai Jan 10, 2024
b121910
Path search edits (#1200)
ggordonhall Jan 12, 2024
829a7e0
Add repos to answer action prompt and step prompt (#1198)
calyptobai Jan 16, 2024
b672f2a
Restrict queries on `/q` to only return results valid for a project (…
calyptobai Jan 16, 2024
c9b0900
fix default for repo deduplication in semantic search
ggordonhall Jan 17, 2024
6d13975
Fix autocomplete for path and lang queries
calyptobai Jan 17, 2024
9591707
Send back context data in studio list route
calyptobai Jan 17, 2024
f2a6cf8
Fix code search on local repos (#1204)
calyptobai Jan 19, 2024
b78b336
Add fields to list studios (projects) (#1205)
anastasiya1155 Jan 19, 2024
122995a
make studio prompt multi-repo (#1208)
ggordonhall Jan 19, 2024
f699f93
save onboarding status on user profile (#1210)
anastasiya1155 Jan 22, 2024
a567c2e
Anastasiia/autocomplete page size (#1211)
anastasiya1155 Jan 24, 2024
00a5b7b
return token counts for studio snapshots (#1212)
anastasiya1155 Jan 26, 2024
a345042
fix clippy (#1213)
ggordonhall Jan 26, 2024
9723388
return None if parent commit does not exist (#1214)
ggordonhall Jan 26, 2024
cf3ca70
fix SQL query that retrieves a list of docs for project (#1216)
anastasiya1155 Jan 26, 2024
5171c46
Fix autocomplete repo match (#1218)
ggordonhall Jan 30, 2024
6590317
bump version to 0.6.0
ggordonhall Jan 30, 2024
bfa3656
fix blocking status endpoint (#1217)
oppiliappan Jan 30, 2024
4fe8911
Migrate existing databases to new project schema
calyptobai Jan 30, 2024
5b2d2c9
Fix lints
calyptobai Jan 30, 2024
1441794
app redesign
anastasiya1155 Nov 24, 2023
022bdbb
disable right click in prod mode
anastasiya1155 Jan 15, 2024
88a0fcc
add files to code studio
anastasiya1155 Jan 16, 2024
edd220c
project dependant autocomplete
anastasiya1155 Jan 16, 2024
8e8d970
some fixes
anastasiya1155 Jan 16, 2024
9224944
add selection hint
anastasiya1155 Jan 16, 2024
1418a53
studio conversation
anastasiya1155 Jan 17, 2024
e1329cf
studio conversation design fixes
anastasiya1155 Jan 18, 2024
d4dc13b
studio navigation using left sidebar
anastasiya1155 Jan 18, 2024
a60065b
indexing docs, add docs to projects
anastasiya1155 Jan 18, 2024
4d1d6f2
some fixes
anastasiya1155 Jan 19, 2024
10fe9d4
add docs to studios
anastasiya1155 Jan 19, 2024
90e89d5
polishing studios
anastasiya1155 Jan 22, 2024
2120acd
usage popover
anastasiya1155 Jan 22, 2024
9e563fa
add tutorial cards
anastasiya1155 Jan 23, 2024
c3b612c
search docs
anastasiya1155 Jan 23, 2024
060dd97
fixes
anastasiya1155 Jan 23, 2024
78500c7
quick fix
anastasiya1155 Jan 24, 2024
c63e806
minor fixes
anastasiya1155 Jan 24, 2024
a56aa02
fix apply diff
anastasiya1155 Jan 24, 2024
13efa65
feedback fixes
anastasiya1155 Jan 24, 2024
462ec5a
feedback fixes 2
anastasiya1155 Jan 24, 2024
a2b5360
feedback fixes 3
anastasiya1155 Jan 24, 2024
10c77b6
dedupe studios, pass page_size to autocomplete
anastasiya1155 Jan 24, 2024
6ae070e
studio response loading state
anastasiya1155 Jan 25, 2024
e449112
studio history
anastasiya1155 Jan 25, 2024
5bbdaef
add repo to project when it finished indexing
anastasiya1155 Jan 25, 2024
9af0581
ensure there are no duplicates in file search, fix error handling in …
anastasiya1155 Jan 26, 2024
64eafe0
testing fixes
anastasiya1155 Jan 26, 2024
5f9f41c
add missing translations, clean up locales files
anastasiya1155 Jan 26, 2024
b5ce060
doc fixes
anastasiya1155 Jan 26, 2024
6a1cee5
improve mouse handling in arrow navigation is command bar
anastasiya1155 Jan 29, 2024
af2a506
testing fixes
anastasiya1155 Jan 29, 2024
15e5b89
rework arrow navigation
anastasiya1155 Jan 29, 2024
e80e61c
rework arrow navigation, use context
anastasiya1155 Jan 29, 2024
db6ba71
add arrow navigation to all dropdowns
anastasiya1155 Jan 29, 2024
651b430
minor fixes
anastasiya1155 Jan 30, 2024
059743a
improve header wrapping when adding to studio
anastasiya1155 Jan 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 3 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions apps/desktop/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,9 @@
<!-- </script>-->
</head>

<body data-theme="default">
<body data-theme="system">
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
<script>
document.body.dataset['theme'] = localStorage.getItem('theme');
</script>
</body>

</html>
2 changes: 1 addition & 1 deletion apps/desktop/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bloop"
version = "0.5.12"
version = "0.6.0"
description = "Search code. Fast."
authors = ["Bloop AI Developers"]
license = "Apache-2.0"
Expand Down
7 changes: 4 additions & 3 deletions apps/desktop/src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"package": {
"productName": "bloop",
"version": "0.5.12"
"version": "0.6.0"
},
"tauri": {
"allowlist": {
Expand Down Expand Up @@ -103,8 +103,9 @@
"hiddenTitle": true,
"titleBarStyle": "Overlay",
"minHeight": 700,
"minWidth": 1000
"minWidth": 1000,
"fileDropEnabled": false
}
]
}
}
}
73 changes: 50 additions & 23 deletions apps/desktop/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import { polling } from '../../../client/src/utils/requestUtils';
import ReportBugModal from '../../../client/src/components/ReportBugModal';
import { UIContext } from '../../../client/src/context/uiContext';
import { DeviceContextProvider } from '../../../client/src/context/providers/DeviceContextProvider';
import { EnvContext } from '../../../client/src/context/envContext';
import TextSearch from './TextSearch';
import SplashScreen from './SplashScreen';

Expand Down Expand Up @@ -155,7 +156,8 @@ function App() {
const handleKeyEvent = useCallback((e: KeyboardEvent) => {
if (
(e.key === '=' || e.key === '-' || e.key === '0') &&
(e.metaKey || e.ctrlKey)
(e.metaKey || e.ctrlKey) &&
!e.shiftKey
) {
const root = document.querySelector(':root');
if (!root) {
Expand Down Expand Up @@ -185,6 +187,19 @@ function App() {
}
}, []);

useEffect(() => {
const onContextMenu = (e: MouseEvent) => {
if (!import.meta.env.DEV) {
e.preventDefault();
}
};
document.addEventListener('contextmenu', onContextMenu);

return () => {
document.removeEventListener('contextmenu', onContextMenu);
};
}, []);

useEffect(() => {
let intervalId: number;
if (!Object.keys(envConfig).length) {
Expand Down Expand Up @@ -226,12 +241,18 @@ function App() {
isRepoManagementAllowed: true,
forceAnalytics: false,
isSelfServe: false,
envConfig,
setEnvConfig,
showNativeMessage: message,
relaunch,
}),
[homeDirectory, indexFolder, os, release, envConfig],
[homeDirectory, indexFolder, os, release],
);

const envContextValue = useMemo(
() => ({
envConfig,
setEnvConfig,
}),
[envConfig],
);

const bugReportContextValue = useMemo(
Expand All @@ -244,26 +265,32 @@ function App() {
);

return (
<LocaleContext.Provider value={localeContextValue}>
<AnimatePresence initial={false}>
{shouldShowSplashScreen && <SplashScreen />}
</AnimatePresence>
{shouldShowSplashScreen && (
<DeviceContextProvider deviceContextValue={deviceContextValue}>
<UIContext.BugReport.Provider value={bugReportContextValue}>
<ReportBugModal errorBoundaryMessage={serverCrashedMessage} />
</UIContext.BugReport.Provider>
</DeviceContextProvider>
)}
<TextSearch contentRoot={contentContainer.current} />
<div ref={contentContainer}>
<BrowserRouter>
{!shouldShowSplashScreen && (
<ClientApp deviceContextValue={deviceContextValue} />
<DeviceContextProvider
deviceContextValue={deviceContextValue}
envConfig={envConfig}
>
<EnvContext.Provider value={envContextValue}>
<LocaleContext.Provider value={localeContextValue}>
<AnimatePresence initial={false}>
{shouldShowSplashScreen && <SplashScreen />}
</AnimatePresence>
{shouldShowSplashScreen && (
<UIContext.BugReport.Provider value={bugReportContextValue}>
<ReportBugModal errorBoundaryMessage={serverCrashedMessage} />
</UIContext.BugReport.Provider>
)}
</BrowserRouter>
</div>
</LocaleContext.Provider>
<TextSearch contentRoot={contentContainer.current} />
<div
ref={contentContainer}
className="w-screen h-screen overflow-hidden"
>
<BrowserRouter>
{!shouldShowSplashScreen && <ClientApp />}
</BrowserRouter>
</div>
</LocaleContext.Provider>
</EnvContext.Provider>
</DeviceContextProvider>
);
}

Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src/SplashScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const SplashScreen = ({}: Props) => {
<div className="animate-pulse-slow text-label-title">
<LogoFull />
</div>
<div className="flex gap-3 items-center rounded-lg shadow-high border border-bg-border bg-bg-shade px-4 py-2 absolute bottom-0 left-1/2 transform -translate-x-1/2 translate-y-1/2 body-s z-10 text-label-base">
<div className="flex gap-3 items-center rounded-lg shadow-high border border-bg-border bg-bg-shade px-4 py-2 absolute bottom-0 left-1/2 transform -translate-x-1/2 translate-y-1/2 body-s-b z-10 text-label-base">
<Trans>Loading...</Trans>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src/TextSearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ const TextSearch = ({
currentResult={currentResult}
setCurrentResult={setCurrentResult}
searchValue={searchValue}
containerClassName="fixed top-[100px] right-[5px]"
containerClassName="fixed top-[100px] right-[5px] w-80"
/>
);
};
Expand Down
2 changes: 1 addition & 1 deletion client/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<title>bloop</title>
</head>

<body data-theme="default">
<body data-theme="system">
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
Expand Down
2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@bloop/client",
"private": true,
"version": "0.5.12",
"version": "0.6.0",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
Expand Down
Binary file modified client/public/bloopHeadMascot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/public/bloopHeadMascotLight.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/public/stripe_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading