File tree Expand file tree Collapse file tree 6 files changed +11
-7
lines changed
Expand file tree Collapse file tree 6 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 99 "setup" : " bun install --concurrent-scripts=1 --network-concurrency=8 && bun install --concurrent-scripts=1 --network-concurrency=8 --cwd packages/web-ui" ,
1010 "start" : " bun run packages/core/index.ts" ,
1111 "dev" : " bun --watch run packages/core/index.ts --local" ,
12+ "web:dev" : " sh -c 'bun --watch run packages/core/index.ts --local & bun --cwd packages/web-ui run dev; kill 0'" ,
1213 "postinstall" : " bun install --cwd packages/web-ui" ,
1314 "test:ci" : " bun run setup && bun test" ,
1415 "build:web" : " bun --cwd packages/web-ui build && bun run embed:web" ,
Original file line number Diff line number Diff line change 6969 min-height : 100vh ;
7070 padding : 6vh 7vw ;
7171 display : flex;
72- align-items : center ;
72+ align-items : flex-start ;
7373 justify-content : center;
7474}
7575
Original file line number Diff line number Diff line change 5555 $ : activeSection =
5656 pathname .startsWith (" /local-setting/agent" )
5757 ? " agent"
58- : pathname .startsWith (" /local-setting/slack-bot/ " )
58+ : pathname .startsWith (" /local-setting/slack-bot" )
5959 ? " slack"
6060 : " profile" ;
6161 $ : enabledProviders = (Object .keys (providerLabels ) as AgentProvider []).filter ((provider ) => {
7979
8080 function getSelectedWorkspace(currentPathname : string ): DashboardConfig [" workspaces" ][number ] | null {
8181 if (! config .workspaces .length ) return null ;
82- if (! currentPathname .startsWith (" /local-setting/slack-bot/" )) return config .workspaces [0 ] ?? null ;
83- const slug = currentPathname .split (" /" ).filter (Boolean )[2 ];
82+ if (! currentPathname .startsWith (" /local-setting/slack-bot" )) return config .workspaces [0 ] ?? null ;
83+ const [withoutQuery] = currentPathname .split (" ?" );
84+ const segments = withoutQuery .split (" /" ).filter (Boolean );
85+ const slug = decodeURIComponent (segments [2 ] ?? " " );
8486 if (! slug ) return config .workspaces [0 ] ?? null ;
8587 return (
8688 config .workspaces .find ((workspace ) => slugify (workspace .name ) === slug || workspace .id === slug ) ??
Original file line number Diff line number Diff line change 55 export let data: { config: DashboardConfig } | undefined = undefined ;
66 </script >
77
8- <LocalSettingPage {data } />
8+ <LocalSettingPage {data } initialSection = " agent " />
Original file line number Diff line number Diff line change 55 export let data: { config: DashboardConfig } | undefined = undefined ;
66 </script >
77
8- <LocalSettingPage {data } />
8+ <LocalSettingPage {data } initialSection = " profile " />
Original file line number Diff line number Diff line change 11<script lang =" ts" >
22 import LocalSettingPage from " ../../+page.svelte" ;
3+ import { page } from " $app/stores" ;
34 import type { DashboardConfig } from " $lib/localConfig" ;
45
56 export let data: { config: DashboardConfig } | undefined = undefined ;
67 </script >
78
8- <LocalSettingPage {data } />
9+ <LocalSettingPage {data } initialSection = "slack" initialSlug ={ $page . params . workspace ?? null } />
You can’t perform that action at this time.
0 commit comments