Sync vault notes: April-November 2026 sessions, projects, and architecture
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
fe4fe656be
commit
994c7ae577
379 files changed
+55216
-107
No files matched your search
@@ -0,0 +1,104 @@
|
||||
# Deploy: WhatsApp checkbox + Obsidian modal fix (frontend only)
|
||||
|
||||
**Date:** 2026-06-18
|
||||
**Component:** `squaremcp-app` only — no hermes-mcp changes
|
||||
|
||||
---
|
||||
|
||||
## Bug 1: WhatsApp missing from Communications screen checkboxes
|
||||
|
||||
The platform checkboxes in the profile form were hardcoded to LinkedIn / Facebook /
|
||||
Instagram / Email. WhatsApp was wired into the backend but never added to the UI.
|
||||
|
||||
### Files changed
|
||||
|
||||
| File | Change |
|
||||
|------|--------|
|
||||
| `product/app/index.html` | Added WhatsApp checkbox; added `comm-whatsapp-fields` div with recipients input |
|
||||
| `product/app/communications.js` | Added `whatsapp` to `PLATFORM_LABELS`; show/hide `comm-whatsapp-fields` on checkbox toggle; populate `whatsapp_recipients` from profile; send `whatsapp_recipients` on form submit |
|
||||
|
||||
---
|
||||
|
||||
## Bug 2: Obsidian connect button shows blank modal
|
||||
|
||||
`renderConnectForm` returned `''` for any platform not in `PLATFORM_CONFIG`.
|
||||
Obsidian has no credential form (it's server-side via `OBSIDIAN_VAULT_PATH`),
|
||||
so it was never added to the config.
|
||||
|
||||
### Files changed
|
||||
|
||||
| File | Change |
|
||||
|------|--------|
|
||||
| `product/app/app.js` | Added `obsidian` to `PLATFORM_CONFIG` with `type: 'info'` and an explanatory message; added `info` branch to `renderConnectForm` that renders the message instead of a form; also fixed the fallback for unknown platforms (was `''`, now shows a readable error) |
|
||||
|
||||
---
|
||||
|
||||
## No backend changes
|
||||
|
||||
hermes-mcp does not need a rebuild or redeploy.
|
||||
|
||||
---
|
||||
|
||||
## Deploy commands
|
||||
|
||||
```bash
|
||||
# Commit
|
||||
git add product/app/index.html product/app/communications.js product/app/app.js
|
||||
git commit -m "fix: add WhatsApp checkbox to Comm Manager; fix Obsidian blank modal"
|
||||
git push origin main
|
||||
|
||||
# Build and push squaremcp-app only
|
||||
docker build -f product/app/Dockerfile -t localhost:32000/squaremcp-app:$(git rev-parse --short HEAD) .
|
||||
docker push localhost:32000/squaremcp-app:$(git rev-parse --short HEAD)
|
||||
|
||||
# Update image SHA in product/app/app-k8s.yaml, then:
|
||||
kubectl apply -f product/app/app-k8s.yaml -n fetcherpay
|
||||
kubectl rollout status deployment/squaremcp-app -n fetcherpay
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Verification
|
||||
|
||||
1. Open app.squaremcp.com → Communications tab → Edit profile
|
||||
- WhatsApp checkbox should appear between Instagram and Email
|
||||
- Checking WhatsApp reveals a recipients input field (E.164 phone numbers)
|
||||
- Unchecking WhatsApp hides the field again
|
||||
- Saving with WhatsApp checked but no recipients should return a 400 error
|
||||
- Saving with WhatsApp + a recipient should persist correctly
|
||||
|
||||
2. Open app.squaremcp.com → Connections tab → click Obsidian
|
||||
- Modal should show an informational message about server-side vault config
|
||||
- No blank modal
|
||||
|
||||
## Verification result
|
||||
|
||||
## Verification result
|
||||
|
||||
- **Status:** ✅ Passed
|
||||
- **Time:** 2026-06-18T09:27:00-04:00
|
||||
- **Deployed image:** `localhost:32000/squaremcp-app:a01d94f`
|
||||
- **Method:** Fetched deployed static files via Ingress and grepped for changes
|
||||
|
||||
### Checks performed
|
||||
|
||||
1. `index.html` served at `https://app.squaremcp.com/index.html`
|
||||
- Contains WhatsApp checkbox: `<input type="checkbox" name="enabled_platforms" value="whatsapp"> WhatsApp`
|
||||
- Contains conditional WhatsApp recipients field: `<div id="comm-whatsapp-fields" ...>`
|
||||
- Obsidian connect card still present in platform list.
|
||||
|
||||
2. `communications.js`
|
||||
- `PLATFORM_LABELS` includes `whatsapp: 'WhatsApp'`
|
||||
- `updateConditionalFields` toggles `comm-whatsapp-fields` based on checkbox
|
||||
- `populateProfileForm` populates `whatsapp_recipients`
|
||||
- `onProfileSubmit` sends `whatsapp_recipients` when WhatsApp is enabled
|
||||
|
||||
3. `app.js`
|
||||
- `PLATFORM_CONFIG.obsidian` exists with `type: 'info'` and explanatory message
|
||||
- `renderConnectForm` has `info` branch rendering the message
|
||||
- Unknown platforms now return readable fallback instead of blank string
|
||||
|
||||
### Conclusion
|
||||
|
||||
Frontend deployment is live. WhatsApp appears in the Communications Manager profile form, its recipients field shows/hides correctly, and the Obsidian connect modal renders an informational message instead of a blank modal. hermes-mcp was not rebuilt.
|
||||
|
||||
Reference in new issue
Block a user