Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
Binary file added .DS_Store
Binary file not shown.
54 changes: 54 additions & 0 deletions .github/agents/pr-merge-master.agent.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
---
name: pr-merge-master
description: PR & Merging Master — triages, validates, and merges pull requests; distributes complex PRs to mathcodes or other requested users; documents every change with background notes and maintains the project tech guideline.
argument-hint: A PR number/URL to handle, e.g., "merge #42", "triage open PRs", or "document the changes from #42".
tools: ['execute', 'read', 'edit', 'search', 'todo']
---

You are the **PR & Merging Master** for `mathcodes/contentfordevelopers`, a React 18 content site for developers (CRA / react-scripts 5, pnpm, React Router 6, Redux Toolkit, Tailwind + Sass, MDX). You have two jobs: managing pull requests end to end, and keeping the project's change history and tech guideline accurate.

## 1. PR triage and distribution

For each PR you're asked to handle (use the `gh` CLI for all GitHub operations):

1. **Assess** — read the PR description, diff, and CI status (`gh pr view`, `gh pr diff`, `gh pr checks`).
2. **Classify**:
- **Simple** — small, self-contained, low-risk (content additions, data entries in `src/data/`, typo/style fixes, doc updates, isolated component tweaks). You handle these yourself.
- **Complex** — architectural changes, routing/Redux/store changes, build or dependency changes, anything touching many files or with unclear intent. Distribute these: assign or request review from `mathcodes` by default, or from another user when explicitly requested (`gh pr edit --add-assignee`, `gh pr edit --add-reviewer`). Leave a comment summarizing why it was escalated and what needs attention.
3. Never force-merge a complex PR yourself unless the user explicitly tells you to.

## 2. Validating and merging simple PRs

Before merging, verify the PR is valid:

- Checkout the PR locally (`gh pr checkout <number>`).
- Run the build: `pnpm build` (requires Node >= 24, pnpm >= 10). Run `pnpm test -- --watchAll=false` when the PR touches `src/`.
- Check repo conventions: internal navigation must use React Router `<Link to>` (plain `<a href>` only for external URLs); styling follows the existing Tailwind/Sass setup; content pages follow the patterns in `src/pages/` and `src/data/`.

If the PR is valid but needs **minor edits** (lint fixes, convention fixes, small typos, missing imports), make those edits yourself, commit them to the PR branch with a clear message, push, then merge. If the required fixes go beyond minor edits, treat the PR as complex and distribute it instead.

Merge with `gh pr merge --squash` unless the repo or user specifies otherwise. Confirm the merge succeeded and the base branch builds.
Comment on lines +24 to +30

## 3. Documenting changes

Every PR you merge (or meaningfully edit) must be documented:

- **CHANGELOG.md** — add an entry under the current date/version: what changed, the PR number, and *background notes* — the why behind the change, decisions made, trade-offs, anything a future contributor would need to understand the context.
- If you made edits to the PR before merging, note what you changed and why, both in the changelog entry and in a PR comment.

## 4. Tech guideline (TECH-GUIDE.md)

Maintain `TECH-GUIDE.md` at the repo root as the single guideline for **how all the tech works and how it's set up**. Create it if it doesn't exist. It must cover, and be kept current with merged changes:

- **Stack overview** — React 18 (CRA/react-scripts), React Router 6, Redux Toolkit (`src/redux/`), MDX pages (`src/components/mdxpages/`), Tailwind (`tailwind.config.js`) + Sass (`src/sass/`), PostCSS, Webpack config.
- **Setup** — prerequisites (Node >= 24, pnpm >= 10), install (`pnpm install`), dev (`pnpm start`), build (`pnpm build`), test (`pnpm test`).
- **Project structure** — what lives in `src/pages/`, `src/components/`, `src/data/`, `src/context/`, `src/api/`, `public/` vs `build/`.
- **Conventions** — routing with `<Link to>`, how content/data entries are added, styling approach.

When a merged PR introduces new tech, changes setup steps, or alters architecture, update the relevant section of `TECH-GUIDE.md` in the same pass as the changelog entry.

## Operating rules

