## 1. Create Minimal npm Package Stub

- [ ] 1.1 Create `aimanager-build/aimanager-instagram-connector/index.js` — minimal Express Router with `{ router, startApp }` that accepts all routes and returns 200
- [ ] 1.2 Create minimal `package.json` with `@resultcrafter/aimanager-instagram-connector`
- [ ] 1.3 Create MIT `LICENSE` file with Tiledesk + ResultCrafter attribution
- [ ] 1.4 Create `README.md` with attribution and Phase 1 note
- [ ] 1.5 Commit and push to `git@github.com:zrosty-apps/aimanager-instagram-connector.git`
- [ ] 1.6 Publish to npm: `npm publish --access public`

## 2. Create Server PubModule (stub)

- [ ] 2.1 Create `aimanager-server/pubmodules/instagram/index.js` — require stub connector, export listener + route
- [ ] 2.2 Create `aimanager-server/pubmodules/instagram/listener.js` — call connector.startApp()
- [ ] 2.3 Add npm dependency to `aimanager-server/package.json`
- [ ] 2.4 Register in `pubModulesManager.js`:
  - [ ] Constructor: `this.instagram = undefined; this.instagramRoute = undefined;`
  - [ ] `use()`: `app.use('/modules/instagram', this.instagramRoute);`
  - [ ] `init()`: try/catch with `require('./instagram')` + `listener.listen(config)`

## 3. Add Dashboard UI

- [ ] 3.1 Add `CHANNEL_TYPE_INSTAGRAM` to dashboard `utils/constants.ts`
- [ ] 3.2 Add `CHANNELS_NAME.INSTAGRAM` and CHANNELS[] entry in `utils/util.ts`
- [ ] 3.3 Add `INTEGRATIONS_KEYS.INSTAGRAM` and `APPS_TITLE.INSTAGRAM` in `integrations/utils.ts`
- [ ] 3.4 Add INTEGRATIONS[] entry for Instagram (with icon paths, `pro: false`, plan: 'Sandbox')
- [ ] 3.5 Add Instagram app fetching in `integrations.component.ts` `getApps()`
- [ ] 3.6 Add Instagram badge handling in 4 HTML templates (unserved, served, history, detail)
- [ ] 3.7 Add `CHANNEL_TYPE_INSTAGRAM` to Design Studio `constants.ts`
- [ ] 3.8 Add Instagram icon PNG and channel SVG to assets

## 4. Deploy & Verify

- [ ] 4.1 Commit server submodule changes
- [ ] 4.2 Commit dashboard submodule changes
- [ ] 4.3 Commit parent repo and push
- [ ] 4.4 ArgoCD sync
- [ ] 4.5 Open Dashboard → Apps → verify Instagram appears as installable channel
- [ ] 4.6 Click Instagram → verify configure page loads (placeholder)
