Skip to content

Conversation

@kargig
Copy link
Owner

@kargig kargig commented Jan 2, 2026

  • PWA Integration:

    • Added vite-plugin-pwa for service worker generation and manifest management.
    • Implemented PWAUpdater component for handling app updates.
    • Configured vite.config.js with PWA settings.
    • Removed manual manifest.json reference from index.html.
  • Performance Optimization (LCP):

    • Created a resized version of the hero image (divemap_logo_domain_top4_extend_small.jpg) for mobile devices.
    • Updated HeroSection.js to use srcset for responsive image loading.
    • Added fetchPriority="high" to the hero image to prioritize its loading.
  • Accessibility Improvements:

    • Color Contrast: Adjusted colors in Home.js (buttons and text) to meet WCAG contrast ratio requirements.
    • ARIA Labels: Added accessible names to:
      • Global Search button (GlobalSearchBar.js).
      • Mobile menu toggle button (Navbar.js).
      • Report Issue button (ReportIssueButton.js).
    • Heading Hierarchy: Promoted section headings in Home.js from h3 to h2 for correct document structure.
  • Other Changes:

    • Updated package.json with new dependencies.
    • Added BackgroundLogo.js component (refactor).

- **PWA Integration:**
  - Added `vite-plugin-pwa` for service worker generation and manifest management.
  - Implemented `PWAUpdater` component for handling app updates.
  - Configured `vite.config.js` with PWA settings.
  - Removed manual `manifest.json` reference from `index.html`.

- **Performance Optimization (LCP):**
  - Created a resized version of the hero image (`divemap_logo_domain_top4_extend_small.jpg`) for mobile devices.
  - Updated `HeroSection.js` to use `srcset` for responsive image loading.
  - Added `fetchPriority="high"` to the hero image to prioritize its loading.

- **Accessibility Improvements:**
  - **Color Contrast:** Adjusted colors in `Home.js` (buttons and text) to meet WCAG contrast ratio requirements.
  - **ARIA Labels:** Added accessible names to:
    - Global Search button (`GlobalSearchBar.js`).
    - Mobile menu toggle button (`Navbar.js`).
    - Report Issue button (`ReportIssueButton.js`).
  - **Heading Hierarchy:** Promoted section headings in `Home.js` from `h3` to `h2` for correct document structure.

- **Other Changes:**
  - Updated `package.json` with new dependencies.
  - Added `BackgroundLogo.js` component (refactor).
@kargig kargig merged commit 2d1bc58 into main Jan 2, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants