Commit graph

41 commits

Author SHA1 Message Date
msukkari
feb466af2b fix staging fly deploy config 2025-01-31 11:02:31 -08:00
msukkari
553fcb2a30 add staging github actions 2025-01-30 16:10:25 -08:00
bkellam
d1ef80d39f try out new arm64 hosted runner 2025-01-28 12:29:07 -05:00
Brendan Kellam
33b5418bbf
Pass PostHog key at build time (#92) 2024-11-25 21:04:52 -08:00
Brendan Kellam
7f952ce163
Search suggestions (#85)
The motivation for building search suggestions is two-fold: (1) to make the zoekt query language more approachable by presenting all available options to the user, and (2) make it easier for power-users to craft complex queries.

The meat-n-potatoes of this change are concentrated in searchBar.tsx and searchSuggestionBox.tsx. The suggestions box works by maintaining a state-machine of "modes". By default, the box is in the refine mode, where suggestions for different prefixes (e.g., repo:, lang:, etc.) are suggested to the user. When one of these prefixes is matched, the state-machine transitions to the corresponding mode (e.g., repository, language, etc.) and surfaces suggestions for that mode (if any).

The query is split up into parts by spaces " " (e.g., 'test repo:hello' -> ['test', 'repo:hello']). See splitQuery. The part that has the cursor over it is considered the active part. We evaluate which mode the state machine is in based on the active part. When a suggestion is clicked, we only modify the active part of the query.

Three modes are currently missing suggestion data: file (file names), revision (branch / tag names), and symbol (symbol names). In future PRs, we will need to introduce endpoints into the backend to allow the frontend to fetch this data and surface it as suggestions..
2024-11-22 18:50:13 -08:00
Brendan Kellam
9cba4f274f
Add unit testing library to @sourcebot/backend (#65) 2024-11-12 18:37:35 -08:00
Brendan Kellam
ada53fc2c6
Multi branch / tag support (#58) 2024-11-06 18:28:10 -08:00
Brendan Kellam
82730f1cb0
Gitea support (#45) 2024-10-22 23:06:36 -04:00
Brendan Kellam
4b51a8d7d7
Added SOURCEBOT_VERSION build arg + versioned telemetry (#41) 2024-10-17 14:50:07 -04:00
bkellam
36a146486d update demo site fly.toml to use image from ghcr instead of building one. Also make the deployment pipeline dependent on pushes to ghcr. 2024-10-17 13:41:58 -04:00
bkellam
fe3817b9a5 Rename organization to sourcebot-dev 2024-09-29 14:39:17 -07:00
Brendan Kellam
d0d104a1e1
Readme V3 + config examples (#12) 2024-09-29 14:17:43 -07:00
bkellam
bf85c62132 nit: invert README github icons when in dark mode 2024-09-24 21:56:17 -07:00
bkellam
3299f854b5 remove arm/v6 and arm/v7 due to build failure 2024-09-19 18:07:29 -07:00
bkellam
a47b4c2058 Remove tags from build docker image stage 2024-09-19 17:55:51 -07:00
bkellam
34d4b072dd expand the number of platforms + remove pull_request event 2024-09-19 17:24:27 -07:00
bkellam
bb6f3d91b0 Add simple PR gate that builds docker container for one platform 2024-09-19 17:21:24 -07:00
bkellam
b5f6d46d35 add back linux/arm64 2024-09-19 16:49:41 -07:00
bkellam
607e03d179 Add packages: write permission to merge job 2024-09-19 16:40:45 -07:00
bkellam
2bbbd57691 Add back ghcr.io prefix 2024-09-19 16:29:28 -07:00
bkellam
ee2f27fc30 revert inline login + remove ghcr.io prefix from REGISTRY_NAME 2024-09-19 16:09:14 -07:00
bkellam
cec45c36bb try logging in inline 2024-09-19 14:48:53 -07:00
bkellam
16bd48dfc6 Upgrade to docker/login-action@v3 and temporarily disable arm64 builds 2024-09-19 14:18:11 -07:00
bkellam
7cb0e7e691 try removing tags from docker/build-push-action@v6 action 2024-09-19 13:25:09 -07:00
bkellam
9dec454d06 add missing org name to REGISTRY_IMAGE 2024-09-19 13:19:20 -07:00
bkellam
4cf557bafc Add missing outputs param to docker build and push action 2024-09-19 13:12:40 -07:00
bkellam
f57a3e4087 Attempt #1 on merging multi-platform docker builds 2024-09-19 12:22:28 -07:00
bkellam
e14a322c7f Remove qemu step 2024-09-07 19:52:27 -07:00
bkellam
0c0ffe847d wip on README 2024-09-07 17:17:32 -07:00
bkellam
abf8ecef5f experiment with non-background logos 2024-09-07 15:59:47 -07:00
bkellam
c8cd4a66ca Add logo to readme and start writing instructions 2024-09-07 15:51:36 -07:00
bkellam
184eabdea5 Try to speed up ghcr publish using arch matrix 2024-09-06 11:34:49 -07:00
bkellam
0133999bbd Add fly.io config & workflow 2024-09-06 11:27:20 -07:00
bkellam
23e06777e7 nit 2024-09-06 10:36:41 -07:00
bkellam
6751b20fca nit 2024-09-05 19:08:01 -07:00
bkellam
4bf1a3e61d nit 2024-09-05 18:50:24 -07:00
bkellam
a4334387be Try hound's deployment action to see if that fixes the network timeout 2024-09-05 18:46:09 -07:00
bkellam
458f61f27e wip 2024-09-05 18:31:03 -07:00
bkellam
ee4c658b28 add arm support 2024-09-05 15:04:41 -07:00
bkellam
d72ad77b47 Checkout submodules too 2024-09-05 14:39:39 -07:00
bkellam
4a2b35fdb1 Add workflow to publish to ghcr 2024-09-05 14:38:12 -07:00