-
Notifications
You must be signed in to change notification settings - Fork 336
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
For CODY-3525 This PR turns the action row with "Create prompt" and "Explore prompt library" into a dropdown with more filters (also tagging). Tag filters are only available if the backing sourcegraph instance is at least v5.11 (to be released on Wednesday) or an insider build. The height of the tags filters is currently limited to 200px, and becomes scrollable afterwards. We may need a bit more time to understand how pagination should be used for tags in the editor (or if that should be used at all), and for now we're just requesting the first 999 tags. Should be plenty for most customers. https://github.com/user-attachments/assets/0175aef7-2bed-442e-bd6a-11953bb4d6fb ## Test plan Manual testing ## Changelog feat: prompts library
- Loading branch information
1 parent
ab5164b
commit 4da049a
Showing
13 changed files
with
429 additions
and
65 deletions.
There are no files selected for viewing
This file contains 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 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 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 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,13 @@ | ||
import { graphqlClient, isAbortError } from '@sourcegraph/cody-shared' | ||
|
||
export async function getCurrentUserId(signal: AbortSignal): Promise<string | null | Error> { | ||
try { | ||
return await graphqlClient.getCurrentUserId(signal) | ||
} catch (error) { | ||
if (isAbortError(error)) { | ||
throw error | ||
} | ||
|
||
return null | ||
} | ||
} |
This file contains 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.