Skip to content

armgit / mimik

Public Imported from GitHub
0

🎬 A browser extension and desktop app that turns your clicks into step-by-step guides with annotated screenshots πŸ“–

docs: update AGENTS.md design system + README badges to indigo palette

Luis Ortiz90cddb0ac241
diff --git a/AGENTS.md b/AGENTS.md
index 66f8f48..11f354b 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -43,13 +43,15 @@ src/
β”‚ β”‚ β”œβ”€β”€ spa-nav.ts # SPA navigation tracking
β”‚ β”‚ β”œβ”€β”€ start-notification.ts # Recording notification overlay
β”‚ β”‚ └── step-description.ts # Fallback rule-based descriptions
-β”‚ β”œβ”€β”€ export/ # HTML, PDF, Markdown export generators
+β”‚ β”œβ”€β”€ blur/ # Smart blur: regex presets, DOM scanner, element picker, panel UI
+β”‚ β”œβ”€β”€ export/ # HTML, PDF, Markdown export generators + shared utils
β”‚ └── guides/ # Data layer: types, Dexie DB, CRUD service
β”œβ”€β”€ entrypoints/ # Chrome extension entry points (WXT)
β”‚ β”œβ”€β”€ background/ # Service worker: state machine, message handlers, tab management
β”‚ β”œβ”€β”€ content.ts # Content script: CaptureSession, event listeners, rrweb
β”‚ β”œβ”€β”€ sidepanel/ # Side panel React mount
β”‚ β”œβ”€β”€ fullview/ # Full-page view React mount
+β”‚ β”œβ”€β”€ onboarding/ # Onboarding wizard (opens on first install)
β”‚ └── options/ # Settings page React mount
β”œβ”€β”€ lib/ # Shared utilities
β”‚ β”œβ”€β”€ messaging.ts # Extension messaging protocol (webext-core)
@@ -79,6 +81,8 @@ src/
β”‚ β”œβ”€β”€ ExportMenu.tsx
β”‚ β”œβ”€β”€ BlurCanvas.tsx
β”‚ └── ZoomScreenshot.tsx
+ β”œβ”€β”€ onboarding/ # Onboarding wizard UI
+ β”‚ └── App.tsx # 5-step wizard (welcome, AI, blur, pin, done)
β”œβ”€β”€ shared/ # Shared UI components
β”‚ └── SettingsView.tsx # AI settings (provider, model, API key)
└── options/ # Settings page
@@ -104,6 +108,7 @@ src/
| Content Script | `entrypoints/content.ts` | Injected into all tabs: CaptureSession, event listeners, rrweb |
| Side Panel | `entrypoints/sidepanel/` | Recording controls, library, guide editor, settings |
| Full View | `entrypoints/fullview/` | Dashboard: library browse, guide viewer, Ctrl+K search |
+| Onboarding | `entrypoints/onboarding/` | First-install wizard: AI setup, smart blur, pin extension |
| Options | `entrypoints/options/` | Settings page (shared SettingsView in centered card) |
## Messaging
@@ -206,19 +211,22 @@ Extraction walks up from the target element to find:
## Design System
-All colors are defined as CSS variables in `src/ui/sidepanel/index.css` and used via Tailwind classes:
+All colors are defined as CSS variables in `src/ui/global.css` and used via Tailwind classes:
| Token | Color | Usage |
|-------|-------|-------|
-| `--color-foreground` | `#451a03` | Primary text |
-| `--color-muted-foreground` | `#92400E` | Secondary text |
-| `--color-warm` | `#B45309` | Tertiary text |
-| `--color-border` | `#E8E2DA` | Borders, dividers |
-| `--color-secondary` | `#FEF3C7` | Light wash backgrounds |
-| `--color-gold` | `#FDE68A` | Accent highlights |
-| `--color-amber` | `#F59E0B` | Primary amber |
-| `--color-primary` | `#451a03` | Dark backgrounds, badges |
-| `--color-primary-foreground` | `#FDE68A` | Text on dark backgrounds |
+| `--color-foreground` | `#1E1B4B` | Primary text (deep navy) |
+| `--color-muted-foreground` | `#6B7280` | Secondary text |
+| `--color-border` | `#C7D2FE` | Borders, dividers (lavender) |
+| `--color-secondary` | `#EEF2FF` | Light wash backgrounds |
+| `--color-accent` | `#4F46E5` | Accent / interactive (indigo) |
+| `--color-primary` | `#1E1B4B` | Dark backgrounds, badges |
+| `--color-primary-foreground` | `#C7D2FE` | Text on dark backgrounds |
+| `--color-lavender` | `#C7D2FE` | Soft accent |
+| `--color-purple` | `#4F46E5` | Primary indigo |
+| `--color-deep` | `#1E1B4B` | Deepest navy |
+| `--color-violet` | `#38BDF8` | Sky blue accent |
+| `--color-success` | `#059669` | Success green |
Font: Poppins (loaded via `@fontsource/poppins`).
diff --git a/README.md b/README.md
index 0ba70ec..30e8c09 100644
--- a/README.md
+++ b/README.md
@@ -9,11 +9,11 @@
</p>
<p align="center">
- <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-F59E0B?style=flat-square" alt="MIT License" /></a>
- <img src="https://img.shields.io/badge/chrome-extension-451a03?style=flat-square&logo=googlechrome&logoColor=FDE68A" alt="Chrome Extension" />
- <img src="https://img.shields.io/badge/manifest-v3-D97706?style=flat-square" alt="Manifest V3" />
- <img src="https://img.shields.io/badge/storage-100%25%20local-78350F?style=flat-square" alt="100% Local" />
- <img src="https://img.shields.io/badge/sign%20up-not%20required-92400E?style=flat-square" alt="No Account Required" />
+ <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-4F46E5?style=flat-square" alt="MIT License" /></a>
+ <img src="https://img.shields.io/badge/chrome-extension-1E1B4B?style=flat-square&logo=googlechrome&logoColor=C7D2FE" alt="Chrome Extension" />
+ <img src="https://img.shields.io/badge/manifest-v3-3730A3?style=flat-square" alt="Manifest V3" />
+ <img src="https://img.shields.io/badge/storage-100%25%20local-1E1B4B?style=flat-square" alt="100% Local" />
+ <img src="https://img.shields.io/badge/sign%20up-not%20required-4F46E5?style=flat-square" alt="No Account Required" />
</p>
---
@@ -67,40 +67,27 @@ npx wxt build
## Project Structure
```
-mimik/
-β”œβ”€β”€ entrypoints/
-β”‚ β”œβ”€β”€ background.ts # Service worker: message routing, capture queue
-β”‚ β”œβ”€β”€ content.ts # Content script: event listeners, highlight overlay
-β”‚ β”œβ”€β”€ sidepanel/ # Side panel entrypoint
-β”‚ β”œβ”€β”€ fullview/ # Full dashboard entrypoint
-β”‚ └── options/ # Options page entrypoint
-β”œβ”€β”€ src/
-β”‚ β”œβ”€β”€ background/
-β”‚ β”‚ β”œβ”€β”€ machine.ts # XState capture state machine
-β”‚ β”‚ β”œβ”€β”€ screenshot.ts # Tab screenshot capture
-β”‚ β”‚ └── step-description.ts # Auto-generate step descriptions
-β”‚ β”œβ”€β”€ content/
-β”‚ β”‚ β”œβ”€β”€ events.ts # Click, input, keyboard, clipboard, drag capture
-β”‚ β”‚ β”œβ”€β”€ element-meta.ts # Extract element metadata (selector, aria, rect)
-β”‚ β”‚ └── spa-nav.ts # SPA navigation detection
-β”‚ β”œβ”€β”€ sidepanel/
-β”‚ β”‚ β”œβ”€β”€ App.tsx # Home screen with Sunflower Bright design
-β”‚ β”‚ β”œβ”€β”€ RecordingView.tsx # Live recording step feed
-β”‚ β”‚ β”œβ”€β”€ GuideEditor.tsx # Guide review and editing
-β”‚ β”‚ β”œβ”€β”€ StepCard.tsx # Step display with screenshot
-β”‚ β”‚ └── ZoomScreenshot.tsx # Cropped screenshot with highlight
-β”‚ β”œβ”€β”€ fullview/
-β”‚ β”‚ β”œβ”€β”€ App.tsx # Dashboard shell with full-bleed header
-β”‚ β”‚ β”œβ”€β”€ TopNav.tsx # Amber gradient navigation bar
-β”‚ β”‚ β”œβ”€β”€ LibraryContent.tsx # Guide list/grid with search and filters
-β”‚ β”‚ β”œβ”€β”€ GuideContent.tsx # Guide viewer with step cards
-β”‚ β”‚ └── GuideOutline.tsx # Step outline sidebar panel
-β”‚ └── shared/
-β”‚ β”œβ”€β”€ db-schema.ts # Dexie database schema and migrations
-β”‚ β”œβ”€β”€ guide-service.ts # CRUD operations for guides, steps, screenshots
-β”‚ └── types.ts # TypeScript interfaces
-└── public/
- └── mascot.svg # Mimik chest mascot
+src/
+β”œβ”€β”€ core/ # Business logic (no UI)
+β”‚ β”œβ”€β”€ capture/ # Recording pipeline (events, AI, DOM context)
+β”‚ β”œβ”€β”€ blur/ # Smart blur (regex presets, DOM scanner, panel)
+β”‚ β”œβ”€β”€ export/ # HTML, PDF, Markdown generators + utils
+β”‚ └── guides/ # Data layer (types, Dexie DB, CRUD)
+β”œβ”€β”€ entrypoints/ # Chrome extension entry points (WXT)
+β”‚ β”œβ”€β”€ background/ # Service worker
+β”‚ β”œβ”€β”€ content.ts # Content script
+β”‚ β”œβ”€β”€ sidepanel/ # Side panel
+β”‚ β”œβ”€β”€ fullview/ # Full-page dashboard
+β”‚ β”œβ”€β”€ onboarding/ # First-install wizard
+β”‚ └── options/ # Settings page
+β”œβ”€β”€ lib/ # Shared utilities
+β”œβ”€β”€ stores/ # Zustand state stores
+└── ui/ # React components
+ β”œβ”€β”€ fullview/ # Dashboard views
+ β”œβ”€β”€ sidepanel/ # Side panel views
+ β”œβ”€β”€ onboarding/ # Onboarding wizard
+ β”œβ”€β”€ shared/ # Shared components
+ └── components/ui/ # shadcn/ui primitives
```
## Contributing