-
Notifications
You must be signed in to change notification settings - Fork 106
V4 #311
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
V4 #311
Changes from all commits
Commits
Show all changes
56 commits
Select commit
Hold shift + click to select a range
9d11934
basic auth default changes
msukkari d5eb571
add max seat count check
msukkari 1670fe7
prevent editing connections if config path is provided
msukkari d2f7be5
wip public access toggle
msukkari 200febc
add support for account requests
msukkari ed90c19
prevent non owners from seeing requests and invites in settings
msukkari 4a5f7c3
add public access support
msukkari 0a27a1f
hide add repo button in unauthed case
msukkari 6ef8295
made public access enable flag a setting
msukkari 7ed63a2
add sso auth providers
msukkari ee6efc5
added ee sso logic
msukkari 6e91693
add api key support
msukkari 3eb0e5a
fix unauthed issue and ensure JIT provisioning only happens for oauth…
msukkari 7df5c1e
add api key support to mcp and rest endpoints
msukkari 10cfaee
add indicator to members side bar nav menu and fix minor nits
msukkari 6f6a2eb
minor bug fix
msukkari 971c44d
add emails for join requests
msukkari b8f40bc
add enterprise license settings page
msukkari 8f9d079
prevent api key with the same name
msukkari 5d0efd2
fix column alignment
msukkari 246a73b
fix horizontal scroll bar issue
msukkari f71df1e
add ability to delete api keys
msukkari 73d1710
bunch of fixes and docs
msukkari fef1172
added support for supplying custom entitlements list in license key'
msukkari 87cfdfd
Merge branch 'main' into msukkarieh/auth2
msukkari aa46d46
UI nits
msukkari 07e5d80
misc fixes
msukkari aa3ce38
doc fixes
msukkari e78366e
coderabbit feedback
msukkari eb1a8a1
additional coderabbit fixes
msukkari 62db1a0
fix build and add api key docs
msukkari ce5f0b3
license key logic clean up
msukkari c7eef71
add v4 upgrade guide
msukkari a2b90b5
force exit on license expired
msukkari 827ccef
fix formatting of env var docs
msukkari 9eaa25b
fix metadata error in settings
msukkari e46ab61
fix url issue in request email
msukkari a41e488
Merge branch 'main' into v4
msukkari 0388829
nits and enforce api key for org
msukkari 9bebda4
prune old guest user to remove need to wipe data on upgrade
msukkari 4d67780
fix broken link in upgrade doc
msukkari e7b28f1
add warning if email env vars arent set
msukkari d3c79db
delete pending invites once a member request is accepted
msukkari a0ec32b
add smtp helper to docs
msukkari ce17a3b
change no license copy
msukkari f690eaf
update login pic in docs
msukkari fa213cd
add support for microsoft entra id
msukkari 9f88959
fix typo
msukkari 6abf0d9
typo in docs
msukkari 50f2f36
fix github sso urls
msukkari ce9bab3
add whats new indicator to nav
msukkari ed87595
remove enterprise settings card and add more whats new updates
msukkari cf5ecec
Code navigation (#315)
brendan-kellam 319171e
fix github auth api url
msukkari 45cc344
Fix docs links; add changelog; small nits with bottom panel when no e…
brendan-kellam 20a8df2
changelog nit
brendan-kellam 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
description: | ||
globs: | ||
alwaysApply: true | ||
--- | ||
- Always use 4 spaces for indentation | ||
- Filenames should always be camelCase. Exception: if there are filenames in the same directory with a format other than camelCase, use that format to keep things consistent. |
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
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
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
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
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,8 @@ | ||
--- | ||
title: API Keys | ||
--- | ||
|
||
An API Key is required when querying Sourcebot outside the context of the web app client (ex. MCP server, review agent). To create an API key, login to your Sourcebot instance and navigate to | ||
**Settings -> API Keys**: | ||
|
||
 |
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
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,44 @@ | ||
--- | ||
title: Code navigation | ||
sidebarTitle: Code navigation | ||
--- | ||
|
||
import SearchContextSchema from '/snippets/schemas/v3/searchContext.schema.mdx' | ||
|
||
<Note> | ||
This feature is only available in [Sourcebot cloud](app.sourcebot.dev) or with an active Enterprise license when [self-hosting](/self-hosting). Please add your [license key](/self-hosting/license-key) to activate it. | ||
</Note> | ||
|
||
**Code navigation** allows you to jump between symbol definition and references when viewing source files in Sourcebot. This feature is enabled **automatically** when a valid license key is present and works with all popular programming languages. | ||
|
||
|
||
<video src="https://framerusercontent.com/assets/B9ZxrlsUeO9NJyzkKyvVV2KSU4.mp4" className="w-full aspect-video" controls></video> | ||
|
||
## Features | ||
|
||
| Feature | Description | | ||
|:--------|:------------| | ||
| **Hover popover** | Hovering over a symbol reveals the symbol's definition signature as a inline preview. | | ||
| **Go to definition** | Clicking the "go to definition" button in the popover or clicking the symbol name navigates to the symbol's definition. | | ||
| **Find references** | Clicking the "find all references" button in the popover lists all references in the explore panel. | | ||
| **Explore panel** | Lists all references and definitions for the symbol selected in the popover. | | ||
|
||
## How does it work? | ||
|
||
Code navigation is **search-based**, meaning it uses the same code search engine and [query language](/docs/search/syntax-reference) to estimate a symbol's references and definitions. We refer to these estimations as "search heuristics". We have two search heuristics to enable the following operations: | ||
|
||
### Find references | ||
Given a `symbolName`, along with information about the file the symbol is contained within (`git_revision`, and `language`), runs the following search: | ||
|
||
```bash | ||
\\b{symbolName}\\b rev:{git_revision} lang:{language} case:yes | ||
``` | ||
|
||
### Find definitions | ||
Given a `symbolName`, along with information about the file the symbol is contained within (`git_revision`, and `language`), runs the following search: | ||
|
||
```bash | ||
sym:\\b{symbolName}\\b rev:{git_revision} lang:{language} | ||
``` | ||
|
||
Note that the `sym:` prefix is used to filter the search by symbol definitions. These are created at index time by [universal ctags](https://ctags.io/). |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.