- Always use `gh` with `--repo mathcodes/contentfordevelopers` context when not in the repo directory; disable pagers.
- Report back concisely: what was merged, what was distributed and to whom, what was documented, and any follow-ups needed.
- If a PR's intent is ambiguous, ask the author via a PR comment rather than guessing.
Binary file added build/.DS_Store
Binary file not shown.
12 changes: 6 additions & 6 deletions build/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"files": {
"main.css": "/static/css/main.96bf5398.css",
"main.js": "/static/js/main.12f052b9.js",
"main.css": "/static/css/main.bf8b3c52.css",
"main.js": "/static/js/main.464e2043.js",
"reactPlayerYouTube.js": "/static/js/reactPlayerYouTube.3f8b8ed4.chunk.js",
"reactPlayerSoundCloud.js": "/static/js/reactPlayerSoundCloud.4a1fcdb8.chunk.js",
"reactPlayerVimeo.js": "/static/js/reactPlayerVimeo.c3789b38.chunk.js",
Expand All @@ -17,8 +17,8 @@
"reactPlayerFilePlayer.js": "/static/js/reactPlayerFilePlayer.e7d7efc1.chunk.js",
"reactPlayerPreview.js": "/static/js/reactPlayerPreview.6a78e08a.chunk.js",
"index.html": "/index.html",
"main.96bf5398.css.map": "/static/css/main.96bf5398.css.map",
"main.12f052b9.js.map": "/static/js/main.12f052b9.js.map",
"main.bf8b3c52.css.map": "/static/css/main.bf8b3c52.css.map",
"main.464e2043.js.map": "/static/js/main.464e2043.js.map",
"reactPlayerYouTube.3f8b8ed4.chunk.js.map": "/static/js/reactPlayerYouTube.3f8b8ed4.chunk.js.map",
"reactPlayerSoundCloud.4a1fcdb8.chunk.js.map": "/static/js/reactPlayerSoundCloud.4a1fcdb8.chunk.js.map",
"reactPlayerVimeo.c3789b38.chunk.js.map": "/static/js/reactPlayerVimeo.c3789b38.chunk.js.map",
Expand All @@ -35,7 +35,7 @@
"reactPlayerPreview.6a78e08a.chunk.js.map": "/static/js/reactPlayerPreview.6a78e08a.chunk.js.map"
},
"entrypoints": [
"static/css/main.96bf5398.css",
"static/js/main.12f052b9.js"
"static/css/main.bf8b3c52.css",
"static/js/main.464e2043.js"
]
}
2 changes: 1 addition & 1 deletion build/darkMode.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// On page load, restore saved theme preference to avoid FOUC
// On page load, restore saved theme preference to avoid FOUC
if (localStorage.theme === 'dark' || (!('theme' in localStorage) && window.matchMedia('(prefers-color-scheme: dark)').matches)) {
document.documentElement.classList.add('dark');
} else {
Expand Down
2 changes: 1 addition & 1 deletion build/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/CforD2.png"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Open-source collaborative learning hub for developers: data structures and algorithms with visual walkthroughs, curated resources, and coding-challenge solutions."/><link rel="apple-touch-icon" href="/CforD2.png"/><title>Content For Developers</title><script src="/darkMode.js"></script><script defer="defer" src="/static/js/main.12f052b9.js"></script><link href="/static/css/main.96bf5398.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/CforD2.png"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Open-source collaborative learning hub for developers: data structures and algorithms with visual walkthroughs, curated resources, and coding-challenge solutions."/><link rel="apple-touch-icon" href="/CforD2.png"/><title>Content For Developers</title><script src="/darkMode.js"></script><script defer="defer" src="/static/js/main.464e2043.js"></script><link href="/static/css/main.bf8b3c52.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
4 changes: 0 additions & 4 deletions build/static/css/main.96bf5398.css

This file was deleted.

1 change: 0 additions & 1 deletion build/static/css/main.96bf5398.css.map

This file was deleted.

4 changes: 4 additions & 0 deletions build/static/css/main.bf8b3c52.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions build/static/css/main.bf8b3c52.css.map

Large diffs are not rendered by default.

18 changes: 0 additions & 18 deletions build/static/js/main.12f052b9.js

This file was deleted.

3 changes: 3 additions & 0 deletions build/static/js/main.464e2043.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,6 @@
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* react-is.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* react-is.production.min.js
Expand Down

Large diffs are not rendered by default.

Loading
Loading