Skip to content
Merged
Show file tree
Hide file tree
Changes from 14 commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
2d49b1c
Bump up lib versions
nyandika Mar 29, 2025
7d2a498
Update actions to v4
nyandika Mar 29, 2025
6723274
Merge prod
nyandika Apr 7, 2025
fb00cd6
refactor
nyandika Apr 7, 2025
c8b80bb
Fix build
nyandika Apr 7, 2025
7954fbd
Fix failing tests
nyandika Apr 7, 2025
42efcd9
Reset event changes
nyandika Apr 7, 2025
eab5acd
Run prettier
nyandika Apr 7, 2025
b3753e8
Update eslint
nyandika Nov 28, 2025
c7d1a34
Update github actions
nyandika Nov 28, 2025
a68281f
Resolve e2e
nyandika Nov 28, 2025
d9ba75e
Refactor
nyandika Nov 28, 2025
bdb01b0
Fix font
nyandika Nov 28, 2025
42d4f75
Fix overlay for tests
nyandika Dec 23, 2025
7ccdef6
added docker
mosesmbadi Mar 11, 2023
7e2c71d
docs(readme): overhaul README with full project documentation and set…
festus-sulumeti Feb 15, 2026
fa516fe
chore(security): document npm audit vulnerabilities in dependency tree
festus-sulumeti Feb 15, 2026
331d6bc
feat(ui): setup shadcn/ui components with Tailwind support
festus-sulumeti Feb 15, 2026
a61e25c
feat(ui): add Button component via shadcn/ui
festus-sulumeti Feb 15, 2026
392e4ea
feat: updated codebase
festus-sulumeti Feb 15, 2026
e7d1930
feat(navbar): redesign navbar with responsive menu and prominent blue…
festus-sulumeti Feb 15, 2026
0f84974
chore: deleted the dropdown menu from the navbar
festus-sulumeti Feb 15, 2026
19ee1ae
chore: removed the unused image from the importation
festus-sulumeti Feb 15, 2026
a0ff968
Merge branch 'prod' into refactor/lib-updates
orama254 Feb 19, 2026
82104fb
Fix build
nyandika Feb 19, 2026
57bae06
Further updates to libs
nyandika Feb 19, 2026
d493aa9
Add next-env.d.ts to ignore
nyandika Feb 19, 2026
6f63086
Fix e2e tests
nyandika Feb 19, 2026
41570df
Fix format
nyandika Feb 19, 2026
852d3b8
Update tailwind.config.js
orama254 Feb 20, 2026
e64ec14
Update src/components/HeroHeader/HeroHeader.tsx
orama254 Feb 20, 2026
83843c0
chore: resolve formatting issue
orama254 Feb 20, 2026
f04226f
chore: lockfile fix
orama254 Feb 20, 2026
bbd8784
chore: remove orphan code
orama254 Feb 20, 2026
40a0a06
chore: ci refactor fox
orama254 Feb 20, 2026
43c5e6c
chore: prettier code formatting
orama254 Feb 20, 2026
e61f83a
Run e2e tests against prod build
nyandika Feb 21, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
name: End-to-end Tests
on:
push:
branches: [main, develop]
branches: [main, develop, prod]
pull_request:
branches: [main, develop]
branches: [main, develop, prod]
jobs:
e2e:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v6
- name: Prepare .env file
run: |
rm -f .env && touch .env
echo "NEXT_PUBLIC_FORMSPREE_ID=fake123" >> .env
echo "NEXT_PUBLIC_RECAPTCHA_SITE_KEY=123fAkE" >> .env
- uses: actions/setup-node@v3
- uses: actions/setup-node@v6
with:
node-version: '18.x'
node-version: '24.x'
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npm run test
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v5
if: always()
with:
name: playwright-report
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
name: Lint, Format and Build
on:
push:
branches: [main, develop]
branches: [main, develop, prod]
pull_request:
branches: [main, develop]
branches: [main, develop, prod]
jobs:
validate:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: '14.x'
node-version: '24.x'
- name: Install dependencies
run: npm ci
- name: Run code validation (includes linting, prettier and building)
Expand Down
1 change: 0 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ Please note we have a [code of conduct](https://github.com/reactdeveloperske/rea
If you're ready to contribute and create your PR, it will help to set up a local environment so you can see your changes.

1. Set up your development environment

- install your favorite text editor/IDE
- install [Nodejs](nodejs.org)

Expand Down
2 changes: 1 addition & 1 deletion e2e/events.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ test.describe('Test if see more link is clickable', () => {
const [newPage] = await Promise.all([
context.waitForEvent('page'),
page.waitForLoadState(),
page.getByRole('link', { name: 'See More' }).click(),
page.getByRole('link', { name: 'See More Events' }).click(),
]);
await expect(newPage).toHaveURL(
'https://kommunity.com/reactjs-developer-community-kenya-reactdevske/events'
Expand Down
20 changes: 8 additions & 12 deletions e2e/hero-header.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { test, expect } from '@playwright/test';
import { expect, test } from '@playwright/test';

test.beforeEach(async ({ page }) => {
page.goto('http://localhost:3000');
Expand All @@ -13,7 +13,7 @@
});

test('Events link should navigate to Events section', async ({ page }) => {
await page.getByRole('link', { name: 'Events' }).click();
await page.getByRole('link', { name: 'Events', exact: true }).click();
await expect(page).toHaveURL('/#events');
});

Expand All @@ -33,11 +33,9 @@
page.waitForLoadState(),
page.getByRole('link', { name: 'Join Community' }).click(),
]);
await expect(newPage).toHaveURL(
new RegExp(
'^https://docs.google.com/forms/d/e/1FAIpQLSc_k5sffFTeL9oDug41nXU4Spw5cV84ExaL3jNFu_I1FTZO1w/viewform'
)
);
await newPage.waitForLoadState('load');
// Accept either the shortlink (bit.ly) or the final Google Forms URL
expect(newPage.url()).toMatch(/^(https:\/\/)?(bit\.ly|docs\.google\.com)/);

Check failure on line 38 in e2e/hero-header.spec.ts

View workflow job for this annotation

GitHub Actions / e2e

[webkit] › e2e/hero-header.spec.ts:27:7 › Test Hero Header Navigation Links › Join Community link should open google form in new tab

1) [webkit] › e2e/hero-header.spec.ts:27:7 › Test Hero Header Navigation Links › Join Community link should open google form in new tab Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toMatch(expected) Expected pattern: /^(https:\/\/)?(bit\.ly|docs\.google\.com)/ Received string: "https://forms.gle/xd29paxUsqoEHJEb6" 36 | await newPage.waitForLoadState('load'); 37 | // Accept either the shortlink (bit.ly) or the final Google Forms URL > 38 | expect(newPage.url()).toMatch(/^(https:\/\/)?(bit\.ly|docs\.google\.com)/); | ^ 39 | }); 40 | 41 | test('Join ReactDevsKe link should open google form in new tab', async ({ at /home/runner/work/reactdevske-website/reactdevske-website/e2e/hero-header.spec.ts:38:27

Check failure on line 38 in e2e/hero-header.spec.ts

View workflow job for this annotation

GitHub Actions / e2e

[webkit] › e2e/hero-header.spec.ts:27:7 › Test Hero Header Navigation Links › Join Community link should open google form in new tab

1) [webkit] › e2e/hero-header.spec.ts:27:7 › Test Hero Header Navigation Links › Join Community link should open google form in new tab Error: expect(received).toMatch(expected) Expected pattern: /^(https:\/\/)?(bit\.ly|docs\.google\.com)/ Received string: "https://forms.gle/xd29paxUsqoEHJEb6" 36 | await newPage.waitForLoadState('load'); 37 | // Accept either the shortlink (bit.ly) or the final Google Forms URL > 38 | expect(newPage.url()).toMatch(/^(https:\/\/)?(bit\.ly|docs\.google\.com)/); | ^ 39 | }); 40 | 41 | test('Join ReactDevsKe link should open google form in new tab', async ({ at /home/runner/work/reactdevske-website/reactdevske-website/e2e/hero-header.spec.ts:38:27
});

