feat(onboarding): polish setup experience
This commit is contained in:
1 parent
66ad01e7ce
commit
c25c1dbac7
34 files changed
+1005
-1172
No files matched your search
@@ -59,6 +59,18 @@ const createConfiguredAssistantAsync = async () => {
|
||||
return db;
|
||||
};
|
||||
|
||||
describe("assistantRouter.getAdminConfiguration", () => {
|
||||
test("defaults an unconfigured Assistant to the Homarr provider", async () => {
|
||||
const caller = assistantRouter.createCaller({ db: createDb(), deviceType: undefined, session: adminSession });
|
||||
|
||||
await expect(caller.getAdminConfiguration()).resolves.toMatchObject({
|
||||
connectionConfigured: false,
|
||||
provider: "homarr",
|
||||
baseUrl: "https://homarr.dev/api/ai/v1",
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe("assistantRouter.updateConnection", () => {
|
||||
test("clears the persisted model when the discovery path changes without clearing credentials", async () => {
|
||||
const db = await createConfiguredAssistantAsync();
|
||||
|
||||
@@ -307,6 +307,7 @@ describe("onboard.completeSetup", () => {
|
||||
...completionInput("missing").board,
|
||||
id: undefined,
|
||||
name: "Recovered-board",
|
||||
columnCount: 14,
|
||||
leftSidebar: true,
|
||||
rightSidebar: true,
|
||||
},
|
||||
@@ -328,7 +329,7 @@ describe("onboard.completeSetup", () => {
|
||||
expect.objectContaining({ role: "mobile", columnCount: 3, breakpoint: 0 }),
|
||||
expect.objectContaining({
|
||||
role: "base",
|
||||
columnCount: 10,
|
||||
columnCount: 14,
|
||||
breakpoint: 768,
|
||||
leftGutterColumnCount: 1,
|
||||
rightGutterColumnCount: 1,
|
||||
|
||||
Reference in new issue
Block a user