Commit graph

199 commits

Author SHA1 Message Date
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
bkellam
3fe2d3295a release v2.4.4 2024-11-20 14:36:24 -08:00
Brendan Kellam
f3d5fa6cb3
Add config param all to enable syncing all projects in GitLab instance (#84) 2024-11-20 14:29:13 -08:00
Brendan Kellam
83270ffdc9
Add support for configurable domain sub-paths (#74) 2024-11-18 12:09:26 -08:00
bkellam
558d049d38 release v2.4.3 2024-11-18 11:49:37 -08:00
Brendan Kellam
0f8f64c56f
Update docker container Node.JS version to v20 (#78) 2024-11-18 11:48:20 -08:00
bkellam
e5b83b68b2 release v2.4.2 2024-11-14 22:44:15 -08:00
Brendan Kellam
bea86a64c9
enable allow_missing_branches (#73) 2024-11-14 22:35:07 -08:00
Chris Roberts
e6d90398e4
Fix typo'd Exclude repo-wide (#71) 2024-11-14 15:03:34 -08:00
Steven
a407792212
Exclude repos by glob (#70) 2024-11-14 14:16:31 -08:00
Brendan Kellam
276086d2d6
Basic syntax highlighting support for search bar (#66) 2024-11-12 18:43:44 -08:00
Brendan Kellam
9cba4f274f
Add unit testing library to @sourcebot/backend (#65) 2024-11-12 18:37:35 -08:00
bkellam
8d1cc7e48a release 2.4.1 2024-11-11 11:35:27 -08:00
Brendan Kellam
adba96a8c4
Add additional telemetry (#63) 2024-11-09 16:40:07 -08:00
bkellam
379976d458 release v2.4.0 2024-11-06 18:42:48 -08:00
Brendan Kellam
ada53fc2c6
Multi branch / tag support (#58) 2024-11-06 18:28:10 -08:00
bkellam
5992ac5f88 release v2.3.0 2024-11-01 11:00:44 -07:00
Brendan Kellam
7966c1440c
Local directory support (#56) 2024-11-01 10:51:14 -07:00
bkellam
3b8e92053d release v2.2.0 2024-10-30 13:29:29 -07:00
bkellam
934bc8d903 Fixed issue with either or not being included in the GitLab api response. Fixes #55 2024-10-30 13:27:43 -07:00
bkellam
de468eae5d Use main for demo site 2024-10-30 09:35:06 -07:00
Brendan Kellam
e913b22324
Improve rendering performance of search results (#52) 2024-10-30 09:32:05 -07:00
bkellam
8a619b7145 Changelog for #54 2024-10-29 15:14:45 -07:00
Jellyfrog
26779dd84d
GitLab: include subgroups when filtering on groups (#54) 2024-10-29 15:05:18 -07:00
Brendan Kellam
f4c7354037
Filtering panel (#48) 2024-10-28 10:30:29 -07:00
Michael Sukkarieh
1fa3f7484a
Add discord button to nav bar and version in settings drop down (#47)
* add discord button to nav menu

* add version to settings drop down

* nit: prepend version text with "version"

* revert settings json change
2024-10-28 11:06:51 -06:00
bkellam
149664f664 release 2.1.1 2024-10-25 12:02:09 -07:00
Brendan Kellam
8019f316a7
[Fix] Change GitLab syncing behaviour for groups and users to include projects that are _not_ owned by the token (#51) 2024-10-25 12:01:01 -07:00
bkellam
3697f3da7f release 2.1.0 2024-10-22 23:07:33 -04:00
Brendan Kellam
82730f1cb0
Gitea support (#45) 2024-10-22 23:06:36 -04:00
bkellam
b1e0ab088d release 2.0.2 2024-10-18 15:05:03 -04:00
Brendan Kellam
cde9f46570
Version upgrade toast (#44) 2024-10-18 15:03:13 -04:00
bkellam
c5f80eb00b release v2.0.1 2024-10-17 19:30:58 -04:00
Brendan Kellam
ae05d8f68e
Add support for remote configs (#43) 2024-10-17 16:20:09 -07:00
bkellam
1266a46458 move fly.toml back to root 2024-10-17 17:02:36 -04:00
bkellam
2f763c1519 fix schema references 2024-10-17 16:40:59 -04:00
bkellam
dcc160245a release version 2.0.0 2024-10-17 16:33:09 -04:00
Brendan Kellam
fc8815d135
Config format V2 (#42) 2024-10-17 16:31:18 -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
Michael Sukkarieh
bb2ec892aa fix backslash usage in example config command 2024-10-16 19:08:42 -06:00
bkellam
23c77d2000 Update changelog for v1.0.3 2024-10-15 17:39:09 -07:00
ttys3
825a5aa7f5
fix: fix javascript btoa function can not handle Unicode strings issue (#38) 2024-10-15 17:33:44 -07:00
bkellam
e4b261a7f3 release v1.0.2 2024-10-09 11:50:04 -07:00
Brendan Kellam
e2aa26e9e5
Update zoekt with fix for GitLab filtering (#37) 2024-10-09 11:47:40 -07:00
bkellam
57fc0f2fef release v1.0.1 2024-10-03 14:07:45 -07:00
Brendan Kellam
d7b6829a42
Add env vars for overriding GitHub / GitLab hostnames in the .netrc file. (#26)
* Add env vars for overriding GitLab / GitHub hostnames used in the .netrc file. (GITLAB_HOSTNAME, GITHUB_HOSTNAME)

* Add docs

* Add changelog entry
2024-10-03 14:06:24 -07:00
bkellam
bc20ff6d2b Update telemetry reference to use sourcebot link 2024-10-02 13:09:11 -07:00
bkellam
c9cbdbe81e Add sourcebot itself to the demo site config 2024-10-02 12:32:33 -07:00
bkellam
e9f2ca0aed Change docs to instruct using the 'latest' tag instead of 'main'. 'latest' will only be updated on new releases, and thus will point to a more stable commit of the project vs. 'main' (which may included features still in active development). 2024-10-02 12:22:08 -07:00