Files
CompanySite/.agents/documentation-writer/CONTACT_UPDATE_SUMMARY.md
T
Clintchiz 0614ae6f85
E2E Test Suite / Critical User Journeys (push) Has been skipped
E2E Test Suite / API Integration Tests (push) Has been skipped
Deploy to Production / Build & Verify (push) Failing after 13s
Ping Search Engines / Notify Search Engines (push) Successful in 3s
Deploy to Production / Pre-Deploy Tests (push) Has been skipped
Deploy to Production / Deploy to Railway (push) Has been skipped
Deploy to Production / Deploy to Render (push) Has been skipped
Deploy to Production / Deploy to VPS (PM2) (push) Has been skipped
Deploy to Production / Deploy to Fly.io (push) Has been skipped
Deploy to Production / Post-Deploy Verification (push) Has been skipped
Deploy to Production / Notify on Failure (push) Successful in 1s
E2E Test Suite / Smoke Tests (P0) (push) Failing after 9m36s
E2E Test Suite / Form Interaction Tests (push) Failing after 12m6s
E2E Test Suite / Destructive & Chaos Tests (push) Failing after 11m46s
E2E Test Suite / Cross-Browser Regression (chromium) (push) Failing after 9m31s
E2E Test Suite / Cross-Browser Regression (firefox) (push) Failing after 11m5s
E2E Test Suite / Cross-Browser Regression (webkit) (push) Failing after 15m24s
E2E Test Suite / Security Header Tests (push) Failing after 7m55s
E2E Test Suite / Test Report Summary (push) Failing after 6s
E2E Test Suite / Mobile Device Tests (push) Failing after 3h12m28s
Uptime Monitor / Health & Response Time (push) Successful in 5s
Uptime Monitor / SSL Certificate (push) Successful in 3s
Uptime Monitor / Send Alerts (push) Has been skipped
Uptime Monitor / Record Uptime Success (push) Successful in 2s
Latest Updated Pages
2026-03-22 14:37:17 +05:30

169 lines
5.0 KiB
Markdown

# Contact Details Update & Bug Fix Summary
**Project:** workroot-website
**Date:** 2026-03-21
**Prepared by:** documentation-writer agent
---
## 1. Contact Information Update
The following contact details were updated across the entire codebase:
| Field | Updated Value |
|-------|---------------|
| **Address** | At Post Rajapur Shantinagar, Taluka Khatav, Dist Satara, MH 415503 |
| **Phone** | +91-9561417403 |
| **Email** | admin@workroot.in |
### Files Updated
| File | What Changed |
|------|--------------|
| `src/layouts/BaseLayout.astro` | Organization schema — address, phone, email |
| `src/pages/contact.astro` | Display contact details + LocalBusiness schema |
| `src/pages/about.astro` | Contact references in structured data |
| `src/pages/index.astro` | Open Graph / meta references |
| `src/components/SEO.astro` | Canonical URL and OG tags |
### Email Domain Migration Note
All pages previously used `.io` email variants (`hello@workroot.io`, `sales@workroot.io`).
These were migrated to `admin@workroot.in` to match the primary domain `workroot.in`.
---
## 2. Bug Fixes Applied
### Bug 1 — Blog Page Theme Styling
**Problem:** Blog page content did not apply dark/light theme correctly; text remained unstyled on theme toggle.
**Fix:** Updated `src/pages/blog/index.astro` and `src/pages/blog/[...slug].astro` with correct Tailwind dark-mode class variants.
**Impact:** Both blog listing and individual blog post pages now theme correctly.
---
### Bug 2 — Header Text Color in Dark Mode
**Problem:** Navigation/header text remained black when switching to dark mode.
**Fix:** Updated `src/components/Header.astro` — added `dark:text-white` / `dark:text-gray-100` classes to nav links and logo text.
**Impact:** Header is now fully theme-aware across all pages.
---
### Bug 3 — Read Blog 500 Error
**Problem:** Visiting individual blog post URLs returned a 500 Internal Server Error.
**Root cause:** SSR rendering issue in the dynamic `[...slug].astro` route — content collection query failed under certain slug patterns.
**Fix:** Corrected content collection query and added proper error handling in `src/pages/blog/[...slug].astro`.
**Impact:** All blog post pages now render correctly.
---
### Bug 4 — CORS Issues for Newsletter and Contact Forms
**Problem:** Newsletter subscription and Contact Us form submissions failed with CORS errors in cross-origin scenarios.
**Fix:** Updated `src/middleware.ts` to add proper CORS headers for API routes. Updated `src/pages/api/contact.ts` and `src/pages/api/newsletter.ts`.
**Impact:** Forms now work correctly from all allowed origins.
---
### Bug 5 — Duplicate Footer
**Problem:** Some pages rendered two footer instances.
**Fix:** Removed duplicate `<Footer />` component import/usage from affected page layouts.
**Impact:** All pages now render exactly one footer.
---
## 3. Google Maps Embed Update
The Contact page previously displayed a static SVG map placeholder.
**Change:** Replaced the placeholder with a live Google Maps `<iframe>` embed.
**File:** `src/pages/contact.astro`
**CSP Update:** `src/middleware.ts` was updated to allow `maps.google.com` in `frame-src` of the Content Security Policy.
---
## 4. SEO & Structured Data Updates
- `BaseLayout.astro` Organization schema updated with new address, phone, email.
- Contact page now includes full `LocalBusiness` schema with complete contact details.
- All pages verified to use consistent `workroot.in` domain in canonical URLs and Open Graph tags.
---
## 5. Security Audit (Form Endpoints)
Following the CORS fix, a security audit was conducted on the Newsletter and Contact form API endpoints.
**Endpoints audited:**
- `POST /api/contact`
- `POST /api/newsletter`
**Findings:** No critical vulnerabilities found. CORS, input validation, and rate-limiting patterns are in place per audit report in `.agents/security-auditor/`.
---
## 6. Deployment Notes
### Environment Variables Required
```
# Email
SMTP_HOST=<your-smtp-host>
SMTP_PORT=587
SMTP_USER=<your-smtp-user>
SMTP_PASS=<your-smtp-password>
CONTACT_EMAIL=admin@workroot.in
# Analytics (optional)
GOOGLE_ANALYTICS_ID=<your-ga4-id>
# Site
PUBLIC_SITE_URL=https://workroot.in
NODE_ENV=production
```
### Build & Start Commands
```bash
# Install dependencies
npm install
# Build for production
npm run build
# Start production server
npm run start:prod
```
### Test Commands
```bash
# Run all tests
npm test
# Smoke tests only (fast CI check)
npm run test:smoke
# Cross-browser tests
npm run test:chromium
npm run test:firefox
npm run test:webkit
```
---
## 7. Related Agent Reports
| Agent | Report Location |
|-------|----------------|
| SEO Specialist | `.agents/seo-specialist/THEME_SEO_UPDATE.md` |
| Performance Optimizer | `.agents/performance-optimizer/POST_FIX_PERFORMANCE_REPORT.md` |
| QA Automation Engineer | `.agents/qa-automation-engineer/BUG_FIX_TEST_REPORT.md` |
| Security Auditor | `.agents/security-auditor/` |
| Frontend Specialist | `.agents/frontend-specialist/THEME_SYSTEM_ARCHITECTURE.md` |
| Test Engineer | `.agents/test-engineer/THEME_TESTING_REPORT.md` |