Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 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
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,5 @@ yarn.lock

# typescript
*.tsbuildinfo

next-env.d.ts
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
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ This repository contains the source for the community showcase website maintaine
Live production: https://www.reactdevske.org/

**Table of contents**

- Overview
- Features
- Tech stack
Expand All @@ -23,13 +24,15 @@ Live production: https://www.reactdevske.org/
This site showcases the community, upcoming events, contact information and resources for React developers in Kenya. It's intended as a community-maintained, easy-to-contribute codebase for public-facing content and event announcements.

**Features**

- Responsive, accessible UI built with Next.js and Tailwind CSS.
- Pages for home, about, contact, events, news, forum and members.
- Reusable component library under `src/components`.
- Playwright end-to-end tests (see `e2e/`).
- Docker support for production-like local testing.

**Tech stack**

- Next.js (pages-based) + React
- TypeScript
- Tailwind CSS
Expand All @@ -39,6 +42,7 @@ This site showcases the community, upcoming events, contact information and reso
**Quickstart (local development)**

Prerequisites:

- Node.js 16+ (or the version compatible with the `next` dependency)
- npm or yarn

Expand All @@ -47,7 +51,7 @@ Install dependencies:
```bash
npm install
# or
yarn install
yarn install
```

Run the development server:
Expand All @@ -65,6 +69,7 @@ npm run start
```

Useful scripts (from `package.json`):

- `npm run dev` — starts Next.js in development mode
- `npm run build` — produces a production build
- `npm run start` — runs the production build
Expand Down Expand Up @@ -104,6 +109,7 @@ Playwright config is at `playwright.config.ts`.
- `package.json`, `tsconfig.json`, `next.config.js` — build & tooling

If you want to explore components, start with:

- `src/components/HeroHeader` — site hero
- `src/components/Navbar` — navigation and menu
- `src/components/Events` — events listing and display
Expand All @@ -117,6 +123,7 @@ Contributions are welcome. Please follow the contribution guidelines and communi
- Code of conduct: [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md)

Suggested workflow:

1. Fork the repo and create a feature branch.
2. Run the dev server and make changes.
3. Ensure TypeScript and lint checks pass: `npm run typecheck` and `npm run lint`.
Expand All @@ -134,4 +141,5 @@ Figma design file used for the website is available here:
https://www.figma.com/file/TVwnaDhBGeVdnVKdf6H91C/React-developers-community-website

---

_Last updated: 2026-02-15_
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ services:
- .:/app
command: npm run dev
ports:
- "3000:3000"
- '3000:3000'
environment:
NODE_ENV: development
2 changes: 1 addition & 1 deletion e2e/events.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { test, expect } from '@playwright/test';

test.beforeEach(async ({ page }) => {
Expand All @@ -14,7 +14,7 @@
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(),

Check failure on line 17 in e2e/events.spec.ts

View workflow job for this annotation

GitHub Actions / e2e

[chromium] › e2e/events.spec.ts:8:7 › Test if see more link is clickable › should navigate to the correct URL when See More is clicked

1) [chromium] › e2e/events.spec.ts:8:7 › Test if see more link is clickable › should navigate to the correct URL when See More is clicked Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for getByRole('link', { name: 'See More Events' }) - locator resolved to <a target="_blank" href="https://kommunity.com/reactjs-developer-community-kenya-reactdevske/events" class="bg-[#61dafb] text-black! px-6 w-full max-w-[350px] text-center py-3 rounded-md font-semibold text-lg hover:bg-[#48cae4] transition duration-300 ease-in-out hover:scale-105 hover:shadow-lg">See More Events</a> - attempting click action 2 × waiting for element to be visible, enabled and stable - element is visible, enabled and stable - scrolling into view if needed - done scrolling - <nextjs-portal></nextjs-portal> intercepts pointer events - retrying click action - waiting 20ms 2 × waiting for element to be visible, enabled and stable - element is not stable - retrying click action - waiting 100ms 54 × waiting for element to be visible, enabled and stable - element is visible, enabled and stable - scrolling into view if needed - done scrolling - <nextjs-portal></nextjs-portal> intercepts pointer events - retrying click action - waiting 500ms 15 | context.waitForEvent('page'), 16 | page.waitForLoadState(), > 17 | page.getByRole('link', { name: 'See More Events' }).click(), | ^ 18 | ]); 19 | await expect(newPage).toHaveURL( 20 | 'https://kommunity.com/reactjs-developer-community-kenya-reactdevske/events' at /home/runner/work/reactdevske-website/reactdevske-website/e2e/events.spec.ts:17:59

Check failure on line 17 in e2e/events.spec.ts

View workflow job for this annotation

GitHub Actions / e2e

[chromium] › e2e/events.spec.ts:8:7 › Test if see more link is clickable › should navigate to the correct URL when See More is clicked

1) [chromium] › e2e/events.spec.ts:8:7 › Test if see more link is clickable › should navigate to the correct URL when See More is clicked Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for getByRole('link', { name: 'See More Events' }) - locator resolved to <a target="_blank" href="https://kommunity.com/reactjs-developer-community-kenya-reactdevske/events" class="bg-[#61dafb] text-black! px-6 w-full max-w-[350px] text-center py-3 rounded-md font-semibold text-lg hover:bg-[#48cae4] transition duration-300 ease-in-out hover:scale-105 hover:shadow-lg">See More Events</a> - attempting click action 2 × waiting for element to be visible, enabled and stable - element is visible, enabled and stable - scrolling into view if needed - done scrolling - <nextjs-portal></nextjs-portal> intercepts pointer events - retrying click action - waiting 20ms - waiting for element to be visible, enabled and stable - element is not stable - retrying click action - waiting 100ms - waiting for element to be visible, enabled and stable - element is visible, enabled and stable - scrolling into view if needed - done scrolling - <nextjs-portal></nextjs-portal> intercepts pointer events - retrying click action - waiting 100ms - waiting for element to be visible, enabled and stable - element is not stable 53 × retrying click action - waiting 500ms - waiting for element to be visible, enabled and stable - element is visible, enabled and stable - scrolling into view if needed - done scrolling - <nextjs-portal></nextjs-portal> intercepts pointer events - retrying click action - waiting 500ms 15 | context.waitForEvent('page'), 16 | page.waitForLoadState(), > 17 | page.getByRole('link', { name: 'See More Events' }).click(), | ^ 18 | ]); 19 | await expect(newPage).toHaveURL( 20 | 'https://kommunity.com/reactjs-developer-community-kenya-reactdevske/events' at /home/runner/work/reactdevske-website/reactdevske-website/e2e/events.spec.ts:17:59

Check failure on line 17 in e2e/events.spec.ts

View workflow job for this annotation

GitHub Actions / e2e

[chromium] › e2e/events.spec.ts:8:7 › Test if see more link is clickable › should navigate to the correct URL when See More is clicked

1) [chromium] › e2e/events.spec.ts:8:7 › Test if see more link is clickable › should navigate to the correct URL when See More is clicked Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for getByRole('link', { name: 'See More Events' }) - locator resolved to <a target="_blank" href="https://kommunity.com/reactjs-developer-community-kenya-reactdevske/events" class="bg-[#61dafb] text-black! px-6 w-full max-w-[350px] text-center py-3 rounded-md font-semibold text-lg hover:bg-[#48cae4] transition duration-300 ease-in-out hover:scale-105 hover:shadow-lg">See More Events</a> - attempting click action 2 × waiting for element to be visible, enabled and stable - element is visible, enabled and stable - scrolling into view if needed - done scrolling - <nextjs-portal></nextjs-portal> intercepts pointer events - retrying click action - waiting 20ms 2 × waiting for element to be visible, enabled and stable - element is not stable - retrying click action - waiting 100ms 50 × waiting for element to be visible, enabled and stable - element is visible, enabled and stable - scrolling into view if needed - done scrolling - <nextjs-portal></nextjs-portal> intercepts pointer events - retrying click action - waiting 500ms 15 | context.waitForEvent('page'), 16 | page.waitForLoadState(), > 17 | page.getByRole('link', { name: 'See More Events' }).click(), | ^ 18 | ]); 19 | await expect(newPage).toHaveURL( 20 | 'https://kommunity.com/reactjs-developer-community-kenya-reactdevske/events' at /home/runner/work/reactdevske-website/reactdevske-website/e2e/events.spec.ts:17:59
]);
await expect(newPage).toHaveURL(
'https://kommunity.com/reactjs-developer-community-kenya-reactdevske/events'
Expand Down
42 changes: 19 additions & 23 deletions e2e/hero-header.spec.ts
Original file line number Diff line number Diff line change
@@ -1,27 +1,23 @@
import { test, expect } from '@playwright/test';
import { expect, test } from '@playwright/test';

test.beforeEach(async ({ page }) => {
page.goto('http://localhost:3000');
});

test.describe('Test Hero Header Navigation Links', () => {
test('About us link should navigate to about us section', async ({
page,
}) => {
await page.getByRole('link', { name: 'About us' }).click();
await expect(page).toHaveURL('/#about-us');
test('About us link should navigate to about us page', async ({ page }) => {
await page.getByRole('link', { name: 'About Us' }).click();

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

View workflow job for this annotation

GitHub Actions / e2e

[chromium] › e2e/hero-header.spec.ts:8:7 › Test Hero Header Navigation Links › About us link should navigate to about us page

2) [chromium] › e2e/hero-header.spec.ts:8:7 › Test Hero Header Navigation Links › About us link should navigate to about us page Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for getByRole('link', { name: 'About Us' }) - waiting for" http://localhost:3000/" navigation to finish... - navigated to "http://localhost:3000/" - locator resolved to <a href="/about" class="text-black hover:text-accent-foreground block duration-150">About Us</a> - attempting click action 2 × waiting for element to be visible, enabled and stable - element is visible, enabled and stable - scrolling into view if needed - done scrolling - <nextjs-portal></nextjs-portal> intercepts pointer events - retrying click action - waiting 20ms 2 × waiting for element to be visible, enabled and stable - element is visible, enabled and stable - scrolling into view if needed - done scrolling - <nextjs-portal></nextjs-portal> intercepts pointer events - retrying click action - waiting 100ms - waiting for element to be visible, enabled and stable - element is not stable 49 × retrying click action - waiting 500ms - waiting for element to be visible, enabled and stable - element is visible, enabled and stable - scrolling into view if needed - done scrolling - <nextjs-portal></nextjs-portal> intercepts pointer events - retrying click action - waiting 500ms - waiting for element to be visible, enabled and stable 7 | test.describe('Test Hero Header Navigation Links', () => { 8 | test('About us link should navigate to about us page', async ({ page }) => { > 9 | await page.getByRole('link', { name: 'About Us' }).click(); | ^ 10 | await expect(page).toHaveURL('/about'); 11 | }); 12 | at /home/runner/work/reactdevske-website/reactdevske-website/e2e/hero-header.spec.ts:9:56

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

View workflow job for this annotation

GitHub Actions / e2e

[chromium] › e2e/hero-header.spec.ts:8:7 › Test Hero Header Navigation Links › About us link should navigate to about us page

2) [chromium] › e2e/hero-header.spec.ts:8:7 › Test Hero Header Navigation Links › About us link should navigate to about us page Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for getByRole('link', { name: 'About Us' }) - waiting for" http://localhost:3000/" navigation to finish... - navigated to "http://localhost:3000/" - locator resolved to <a href="/about" class="text-black hover:text-accent-foreground block duration-150">About Us</a> - attempting click action 2 × waiting for element to be visible, enabled and stable - element is visible, enabled and stable - scrolling into view if needed - done scrolling - <nextjs-portal></nextjs-portal> intercepts pointer events - retrying click action - waiting 20ms 2 × waiting for element to be visible, enabled and stable - element is visible, enabled and stable - scrolling into view if needed - done scrolling - <nextjs-portal></nextjs-portal> intercepts pointer events - retrying click action - waiting 100ms - waiting for element to be visible, enabled and stable - element is not stable 50 × retrying click action - waiting 500ms - waiting for element to be visible, enabled and stable - element is visible, enabled and stable - scrolling into view if needed - done scrolling - <nextjs-portal></nextjs-portal> intercepts pointer events - retrying click action - waiting 500ms 7 | test.describe('Test Hero Header Navigation Links', () => { 8 | test('About us link should navigate to about us page', async ({ page }) => { > 9 | await page.getByRole('link', { name: 'About Us' }).click(); | ^ 10 | await expect(page).toHaveURL('/about'); 11 | }); 12 | at /home/runner/work/reactdevske-website/reactdevske-website/e2e/hero-header.spec.ts:9:56
await expect(page).toHaveURL('/about');
});

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

test('Contact link should navigate to Contact Us section', async ({
page,
}) => {
await page.getByRole('link', { name: 'Contact' }).click();
await expect(page).toHaveURL('/#contact-us');
test('Community link should navigate to Community page', async ({ page }) => {
await page.getByRole('link', { name: 'Community', exact: true }).click();
await expect(page).toHaveURL('/community');
});

test('Join Community link should open google form in new tab', async ({
Expand All @@ -31,12 +27,12 @@
const [newPage] = await Promise.all([
context.waitForEvent('page'),
page.waitForLoadState(),
page.getByRole('link', { name: 'Join Community' }).click(),
page.getByRole('link', { name: 'Join the Community' }).click(),
]);
await expect(newPage).toHaveURL(
new RegExp(
'^https://docs.google.com/forms/d/e/1FAIpQLSc_k5sffFTeL9oDug41nXU4Spw5cV84ExaL3jNFu_I1FTZO1w/viewform'
)
await newPage.waitForLoadState('load');
// Accept bit.ly shortlink, docs.google.com, or forms.gle redirect destinations
expect(newPage.url()).toMatch(
/^(https:\/\/)?(bit\.ly|docs\.google\.com|forms\.gle)/
);
});

Expand All @@ -49,10 +45,10 @@
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 bit.ly shortlink, docs.google.com, or forms.gle redirect destinations
expect(newPage.url()).toMatch(
/^(https:\/\/)?(bit\.ly|docs\.google\.com|forms\.gle)/
);
});
});
4 changes: 2 additions & 2 deletions e2e/home.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ test.describe('Home page tests', () => {
).toBeVisible();
});

test("should show 'Join Community' button", async ({ page }) => {
test("should show 'Join the Community' button", async ({ page }) => {
await expect(
page.getByRole('link', { name: 'Join Community' })
page.getByRole('link', { name: 'Join the Community' })
).toBeVisible();
});

Expand Down
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/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