Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
update nav element active state using pathname
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammad-Owais-Warsi committed Jul 12, 2024
2 parents 96fb5f4 + 4b8d358 commit 6a69674
Show file tree
Hide file tree
Showing 17 changed files with 405 additions and 50 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Linter
on:
push:
branches: main
pull_request:
branches: main
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: latest
- name: Install dependencies
run: npm ci
- name: Run linter
run: npm run lint
27 changes: 27 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Playwright Tests
on:
push:
branches: main
pull_request:
branches: main
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: latest
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npm test
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,9 @@ yarn-error.log*
# typescript
*.tsbuildinfo
next-env.d.ts

# playwright
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/
2 changes: 2 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
npm run lint
npm test
35 changes: 16 additions & 19 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,56 +1,53 @@
## [0.6.2](https://github.com/EddieHubCommunity/HealthCheck/compare/v0.6.1...v0.6.2) (2024-07-12)
## [0.7.4](https://github.com/EddieHubCommunity/HealthCheck/compare/v0.7.3...v0.7.4) (2024-07-12)


### Bug Fixes

* engines to package for groupBy support ([#13](https://github.com/EddieHubCommunity/HealthCheck/issues/13)) ([b35b70c](https://github.com/EddieHubCommunity/HealthCheck/commit/b35b70cf5f037aaa3e8bd7f4b04400c166752c6e))
* latest flagsmith feature flags export ([587320d](https://github.com/EddieHubCommunity/HealthCheck/commit/587320d6c69090d9522de0470ce680a4ce6fbd67))



## [0.6.1](https://github.com/EddieHubCommunity/HealthCheck/compare/v0.6.0...v0.6.1) (2024-07-10)
## [0.7.3](https://github.com/EddieHubCommunity/HealthCheck/compare/v0.7.2...v0.7.3) (2024-07-12)


### Bug Fixes

* improved add github url form ([bbcd17d](https://github.com/EddieHubCommunity/HealthCheck/commit/bbcd17d48eb7f1f9ba2203ea96732bf6319ddf79))
* improved displayed date ([e833b0d](https://github.com/EddieHubCommunity/HealthCheck/commit/e833b0d9c4d2495fa510f70522a30fbcfca99ddb))
* removed build action ([07ea3dc](https://github.com/EddieHubCommunity/HealthCheck/commit/07ea3dc212f9a8aceecee0c0577c40c3a74c38d6))



# [0.6.0](https://github.com/EddieHubCommunity/HealthCheck/compare/v0.5.0...v0.6.0) (2024-07-10)
## [0.7.2](https://github.com/EddieHubCommunity/HealthCheck/compare/v0.7.1...v0.7.2) (2024-07-12)


### Features
### Bug Fixes

* issue and default branch check ([f0b19c1](https://github.com/EddieHubCommunity/HealthCheck/commit/f0b19c186a4ca466b103c79ea123254ba1e94728))
* copy example env file on install ([ce1fcad](https://github.com/EddieHubCommunity/HealthCheck/commit/ce1fcadd3fdf67e80783b7ae7efc31d0d95a6e0c))



# [0.5.0](https://github.com/EddieHubCommunity/HealthCheck/compare/v0.4.0...v0.5.0) (2024-07-10)
## [0.7.1](https://github.com/EddieHubCommunity/HealthCheck/compare/v0.7.0...v0.7.1) (2024-07-12)


### Bug Fixes

* banner text for flagsmith ([959c636](https://github.com/EddieHubCommunity/HealthCheck/commit/959c63656f7866d2a9054d9eb9f7eea90cfc72bd))
* github url to next config for images ([ae5e9ec](https://github.com/EddieHubCommunity/HealthCheck/commit/ae5e9ec2b69cb0ef0b508b3f013a5e8c5ccd6736))
* github actions to latest nodejs ([10718aa](https://github.com/EddieHubCommunity/HealthCheck/commit/10718aa58cdded6c35517cd380f56d059c794ed7))


### Features

* footer with github url ([fee564c](https://github.com/EddieHubCommunity/HealthCheck/commit/fee564c9e951c245a690313ab1191a49c3b008af))
* homepage content ([1c532cd](https://github.com/EddieHubCommunity/HealthCheck/commit/1c532cd8c5ec2754e2fa600752236b2d9dc72ec8))
* page title abstracted ([cd925d2](https://github.com/EddieHubCommunity/HealthCheck/commit/cd925d2eafe29d0401c730f7532ded8e142dce7a))
* project name to header ([76d1f74](https://github.com/EddieHubCommunity/HealthCheck/commit/76d1f74c7dad675e08c3f98559ecd06294dacecf))
* tailwind config for aspect-ration ([3a7216d](https://github.com/EddieHubCommunity/HealthCheck/commit/3a7216daf5859db5a9b620f7f6d73eda7c11f12a))
# [0.7.0](https://github.com/EddieHubCommunity/HealthCheck/compare/v0.6.2...v0.7.0) (2024-07-12)


### Bug Fixes

# [0.4.0](https://github.com/EddieHubCommunity/HealthCheck/compare/v0.3.0...v0.4.0) (2024-07-10)
* lint errors ([f6368b3](https://github.com/EddieHubCommunity/HealthCheck/commit/f6368b3c58b33a8d06bfc39f12462d2ec9338b82))
* test command for github action ([7d5ea43](https://github.com/EddieHubCommunity/HealthCheck/commit/7d5ea43318dde0a682a3ea81274c3e7f847cd2e5))


### Features

* summary stats on repo report ([cf7f0ba](https://github.com/EddieHubCommunity/HealthCheck/commit/cf7f0ba9479ad2fbe795d936a53c506546fd5e83))
* playwright setup and basic tests ([ca9cc19](https://github.com/EddieHubCommunity/HealthCheck/commit/ca9cc19826662590b260b0805ae98cca4ab13613))
* run lint and build on github actions ([ac989dc](https://github.com/EddieHubCommunity/HealthCheck/commit/ac989dc923d07960acc77683fca5930465c5e3b3))
* setup husky ([01ef604](https://github.com/EddieHubCommunity/HealthCheck/commit/01ef6047cc38562a6746f578c95bc6dedd766c8f))



5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ How friendly is your GitHub Open Source Repo? This project will check to make su

## Quickstart guide

> [!CAUTION]
> Node `v21+` is required
1. Clone this GitHub Repo
2. Install the dependencies with `npm ci`
3. Copy `.env.example` to `.env` (you will need an environment key from Flagsmith, this is shown later on)
Expand All @@ -26,7 +29,7 @@ How friendly is your GitHub Open Source Repo? This project will check to make su

c. (OPTIONAL) Import the flags to your Flagsmith account using the file `./flagsmith.json` (note this will be per environment, for example `development`)

![Import flags on Flagsmith](https://github.com/EddieHubCommunity/HealthCheck/assets/624760/f45351af-2013-4928-826a-c9dad33038a4)
![Import flags on Flagsmith](https://github.com/user-attachments/assets/825525e2-11ec-48a5-9c89-a45353142c29)

7. Get your environment key from Flagsmith and add to `.env` file

Expand Down
12 changes: 6 additions & 6 deletions flagsmith.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"default_enabled": true,
"is_server_key_only": false,
"initial_value": "How friendly is your Open Source project?",
"value": "How friendly is your Open Source project?",
"value": "How friendly is your Open Source Repo?",
"type": "unicode",
"enabled": true,
"multivariate": []
Expand All @@ -20,13 +20,13 @@
"multivariate": []
},
{
"name": "welcome",
"default_enabled": false,
"name": "news",
"default_enabled": true,
"is_server_key_only": false,
"initial_value": "Any feedback let us know!",
"value": "Any feedback let us know! Thank you!",
"initial_value": "Have you seen our latest feature XYZ?",
"value": "Have you seen our latest feature XYZ?",
"type": "unicode",
"enabled": true,
"multivariate": []
}
]
]
Loading

0 comments on commit 6a69674

Please sign in to comment.