Skip to content

Commit

Permalink
feat(weave): human feedback sidebar for structured call labeling
Browse files Browse the repository at this point in the history
  • Loading branch information
gtarpenning committed Oct 29, 2024
1 parent 035ca0f commit 0991082
Show file tree
Hide file tree
Showing 10 changed files with 732 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,8 @@ export const browse3ContextGen = (
traceId: string,
callId: string,
path?: string | null,
tracetree?: boolean
tracetree?: boolean,
feedbackExpand?: boolean
) => {
let url = `${projectRoot(entityName, projectName)}/calls/${callId}`;
const params = new URLSearchParams();
Expand All @@ -334,6 +335,9 @@ export const browse3ContextGen = (
if (tracetree !== undefined) {
params.set(TRACETREE_PARAM, tracetree ? '1' : '0');
}
if (feedbackExpand !== undefined) {
params.set(FEEDBACK_EXPAND_PARAM, feedbackExpand ? '1' : '0');
}
if (params.toString()) {
url += '?' + params.toString();
}
Expand Down Expand Up @@ -470,7 +474,8 @@ type RouteType = {
traceId: string,
callId: string,
path?: string | null,
tracetree?: boolean
tracetree?: boolean,
feedbackExpand?: boolean
) => string;
tracesUIUrl: (entityName: string, projectName: string) => string;
callsUIUrl: (
Expand Down Expand Up @@ -528,6 +533,7 @@ const useSetSearchParam = () => {

export const PEEK_PARAM = 'peekPath';
export const TRACETREE_PARAM = 'tracetree';
export const FEEDBACK_EXPAND_PARAM = 'feedbackExpand';
export const PATH_PARAM = 'path';

export const baseContext = browse3ContextGen(
Expand Down
Loading

0 comments on commit 0991082

Please sign in to comment.