From 90e47f7f78162af39cf507f71c805f912552e667 Mon Sep 17 00:00:00 2001 From: Ariel Weinberger Date: Sat, 19 Jul 2025 22:43:09 -0500 Subject: [PATCH] fix progress thing --- .cursor/rules.mdc | 22 ++++++++++++++++++ .../workspaceProgress.svelte | 23 +++++++++++++++---- 2 files changed, 41 insertions(+), 4 deletions(-) create mode 100644 .cursor/rules.mdc diff --git a/.cursor/rules.mdc b/.cursor/rules.mdc new file mode 100644 index 000000000..8f9c4e646 --- /dev/null +++ b/.cursor/rules.mdc @@ -0,0 +1,22 @@ +--- +alwaysApply: true +--- + +# Background +Imagine is a platform very similar to Lovable or Bolt. You can vibe code to build products. But it's better, because it's connected to Appwrite's cloud resources. + +# Rules +- You NEVER touch the `ai-service` directory. This is a Node.js AI server using Vercel AI SDK. There is a special `ai-service/src/shared-types/index.ts` file with shared types used by the Imagine frontend. You are allowed to read anything in this file and related files. Just NEVER make writes. +- You only work in the main project which is "Imagine Console", a Svelte project. Under the `src` directory. +- You ONLY use pnpm, not npm or yarn. +- You NEVER run `pnpm build` or `pnpm dev`, assume that whenever we talk, I have a dev server running and I can see changes live. +- This is NOT a SvelteKit project, it's a Svelte project. +- NO usage of TailwindCSS, we define classes in the Svelte components. +- For icons, we DO NOT use ANY icon library other than Appwrite's Pink Icons. +- For UI components, we may use Appwrite's Pink Design System and components. +- You HAVE to ask for confirmatino if you are not sure that what you're going to do is 100% correct. This is not a standard tech stack so your immediate solutions might not be accepted. + +# Architecture +The console features projects, and projects feature workspaces. A worksapce is essentially a sandboxed environment where the AI writes/reads code, makes changes, runs the dev server, etc. + +In the main screen there is a chat interface on the left hand side and a preview iframe on the right hand side. \ No newline at end of file diff --git a/src/routes/(console)/project-[region]-[project]/studio/artifact-[artifact]/workspaceProgress.svelte b/src/routes/(console)/project-[region]-[project]/studio/artifact-[artifact]/workspaceProgress.svelte index 437c6b414..9c57434ea 100644 --- a/src/routes/(console)/project-[region]-[project]/studio/artifact-[artifact]/workspaceProgress.svelte +++ b/src/routes/(console)/project-[region]-[project]/studio/artifact-[artifact]/workspaceProgress.svelte @@ -26,7 +26,7 @@ .workspace-progress { height: 100%; width: 100%; - background-color: #000; + background-color: var(--bgcolor-neutral-primary); justify-content: center; align-items: center; display: flex; @@ -34,19 +34,34 @@ .progress-steps { width: 240px; - background-color: #282828; + background-color: var(--bgcolor-neutral-secondary); border-radius: 8px; - color: #fff; + color: var(--fgcolor-neutral-primary); } .step { padding: 12px 16px; display: flex; + align-items: center; gap: 12px; } .step:not(:last-child) { - border-bottom: 1px solid rgba(255, 255, 255, 0.1); + border-bottom: 1px solid var(--border-neutral); + } + + .step-status { + display: flex; + align-items: center; + justify-content: center; + width: 16px; + height: 16px; + } + + .step-text { + display: flex; + align-items: center; + line-height: 1; } \ No newline at end of file