@qablehq/atto 0.0.23 → 0.0.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17037,10 +17037,24 @@ const useAppStore = create$1()(
17037
17037
  view: "projects",
17038
17038
  setView: (view) => set({ view }),
17039
17039
  activeProjectId: null,
17040
- setActiveProject: (id) => set((state) => {
17041
- if (!id) return { activeProjectId: null, view: "projects", activeSessionId: null };
17040
+ pinProjectsList: true,
17041
+ setActiveProject: (id, options2) => set((state) => {
17042
+ if (!id) {
17043
+ return {
17044
+ activeProjectId: null,
17045
+ pinProjectsList: true,
17046
+ view: "projects",
17047
+ activeSessionId: null
17048
+ };
17049
+ }
17050
+ if (state.pinProjectsList && !options2?.force) return state;
17042
17051
  const ready = isProjectReady(state.projectsById[id]);
17043
- return { activeProjectId: id, view: ready ? "session" : "project-settings", activeSessionId: null };
17052
+ return {
17053
+ activeProjectId: id,
17054
+ pinProjectsList: false,
17055
+ view: ready ? "session" : "project-settings",
17056
+ activeSessionId: null
17057
+ };
17044
17058
  }),
17045
17059
  createProject: (input) => {
17046
17060
  const id = `proj-${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 7)}`;
@@ -33215,9 +33229,10 @@ function ProjectList() {
33215
33229
  const [tesboConnected, setTesboConnected] = reactExports.useState(false);
33216
33230
  const projects = projectOrder.map((id) => projectsById[id]);
33217
33231
  const openProjectSettings = (id) => {
33218
- setActiveProject(id);
33232
+ setActiveProject(id, { force: true });
33219
33233
  setView("project-settings");
33220
33234
  };
33235
+ const openProject = (id) => setActiveProject(id, { force: true });
33221
33236
  reactExports.useEffect(() => {
33222
33237
  let cancelled = false;
33223
33238
  const syncRemote = (remote) => {
@@ -33291,9 +33306,9 @@ function ProjectList() {
33291
33306
  {
33292
33307
  role: "button",
33293
33308
  tabIndex: 0,
33294
- onClick: () => setActiveProject(project.id),
33309
+ onClick: () => openProject(project.id),
33295
33310
  onKeyDown: (e) => {
33296
- if (e.key === "Enter") setActiveProject(project.id);
33311
+ if (e.key === "Enter") openProject(project.id);
33297
33312
  },
33298
33313
  className: "group flex cursor-pointer flex-col gap-2 rounded-lg border border-border bg-card p-4 text-left transition-colors hover:border-primary/40 hover:bg-accent/40",
33299
33314
  children: [
@@ -33327,7 +33342,14 @@ function ProjectList() {
33327
33342
  project.id
33328
33343
  )) })
33329
33344
  ] }),
33330
- /* @__PURE__ */ jsxRuntimeExports.jsx(CreateProjectDialog, { open: dialogOpen, onOpenChange: setDialogOpen, onCreated: (id) => setActiveProject(id) })
33345
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
33346
+ CreateProjectDialog,
33347
+ {
33348
+ open: dialogOpen,
33349
+ onOpenChange: setDialogOpen,
33350
+ onCreated: (id) => setActiveProject(id, { force: true })
33351
+ }
33352
+ )
33331
33353
  ] });
33332
33354
  }
33333
33355
  const AI_PROVIDERS = [
@@ -34570,7 +34592,7 @@ async function bootstrapEngineConnection() {
34570
34592
  for (const sessionId of unlinked) linkSessionToProject2(activeProjectId, sessionId);
34571
34593
  }
34572
34594
  if (activeProjectId && useAppStore.getState().projectsById[activeProjectId]) {
34573
- setActiveProject(activeProjectId);
34595
+ setActiveProject(activeProjectId, { force: true });
34574
34596
  const project = useAppStore.getState().projectsById[activeProjectId];
34575
34597
  const sessionsById = useAppStore.getState().sessionsById;
34576
34598
  const mostRecent = project.sessionIds.map((id) => sessionsById[id]).filter(Boolean).map(toSessionListItem).sort((a, b2) => new Date(b2.updatedAt).getTime() - new Date(a.updatedAt).getTime())[0];
@@ -34808,11 +34830,12 @@ function ProjectSettings() {
34808
34830
  function AppShell() {
34809
34831
  const view = useAppStore((s2) => s2.view);
34810
34832
  const activeProjectId = useAppStore((s2) => s2.activeProjectId);
34833
+ const pinProjectsList = useAppStore((s2) => s2.pinProjectsList);
34811
34834
  const activeSessionId = useAppStore((s2) => s2.activeSessionId);
34812
34835
  const session = useAppStore((s2) => activeSessionId ? s2.sessionsById[activeSessionId] ?? null : null);
34813
34836
  const toggleCanvas = useAppStore((s2) => s2.toggleCanvas);
34814
34837
  const isCanvasOpen = session ? session.isCanvasOpen : true;
34815
- if (!activeProjectId || view === "projects") {
34838
+ if (pinProjectsList || !activeProjectId || view === "projects") {
34816
34839
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex h-screen w-screen flex-col overflow-hidden bg-background text-foreground", children: [
34817
34840
  /* @__PURE__ */ jsxRuntimeExports.jsx(TitleBar, {}),
34818
34841
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex min-h-0 flex-1 overflow-hidden", children: /* @__PURE__ */ jsxRuntimeExports.jsx(ProjectList, {}) })
@@ -34869,7 +34892,7 @@ async function startRemoteSession(job) {
34869
34892
  targetUrl: job.targetUrl
34870
34893
  });
34871
34894
  }
34872
- setActiveProject(id);
34895
+ setActiveProject(id, { force: true });
34873
34896
  setView("session");
34874
34897
  const bindings = await window.taa.ai.listBindings().catch(() => ({}));
34875
34898
  if (bindings[id]) setProjectAiBinding2(id, bindings[id]);
@@ -8,7 +8,7 @@
8
8
  />
9
9
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
10
10
  <title>Tesbo Automate</title>
11
- <script type="module" crossorigin src="./assets/index-DhNABw4-.js"></script>
11
+ <script type="module" crossorigin src="./assets/index-BUFu08qG.js"></script>
12
12
  <link rel="stylesheet" crossorigin href="./assets/index-Cq11Gc4F.css">
13
13
  </head>
14
14
  <body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qablehq/atto",
3
- "version": "0.0.23",
3
+ "version": "0.0.24",
4
4
  "description": "Atto — AI-assisted desktop test automation",
5
5
  "homepage": "https://github.com/QAbleHQ/Atto",
6
6
  "author": {