feat(webui): unify the Apps catalog (#6700)
* feat(webui): unify the Apps catalog * fix(webui): serve all channel branding locally * fix(webui): refine Apps navigation and sidebar
This commit is contained in:
1 parent
5997a714f2
commit
2b232c9133
89 files changed
+1576
-1024
No files matched your search
@@ -154,14 +154,20 @@ describe("temporary chat navigation", () => {
|
||||
vi.unstubAllGlobals();
|
||||
});
|
||||
|
||||
it.each(["settings", "apps", "automations", "skills", "channels"])(
|
||||
it.each([
|
||||
["settings", "#/settings"],
|
||||
["apps", "#/apps"],
|
||||
["automations", "#/automations"],
|
||||
["skills", "#/apps?section=skills"],
|
||||
["channels", "#/apps?section=channels"],
|
||||
])(
|
||||
"opens %s directly without mounting chat or retaining a chat query",
|
||||
async (view) => {
|
||||
async (view, canonicalHash) => {
|
||||
window.history.replaceState(null, "", `/#/${view}?chat=websocket%3Aregular`);
|
||||
render(<App />);
|
||||
await screen.findByRole("button", { name: "Back to chat" });
|
||||
act(() => TestSocket.current.open());
|
||||
await waitFor(() => expect(window.location.hash).toBe(`#/${view}`));
|
||||
await waitFor(() => expect(window.location.hash).toBe(canonicalHash));
|
||||
expect(window.history.state.nanobotReturnChat.key).toBe("websocket:regular");
|
||||
expect(screen.queryByTestId("thread-message-region")).not.toBeInTheDocument();
|
||||
const requests = vi.mocked(fetch).mock.calls.map(([url]) => String(url));
|
||||
|
||||
Reference in new issue
Block a user