test('Join ReactDevsKe link should open google form in new tab', async ({
Expand All @@ -49,10 +47,8 @@
page.waitForLoadState(),
page.getByRole('link', { name: 'Join ReactDevsKe' }).click(),
]);
await expect(newPage).toHaveURL(
new RegExp(
'^https://docs.google.com/forms/d/e/1FAIpQLSc_k5sffFTeL9oDug41nXU4Spw5cV84ExaL3jNFu_I1FTZO1w/viewform'
)
);
await newPage.waitForLoadState('load');
// Accept either the shortlink (bit.ly) or the final Google Forms URL
expect(newPage.url()).toMatch(/^(https:\/\/)?(bit\.ly|docs\.google\.com)/);
});
});
16 changes: 16 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import nextVitals from 'eslint-config-next/core-web-vitals';
import { defineConfig, globalIgnores } from 'eslint/config';

const eslintConfig = defineConfig([
...nextVitals,
// Override default ignores of eslint-config-next.
globalIgnores([
// Default ignores of eslint-config-next:
'.next/**',
'out/**',
'build/**',
'next-env.d.ts',
]),
]);

export default eslintConfig;
3 changes: 2 additions & 1 deletion next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
import './.next/dev/types/routes.d.ts';

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.
16 changes: 12 additions & 4 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,19 @@
const nextConfig = {
reactStrictMode: true,
pageExtensions: ['page.tsx', 'api.ts'],
eslint: {
dirs: ['src', 'e2e'],
},
images: {
domains: ['bit.ly', 'res.cloudinary.com'],
remotePatterns: [
{
protocol: 'https',
hostname: 'bit.ly',
pathname: '/:path*',
},
{
protocol: 'https',
hostname: 'res.cloudinary.com',
pathname: '/:path*',
},
],
},
};

Expand Down
Loading
Loading