From 8beddc09fa685fe3419e7df6689f7b42132bb089 Mon Sep 17 00:00:00 2001 From: HarushiSingla Date: Fri, 15 Aug 2025 13:09:33 +0530 Subject: [PATCH 1/4] a11y: add 'Skip to main content' link and wrap app in
landmark --- index.html | 47 +++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 45 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index dbef44fb..333ffa62 100644 --- a/index.html +++ b/index.html @@ -4,12 +4,55 @@ - + VigyBag - Eco friendly store + + + + -
+ + + + +
+
+
+ From 5be7dd6642320ecb74302091459d8bec63873ae8 Mon Sep 17 00:00:00 2001 From: HarushiSingla Date: Fri, 15 Aug 2025 13:48:33 +0530 Subject: [PATCH 2/4] feat: add custom 404 Not Found page --- src/App.jsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/App.jsx b/src/App.jsx index ecac6994..7d86e5e9 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1,6 +1,7 @@ import React from "react"; import { Route, Routes } from "react-router-dom"; import { AuthProvider } from "./context/AuthContext"; +import NotFound from "./pages/NotFound"; // User components import UserAuth from "./User/pages/UserAuth/UserAuth"; @@ -257,6 +258,7 @@ export default function App() { {/* Admin verification and login routes */} } /> } /> + } /> ); From e044987db144d535f92bf970adebe9f5b39acaf3 Mon Sep 17 00:00:00 2001 From: HarushiSingla Date: Sat, 16 Aug 2025 13:09:20 +0530 Subject: [PATCH 3/4] chore(ci): add GitHub Actions CI + PR/Issue templates --- .github/pull_request_template.md | 23 +++++++++++++++++ .github/workflows/ci.yml | 42 ++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index ec589427..5ea98623 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -17,3 +17,26 @@ ## Note to reviewers + + +## Description + + + +## Type of change +- [ ] Bug fix +- [ ] New feature +- [ ] Documentation +- [ ] CI / Build +- [ ] Other (please describe): + +## How to test +1. Steps to reproduce / test locally +2. + +## Checklist +- [ ] My code follows the project style (naming, formatting). +- [ ] I added/updated relevant tests (if applicable). +- [ ] I added/updated documentation (if applicable). +- [ ] Screenshots attached (if UI changes). + diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..ede0f9e5 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,42 @@ +name: CI + +on: + push: + branches: + - main + - develop + pull_request: + branches: + - main + - develop + +jobs: + build: + name: Install β†’ Lint β†’ Test β†’ Build + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [18.x, 20.x] + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + + - name: Install dependencies + run: npm ci + + - name: Lint (if configured) + run: npm run lint --if-present + + - name: Run tests (if configured) + run: npm test --if-present + + - name: Build (if configured) + run: npm run build --if-present + From fa3d9b6335c3e66accaa2ef181140dad4f6d84d9 Mon Sep 17 00:00:00 2001 From: HarushiSingla Date: Sat, 16 Aug 2025 13:20:28 +0530 Subject: [PATCH 4/4] docs(readme): add GitHub Actions CI badge --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index eebe58ef..66ca9324 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ Logo

VigyBag

+![CI](https://github.com/codervivek5/VigyBag/actions/workflows/ci.yml/badge.svg) +