Skip to content

Feat/0 2 pwa installability - #26

Merged
gcharest merged 23 commits into
mainfrom
feat/0_2_pwa_installability
Dec 10, 2025
Merged

Feat/0 2 pwa installability#26
gcharest merged 23 commits into
mainfrom
feat/0_2_pwa_installability

Conversation

@gcharest

Copy link
Copy Markdown
Owner

This pull request introduces Progressive Web App (PWA) support, automated Lighthouse performance and accessibility checks, and expands both UI requirements and test coverage. The most important changes include adding a PWA manifest and meta tags, implementing end-to-end tests for PWA features, setting up a Lighthouse CI workflow with performance budgets, and enhancing the UI polish checklist and unit tests for meal management.

PWA Support and Metadata

  • Added a comprehensive PWA manifest (public/manifest.json) with app details, icons (including maskable), theme and background colors, and offline-first configuration.
  • Updated index.html to reference the manifest, set the theme color, and provide a descriptive meta tag for the app.

Automated Testing and Quality Assurance

  • Replaced the basic Playwright test with a full suite in e2e/installation.spec.ts to verify PWA manifest, meta tags, icon accessibility, service worker registration, offline support, installability, and mobile viewport friendliness.
  • Added a detailed unit test file for the meal store (src/stores/__tests__/meal.spec.ts), covering session, nutrient, carb calculation, and error handling logic.

Performance and Accessibility Monitoring

  • Introduced a GitHub Actions workflow (.github/workflows/lighthouse.yml) to run Lighthouse CI on pushes and pull requests, uploading results as artifacts.
  • Added a Lighthouse budget file (lighthouse-budget.json) to enforce limits on resource sizes and key performance metrics like FCP, LCP, CLS, and TBT.

UI Requirements and Versioning

  • Expanded the UI polish checklist in the release notes to include new history view features (full nutrient breakdown, edit/delete/duplicate meals, filtering/search), supporting a more robust user experience.
  • Updated the app version in package.json to 0.2.0 reflecting these major improvements.

@gcharest
gcharest requested a review from Copilot December 10, 2025 03:29
@gcharest gcharest self-assigned this Dec 10, 2025
Comment thread .github/workflows/lighthouse.yml Fixed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request introduces comprehensive PWA (Progressive Web App) capabilities, automated performance monitoring, and significantly expands test coverage for the Gluko carb calculator application. The changes transform the app into a fully installable, offline-capable PWA with enforced performance budgets.

Key changes:

  • Complete PWA manifest and service worker configuration with offline-first caching strategies
  • Automated Lighthouse CI workflow with performance/accessibility budgets
  • Comprehensive test suites for nutrient file and meal stores (339 and 288 test cases respectively)

Reviewed changes

Copilot reviewed 13 out of 27 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
public/manifest.json PWA manifest defining app metadata, icons, theme colors, and display mode for installation
index.html Added manifest link, theme color meta tag, and app description for PWA support
vite.config.ts Enhanced service worker config with runtime caching strategies for API, images, and fonts
vitest.config.ts Enabled code coverage with 80% thresholds and targeted inclusion of stores/composables
e2e/installation.spec.ts E2E tests verifying PWA manifest, service worker, offline support, and installability
src/stores/__tests__/nutrientsFile.spec.ts Complete unit test suite for nutrient file store with 339 lines of test coverage
src/stores/__tests__/meal.spec.ts Complete unit test suite for meal store covering session management and carb calculations
.github/workflows/lighthouse.yml CI workflow running Lighthouse audits with budget enforcement on every push/PR
lighthouse-budget.json Performance budgets for resource sizes and core web vitals metrics
docs/releases/v0.5-ui-polish.md Expanded history view requirements with edit/delete/filter capabilities
docs/releases/v0.x-complete-redesign-proposal.md Comprehensive redesign proposal document exploring future UI/UX overhaul options
package.json Version bump to 0.2.0 reflecting PWA feature addition
public/icons/site.webmanifest Additional manifest file for icon metadata

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread e2e/installation.spec.ts Outdated
Comment thread e2e/installation.spec.ts Outdated
Comment thread e2e/installation.spec.ts Outdated
Comment thread vite.config.ts Outdated
Comment thread vite.config.ts
Comment thread public/manifest.json Outdated
@gcharest
gcharest merged commit e5fc712 into main Dec 10, 2025
8 checks passed
@gcharest
gcharest deleted the feat/0_2_pwa_installability branch December 10, 2025 05:34
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.

3 participants