Skip to content

Latest commit

 

History

History
302 lines (251 loc) · 9.43 KB

File metadata and controls

302 lines (251 loc) · 9.43 KB

Deployment Verification Guide

What Was Deployed

Issue #1: Old Green Icon Still Showing

Root Cause: Old icons were cached on Vercel from previous deployment Fix: Rebuilt with new vault shield icons and redeployed

Issue #2: PWA Install Prompt Not Showing

Root Cause: Manifest missing purpose: 'any' on required icon sizes Fix: Added purpose: 'any' to 192x192 and 512x512 icons in manifest

Changes Deployed (Commit 9888510)

1. New Vault Shield Icon Design:

  • Professional security-focused vault shield shape
  • "TV" initials in teal (#16c79a)
  • Dark navy background (#1a1a2e)
  • Keyhole detail for security symbolism
  • Replaced all instances of old green fill icon

2. PWA Manifest Fix (vite.config.ts):

icons: [
  {
    src: 'pwa-192x192.png',
    sizes: '192x192',
    type: 'image/png',
    purpose: 'any'  // ← Added for installability
  },
  {
    src: 'pwa-512x512.png',
    sizes: '512x512',
    type: 'image/png',
    purpose: 'any'  // ← Added for installability
  },
  {
    src: 'pwa-maskable-192x192.png',
    sizes: '192x192',
    type: 'image/png',
    purpose: 'maskable'
  },
  {
    src: 'pwa-maskable-512x512.png',
    sizes: '512x512',
    type: 'image/png',
    purpose: 'maskable'
  }
]

3. CSP Headers for Preview Server:

  • Added security headers to preview server
  • Matches production security configuration
  • Blocks unauthorized content injection

Verification Steps

Step 1: Wait for Vercel Deployment

  1. Push completed at: 2025-11-09 ~18:50 UTC
  2. Check Vercel dashboard: https://vercel.com/ianpintos-projects/trust-vault-pwa
  3. Wait for "Deployment Complete" status (~2-3 minutes)
  4. Note the deployment URL

Step 2: Clear Browser Cache

CRITICAL: Old icons may be cached by browser and service worker

Chrome:

  1. Open DevTools (F12)
  2. Application tab → Storage → Clear site data
  3. Check: "Unregister service workers"
  4. Check: "Clear storage"
  5. Click "Clear site data"
  6. Hard refresh: Cmd+Shift+R (Mac) or Ctrl+Shift+R (Windows)

Firefox:

  1. Open DevTools (F12)
  2. Storage tab → Cache Storage → Delete all
  3. Service Workers → Unregister all
  4. Hard refresh: Cmd+Shift+R (Mac) or Ctrl+Shift+R (Windows)

Safari:

  1. Develop menu → Empty Caches
  2. Hard refresh: Cmd+R

Step 3: Verify New Icons

A. Check Favicon (Browser Tab)

  1. Visit: https://trust-vault-pwa.vercel.app
  2. Look at browser tab icon
  3. ✅ Should see: Vault shield with TV initials
  4. ❌ If green icon: Clear cache and refresh

B. Check Manifest Icons

  1. Visit: https://trust-vault-pwa.vercel.app/manifest.webmanifest
  2. Verify JSON contains:
    {
      "icons": [
        {"src":"pwa-192x192.png","sizes":"192x192","type":"image/png","purpose":"any"},
        {"src":"pwa-512x512.png","sizes":"512x512","type":"image/png","purpose":"any"},
        {"src":"pwa-maskable-192x192.png","sizes":"192x192","type":"image/png","purpose":"maskable"},
        {"src":"pwa-maskable-512x512.png","sizes":"512x512","type":"image/png","purpose":"maskable"}
      ]
    }
  3. ✅ Should see "purpose":"any" on both 192 and 512 icons
  4. ✅ Should see 4 total icon definitions

C. Check Actual Icon Files

  1. Visit: https://trust-vault-pwa.vercel.app/pwa-512x512.png
  2. ✅ Should see: Vault shield with TV initials (dark navy background, teal border)
  3. ❌ If green icon: Wait a bit more for Vercel CDN to update (~1-2 min)
  4. Also check:

Step 4: Verify PWA Install Prompt

Desktop (Chrome/Edge)

  1. Visit: https://trust-vault-pwa.vercel.app
  2. Wait 5-10 seconds
  3. ✅ Should see: Install icon (+) in address bar (right side)
  4. Click install icon
  5. ✅ Should see: "Install TrustVault PWA?" dialog with new icon
  6. Install and verify icon on desktop/dock

Mobile (Android Chrome)

  1. Visit: https://trust-vault-pwa.vercel.app
  2. Wait 5-10 seconds
  3. ✅ Should see: "Add to Home screen" banner at bottom
  4. Tap "Add to Home screen"
  5. ✅ Should see: New vault shield icon in preview
  6. Add to home screen and verify icon in app drawer

Mobile (iOS Safari)

  1. Visit: https://trust-vault-pwa.vercel.app
  2. Tap Share button (square with arrow up)
  3. Scroll down → Tap "Add to Home Screen"
  4. ✅ Should see: New vault shield icon (uses apple-touch-icon.png)
  5. Tap "Add" and verify icon on home screen

Step 5: Test Maskable Icon (Android Only)

What are maskable icons? Maskable icons ensure the icon isn't clipped when Android applies different shapes (circle, squircle, rounded square, etc.)

To Test:

  1. Add PWA to Android home screen
  2. Check icon shape follows system theme
  3. ✅ Icon should not be clipped or cut off
  4. ✅ TV text should be fully visible in all shapes

Test Different Icon Shapes:

  1. Go to Android Settings → Display → Icon shape (if available)
  2. Try different shapes: Circle, Square, Rounded, Squircle
  3. Return to home screen
  4. ✅ TrustVault icon should adapt without clipping

Step 6: Developer Tools Verification

Chrome DevTools

  1. Open: https://trust-vault-pwa.vercel.app
  2. Open DevTools (F12)
  3. Application tab → Manifest
  4. ✅ Check "Installability" section:
    • "No issues detected" or "Installable"
    • NOT "Manifest does not contain a suitable icon"
  5. ✅ Check "Icons" section:
    • Should show 4 icons
    • Click each to preview
    • All should show new vault shield design

Lighthouse Audit

  1. Open DevTools → Lighthouse tab
  2. Select: "Progressive Web App"
  3. Click "Generate report"
  4. ✅ Check results:
    • "Installable" should be green checkmark
    • "Manifest has a maskable icon" should pass
    • "Web app manifest meets installability requirements" should pass
    • "Has a tag" should pass
  5. PWA score should be 100

Step 7: Service Worker Check

Verify Service Worker Updated:

  1. Open DevTools → Application → Service Workers
  2. Check Status: "activated and is running"
  3. Check version in SW code (should match latest deploy)
  4. If old version cached:
    • Click "Unregister"
    • Hard refresh page (Cmd+Shift+R)
    • Service Worker should re-register with new icons

Troubleshooting

Icons Still Show Green

Solution:

  1. Clear browser cache completely
  2. Unregister service worker
  3. Wait 2-3 minutes for Vercel CDN propagation
  4. Try incognito/private window
  5. Check actual icon URL directly: https://trust-vault-pwa.vercel.app/pwa-512x512.png

Install Prompt Still Not Showing

Checks:

  1. Manifest has purpose: 'any' on icons? (Visit /manifest.webmanifest)
  2. Icons are valid PNG files? (Visit /pwa-192x192.png and /pwa-512x512.png)
  3. HTTPS connection? (Required for PWA)
  4. Not already installed? (Check chrome://apps or home screen)
  5. Wait 5-10 seconds after page load

Maskable Icon Looks Clipped

Solution:

  1. Check icon has 40% safe zone padding
  2. Verify using: https://maskable.app/editor
  3. Upload: https://trust-vault-pwa.vercel.app/pwa-maskable-512x512.png
  4. Ensure content (TV text + shield) stays within safe zone circle

Different Icon Shows on iOS vs Android

This is normal:

  • iOS uses: apple-touch-icon.png (180x180)
  • Android uses: pwa-512x512.png or pwa-maskable-512x512.png
  • Desktop uses: favicon.ico (32x32)
  • All should show same vault shield design, just different sizes

Expected Timeline

Time Event
T+0min Push to GitHub complete
T+1min Vercel build starts
T+3min Vercel deployment complete
T+5min CDN cache updated globally
T+10min All users see new icons

Current Status:

  • ✅ Code pushed to GitHub: 9888510
  • ⏳ Waiting for Vercel deployment
  • ⏳ Waiting for CDN propagation

Success Criteria

All of these must be ✅:

  • Browser tab shows vault shield favicon (not green icon)
  • /manifest.webmanifest has purpose: 'any' on 192 & 512 icons
  • /pwa-512x512.png shows vault shield with TV initials
  • Install icon (+) appears in browser address bar
  • Install dialog shows new vault shield icon
  • Installed PWA shows new icon on desktop/home screen
  • Lighthouse PWA audit: "Installable" = ✅
  • Lighthouse PWA audit: "Has maskable icon" = ✅
  • Service worker version matches latest deploy
  • No console errors related to manifest or icons

Post-Deployment Actions

After verifying success:

  1. Test on Multiple Devices:

    • Desktop Chrome (Windows)
    • Desktop Chrome (Mac)
    • Desktop Edge
    • Mobile Chrome (Android)
    • Mobile Safari (iOS)
  2. Test Install/Uninstall:

    • Install PWA
    • Verify icon on home screen/desktop
    • Uninstall
    • Re-install
    • Icon still correct
  3. Test Update Flow:

    • Keep PWA open
    • Make a code change and deploy
    • Update notification appears
    • Update installs successfully
    • Icon remains correct after update
  4. Monitor Error Logs:

    • Check Vercel logs for deployment errors
    • Check browser console for manifest warnings
    • Check Analytics (if configured) for install success rate

Verification Complete

Once all criteria met:

  • ✅ New vault shield icons deployed successfully
  • ✅ PWA install prompt working on all devices
  • ✅ Maskable icons prevent clipping on Android
  • ✅ All platforms show consistent branding

Deployment Date: 2025-11-09 Commit: 9888510 Deployed By: Claude Code (Anthropic) Vercel Project: trust-vault-pwa