Skip to content

chore: bootstrap agent files (JUM-870)#2834

Open
laurentsenta wants to merge 3 commits intodevelopfrom
feature/jum-870-bootstrap-the-agent-files
Open

chore: bootstrap agent files (JUM-870)#2834
laurentsenta wants to merge 3 commits intodevelopfrom
feature/jum-870-bootstrap-the-agent-files

Conversation

@laurentsenta
Copy link
Copy Markdown
Contributor

@laurentsenta laurentsenta commented Apr 29, 2026

Summary

Bootstraps agent-readiness docs for jumper-exchange so an agent (or contributor) picking up work cold has a baseline map of the repo.

  • AGENTS.md — entry point: commands, repo conventions, pointers
  • ARCHITECTURE.md — app shape and dependency rules
  • CLAUDE.md — thin pointer to AGENTS.md
  • README.md — point readers at the new docs; tighten getting-started + tests sections
  • .gitignore — ignore per-developer overrides (AGENTS.local.md, CLAUDE.local.md)

Linear: JUM-870 Bootstrap the agent files (parent: JUM-869 Jumper Exchange — AI readiness, project: Jumper Engineering AI 101). Mirrors the same bootstrap that landed for jumper-backend (JUM-863) and strapi-cms (JUM-855).

Test plan

  • Skim AGENTS.md and confirm the listed commands match package.json scripts.
  • Skim ARCHITECTURE.md and confirm the dependency rules match the actual src/ layout.
  • Confirm README.md links to AGENTS.md and ARCHITECTURE.md render on GitHub.
  • No CI changes; nothing to verify in the build.

Summary by CodeRabbit

  • Documentation
    • Added comprehensive developer and contributor guides describing project conventions, architecture, tech stack, testing, and workflow guidance.
    • Updated onboarding and README guidance with simplified setup, consolidated developer commands, and clearer test/run instructions.
  • Chores
    • Ignored per-developer local override files to prevent personal config from being tracked.

Add AGENTS.md, ARCHITECTURE.md and a thin CLAUDE.md so agents and
contributors picking up work cold have a baseline map of the repo.
Update README.md to point at the new entry points and rewrite the
getting-started/test sections more tightly. Add per-developer
AGENTS.local.md / CLAUDE.local.md to .gitignore.
Copilot AI review requested due to automatic review settings April 29, 2026 11:20
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 29, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
jumper-exchange Ready Ready Preview, Comment Apr 29, 2026 11:43am
jumper-exchange-storybook Ready Ready Preview, Comment Apr 29, 2026 11:43am

Request Review

@github-actions

This comment has been minimized.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 29, 2026

Walkthrough

Adds new project documentation (AGENTS.md, ARCHITECTURE.md), updates README.md with streamlined setup and test commands, adds .gitignore patterns for local override files, and creates a pointer in CLAUDE.md to the agents doc.

Changes

Cohort / File(s) Summary
Configuration
\.gitignore
Adds ignore patterns for per-developer override files: AGENTS.local.md, CLAUDE.local.md.
Project Guides
AGENTS.md, ARCHITECTURE.md
Adds comprehensive docs describing architecture, stack choices (Next.js App Router, React 19, MUI v9, Emotion, React Query, Zustand, LI.FI, Sentry, testing), repository layout, runtime data flow, invariants (no barrels, thin API handlers, Sentry init rules), and contributor guidance.
Doc Pointer
CLAUDE.md
Adds a one-line pointer indicating agent details live in AGENTS.md.
Readme Updates
README.md
Updates onboarding: enforces Node >=20, links new docs, simplifies dev startup to pnpm dev, reorganizes Tools into command list, adds Tests section with unit/snapshot/Storybook/Playwright commands, and shortens lint/checks guidance.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Suggested reviewers

  • mmioana

Poem

🐰 I nibble through pages, neat and spry,

New guides and maps beneath the sky,
Routes, rules, and commands all in a row,
A tiny hop — the codebase grows,
✨ Cheers from a rabbit on the go

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'chore: bootstrap agent files (JUM-870)' clearly and directly summarizes the main change—adding foundational agent/contributor documentation files.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/jum-870-bootstrap-the-agent-files

Review rate limit: 0/5 reviews remaining, refill in 55 minutes and 20 seconds.

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 29, 2026

✅ All snapshot tests passed

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 5

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@AGENTS.md`:
- Line 30: The markdown reference to an external style guide in the sentence
"Function names should be self-documenting" uses a broken relative link
(`../../../.claude/CLAUDE.md`); update that link in AGENTS.md so it points to a
valid in-repo document (e.g., replace with the correct path to the repo's style
guide) or remove the hyperlink if the guide is intentionally external, ensuring
the visible text "Function names should be self-documenting" remains unchanged.
- Line 9: Replace the non-portable reference token "@README.md" with a standard
relative Markdown link so it renders on GitHub (locate the "See `@README.md`" line
and change it to a regular link like "See [README.md](README.md)" to ensure
portability and correct rendering).

In `@ARCHITECTURE.md`:
- Around line 118-131: Update the “No barrel files (`index.ts` re-exports)”
invariant in ARCHITECTURE.md to align with repo reality: either scope it to “new
or modified code” and explicitly state that existing barrel files (e.g.,
utils/routes/index.ts, hooks/userTracking/index.ts,
providers/ThemeProvider/index.ts, providers/WalletProvider/index.ts) are legacy,
or add a short migration note and timeline with an owner who will remove/replace
those barrels; change the invariant text and append a brief “Migration plan /
timeline” section that lists the known barrel examples and the expected
remediation steps and deadline.
- Around line 30-62: The markdown fenced code blocks in ARCHITECTURE.md (the
ASCII project tree and other blocks shown around lines 30–62 and 66–91) lack
language identifiers and trigger MD040; update each triple-backtick fence (e.g.,
the block containing "jumper-exchange/" and the other ASCII diagrams) to include
a language token such as text (```text) so markdownlint passes and readability
improves—ensure every opening ``` has a matching closing ``` and apply the same
change to all similar fenced blocks in the file.

In `@CLAUDE.md`:
- Line 1: Replace the inline mention "See `@AGENTS.md`" with a standard relative
Markdown link so it renders reliably (e.g., change the text to "See
[AGENTS.md](AGENTS.md)"); locate the string "See `@AGENTS.md`" in CLAUDE.md and
update it to use the Markdown link syntax, making sure the link target matches
the repository filename exactly.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: f0381436-63b4-4793-a2c4-d98b2ba63404

📥 Commits

Reviewing files that changed from the base of the PR and between d66ea2e and 6b0b890.

📒 Files selected for processing (5)
  • .gitignore
  • AGENTS.md
  • ARCHITECTURE.md
  • CLAUDE.md
  • README.md

Comment thread AGENTS.md

## Run, build, test

See @README.md
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Use a standard Markdown link instead of @README.md.

@README.md is not a portable Markdown link format on GitHub. Use a regular relative link so it renders reliably.

Suggested fix
-See `@README.md`
+See [README.md](./README.md)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
See @README.md
See [README.md](./README.md)
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@AGENTS.md` at line 9, Replace the non-portable reference token "@README.md"
with a standard relative Markdown link so it renders on GitHub (locate the "See
`@README.md`" line and change it to a regular link like "See
[README.md](README.md)" to ensure portability and correct rendering).

Comment thread AGENTS.md
- **No barrel files** (`index.ts` re-exports). Import directly from the source file.
- **TypeScript path aliases**: `@/foo` and `src/foo` both resolve to `./src/foo` (see `tsconfig.json` and `vitest.config.ts`). Prefer `@/` in new code.
- **Comments explain *why*, not *what*.** Self-documenting names first; comments only for non-obvious logic or constraints.
- **Function names should be self-documenting** — see [`~/.claude/CLAUDE.md`](../../../.claude/CLAUDE.md) for the user-level style guide we follow.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Fix broken link target for the style guide reference.

../../../.claude/CLAUDE.md points outside the repo and won’t resolve in GitHub. Point to an in-repo doc (or remove the link if intentionally external).

Suggested fix
-- **Function names should be self-documenting** — see [`~/.claude/CLAUDE.md`](../../../.claude/CLAUDE.md) for the user-level style guide we follow.
+- **Function names should be self-documenting** — see [CLAUDE.md](./CLAUDE.md) for the user-level style guide we follow.
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
- **Function names should be self-documenting** — see [`~/.claude/CLAUDE.md`](../../../.claude/CLAUDE.md) for the user-level style guide we follow.
- **Function names should be self-documenting** — see [CLAUDE.md](./CLAUDE.md) for the user-level style guide we follow.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@AGENTS.md` at line 30, The markdown reference to an external style guide in
the sentence "Function names should be self-documenting" uses a broken relative
link (`../../../.claude/CLAUDE.md`); update that link in AGENTS.md so it points
to a valid in-repo document (e.g., replace with the correct path to the repo's
style guide) or remove the hyperlink if the guide is intentionally external,
ensuring the visible text "Function names should be self-documenting" remains
unchanged.

Comment thread ARCHITECTURE.md
Comment on lines +30 to +62
```
jumper-exchange/
├── src/
│ ├── app/ # Next.js App Router
│ │ ├── [lng]/ # all user-facing pages — locale-prefixed
│ │ │ ├── (main)/ # route group: landing + main shell
│ │ │ ├── (infos)/ # route group: legal / informational pages
│ │ │ ├── bridge/, swap/ # core swap surfaces
│ │ │ ├── earn/, portfolio/, quests/, missions/, campaign/, zap/, scan/, onboard/
│ │ │ ├── error-preview/, meta/
│ │ │ ├── error.tsx, layout.tsx
│ │ ├── api/ # Next.js route handlers (thin proxies to jumper-backend)
│ │ ├── lib/, ui/ # framework-level helpers
│ │ ├── layout.tsx, global.css, global-error.tsx, not-found.tsx, robots.ts, sitemap.xml/
│ ├── components/ # feature components (one folder per feature)
│ │ ├── core/, composite/, headless/ # primitives by composition level
│ │ ├── <FeatureName>/ # e.g. EarnDetails, ConnectButton, Cards, …
│ ├── providers/ # provider tree: WalletProvider, ThemeProvider,
│ │ # ReactQueryProvider, TranslationProvider, …
│ ├── stores/<feature>/ # zustand stores (one folder per feature)
│ ├── hooks/<feature>/ # react-query hooks + feature hooks
│ ├── config/ # runtime config (env, wallet connectors, widget)
│ ├── i18n/translations/<lng>/ # translation JSON; resources.d.ts is generated
│ ├── theme/ # MUI theme + design tokens
│ ├── const/, types/, utils/, fonts/, stories/
│ ├── Layout.tsx, proxy.ts
├── tests/ # Playwright E2E + page objects + test data
├── public/ # static assets
├── .storybook/ # Storybook config
├── instrumentation.ts, instrumentation-client.ts, sentry.*.config.ts
├── next.config.mjs, vitest.config.ts, playwright.config.ts, eslint.config.mjs
├── gen-api.sh # regenerates the typed API client from jumper-backend's Swagger
```
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Add language identifiers to fenced code blocks (MD040).

These fenced blocks should specify a language to satisfy markdownlint and improve readability.

Suggested fix
-```
+```text
 jumper-exchange/
 ...
-```
+```

-```
+```text
        ┌─────────────────────────────────────────────────────────┐
 ...
-```
+```

Also applies to: 66-91

🧰 Tools
🪛 markdownlint-cli2 (0.22.1)

[warning] 30-30: Fenced code blocks should have a language specified

(MD040, fenced-code-language)

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@ARCHITECTURE.md` around lines 30 - 62, The markdown fenced code blocks in
ARCHITECTURE.md (the ASCII project tree and other blocks shown around lines
30–62 and 66–91) lack language identifiers and trigger MD040; update each
triple-backtick fence (e.g., the block containing "jumper-exchange/" and the
other ASCII diagrams) to include a language token such as text (```text) so
markdownlint passes and readability improves—ensure every opening ``` has a
matching closing ``` and apply the same change to all similar fenced blocks in
the file.

Comment thread ARCHITECTURE.md Outdated
Comment on lines +118 to +131
- **No barrel `index.ts` files.** Import from source files directly. This keeps the dependency graph honest and tree-shakeable.

If a change requires reversing one of these directions, **stop**. The right shape is usually to move the shared code down a level (often into `utils/` or `config/`) rather than to invert the arrow.

## Invariants

| # | Invariant | Enforcement |
| --- | --- | --- |
| 1 | All user-facing pages live under `src/app/[lng]/` | doc; obvious on review |
| 2 | API route handlers in `src/app/api/` are thin proxies — no business logic | doc |
| 3 | Server state goes through react-query; no direct `fetch` in components | doc |
| 4 | One zustand store per feature folder under `src/stores/` | doc |
| 5 | No barrel files (`index.ts` re-exports) | doc; ESLint candidate |
| 6 | Sentry is initialised only in `instrumentation*.ts` / `sentry.*.config.ts` | doc |
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

Align “no barrel files” invariant with current repository reality.

This section defines an absolute invariant, but current code still contains barrel index.ts files (e.g., src/utils/routes/index.ts, src/hooks/userTracking/index.ts, src/providers/ThemeProvider/index.ts, src/providers/WalletProvider/index.ts). Please either scope this to “new code” or add a migration note/timeline so the architecture doc remains accurate.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@ARCHITECTURE.md` around lines 118 - 131, Update the “No barrel files
(`index.ts` re-exports)” invariant in ARCHITECTURE.md to align with repo
reality: either scope it to “new or modified code” and explicitly state that
existing barrel files (e.g., utils/routes/index.ts, hooks/userTracking/index.ts,
providers/ThemeProvider/index.ts, providers/WalletProvider/index.ts) are legacy,
or add a short migration note and timeline with an owner who will remove/replace
those barrels; change the invariant text and append a brief “Migration plan /
timeline” section that lists the known barrel examples and the expected
remediation steps and deadline.

Comment thread CLAUDE.md
@@ -0,0 +1 @@
See @AGENTS.md
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Switch to a standard Markdown link for reliability.

Use a normal relative link so the pointer renders consistently in GitHub and other Markdown viewers.

Suggested fix
-See `@AGENTS.md`
+See [AGENTS.md](./AGENTS.md)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
See @AGENTS.md
See [AGENTS.md](./AGENTS.md)
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@CLAUDE.md` at line 1, Replace the inline mention "See `@AGENTS.md`" with a
standard relative Markdown link so it renders reliably (e.g., change the text to
"See [AGENTS.md](AGENTS.md)"); locate the string "See `@AGENTS.md`" in CLAUDE.md
and update it to use the Markdown link syntax, making sure the link target
matches the repository filename exactly.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Bootstraps “agent readiness” documentation for jumper-exchange, adding new repo orientation/docs and updating the README + gitignore so new contributors/agents can quickly find commands, conventions, and architecture notes.

Changes:

  • Add new docs: AGENTS.md (entry point) and ARCHITECTURE.md (app shape + dependency rules).
  • Add CLAUDE.md as a pointer file.
  • Update README.md to link the new docs and streamline dev/tools/tests sections; update .gitignore for per-developer overrides.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
README.md Links new docs; refreshes getting-started, tools, and tests guidance.
CLAUDE.md Adds a pointer to AGENTS documentation.
ARCHITECTURE.md Introduces documented app layout + dependency rules and invariants.
AGENTS.md Adds repo conventions, entry points, and “where things go” guidance.
.gitignore Ignores AGENTS.local.md / CLAUDE.local.md per-developer overrides.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread AGENTS.md
Comment thread AGENTS.md

### Style rules

- **No barrel files** (`index.ts` re-exports). Import directly from the source file.
Copy link

Copilot AI Apr 29, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The doc states “No barrel files (index.ts re-exports)”, but the current codebase already contains many index.ts re-export barrels (e.g. src/components/AccordionFAQ/index.ts, src/stores/*/index.ts). Either adjust this rule to “avoid introducing new barrels” / “prefer direct imports for new code”, or plan/enforce a migration and link to it here.

Suggested change
- **No barrel files** (`index.ts` re-exports). Import directly from the source file.
- **Avoid introducing new barrel files** (`index.ts` re-exports). Prefer direct imports from the source file in new code, and do not expand existing barrels unless there is a clear reason.

Copilot uses AI. Check for mistakes.
Comment thread AGENTS.md
- **No barrel files** (`index.ts` re-exports). Import directly from the source file.
- **TypeScript path aliases**: `@/foo` and `src/foo` both resolve to `./src/foo` (see `tsconfig.json` and `vitest.config.ts`). Prefer `@/` in new code.
- **Comments explain _why_, not _what_.** Self-documenting names first; comments only for non-obvious logic or constraints.
- **Function names should be self-documenting** — see [`~/.claude/CLAUDE.md`](../../../.claude/CLAUDE.md) for the user-level style guide we follow.
Copy link

Copilot AI Apr 29, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This links to ../../../.claude/CLAUDE.md, but there’s no .claude/ directory in this repository, so the link will be broken on GitHub. If there’s a shared style guide, consider linking to a URL or adding a repo-local copy (or remove the link if it’s only intended for a specific local setup).

Suggested change
- **Function names should be self-documenting** — see [`~/.claude/CLAUDE.md`](../../../.claude/CLAUDE.md) for the user-level style guide we follow.
- **Function names should be self-documenting** and describe intent clearly at the call site.

Copilot uses AI. Check for mistakes.
Comment thread ARCHITECTURE.md Outdated
| Tests | Playwright (E2E), Vitest (unit, snapshot, Storybook) |
| Package manager | pnpm (`packageManager` field pins the version) |

`node >=20` is required; `.nvmrc` pins the minor.
Copy link

Copilot AI Apr 29, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

node >=20 is accurate (package.json engines), but the statement “.nvmrc pins the minor” doesn’t match the current .nvmrc value (22, major only). Update the wording or pin a specific minor/patch if that’s required for tooling compatibility.

Suggested change
`node >=20` is required; `.nvmrc` pins the minor.
`node >=20` is required; `.nvmrc` pins the major version.

Copilot uses AI. Check for mistakes.
Comment thread ARCHITECTURE.md
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread CLAUDE.md
Comment thread ARCHITECTURE.md Outdated
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
AGENTS.md (1)

73-80: Optional: rephrase repeated “Do not …” bullets to satisfy style lint.

Lines 75–79 contain multiple successive bullets starting with **Do not**, which trips English-word-repeat style lint. It’s not functionally harmful, but consider varying the phrasing (e.g., “Avoid …”) to reduce churn in markdownlint/LanguageTool.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@AGENTS.md` around lines 73 - 80, In the "What NOT to do" section the
consecutive bullets all start with the exact phrase "**Do not**", which trips
the style lint; edit the bullets that currently begin with "**Do not**" (the
lines listing backwards-compatibility shims, barrel index.ts files, business
logic in src/app/api route handlers, Sentry.init calls, and direct strapi-cms
imports) to vary phrasing while preserving meaning — e.g., change some to "Avoid
…", "Do not add …", or "Refrain from …" so the repeated token "**Do not**" is
not used on successive bullets.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@AGENTS.md`:
- Around line 73-80: In the "What NOT to do" section the consecutive bullets all
start with the exact phrase "**Do not**", which trips the style lint; edit the
bullets that currently begin with "**Do not**" (the lines listing
backwards-compatibility shims, barrel index.ts files, business logic in
src/app/api route handlers, Sentry.init calls, and direct strapi-cms imports) to
vary phrasing while preserving meaning — e.g., change some to "Avoid …", "Do not
add …", or "Refrain from …" so the repeated token "**Do not**" is not used on
successive bullets.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 38ea8550-a259-4398-9c1b-cbf3c9aa0a57

📥 Commits

Reviewing files that changed from the base of the PR and between 6b0b890 and 0efb6a9.

📒 Files selected for processing (2)
  • AGENTS.md
  • ARCHITECTURE.md

Comment thread ARCHITECTURE.md Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Laurent Senta <Laurent.Senta@gmail.com>
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

♻️ Duplicate comments (2)
ARCHITECTURE.md (2)

28-60: ⚠️ Potential issue | 🟡 Minor

Add language identifiers to fenced code blocks.

The ASCII directory tree and data flow diagram lack language identifiers, triggering MD040 markdownlint warnings. This issue has already been flagged in previous reviews.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@ARCHITECTURE.md` around lines 28 - 60, The fenced ASCII directory tree in
ARCHITECTURE.md is missing a language identifier and triggers MD040; add a
language label to the opening fence (e.g., change ``` to ```text or ```bash) for
the directory tree block (the triple-backtick block containing
"jumper-exchange/" and its src/ subtree) and do the same for any other fenced
blocks (e.g., the data flow diagram) so all triple-backtick blocks include a
language identifier.

116-116: ⚠️ Potential issue | 🟠 Major

Align "no barrel files" rule with repository reality.

The absolute "No barrel index.ts files" rule has already been flagged as inconsistent with the current codebase, which still contains barrel files (e.g., src/utils/routes/index.ts, src/hooks/userTracking/index.ts, src/providers/ThemeProvider/index.ts, src/providers/WalletProvider/index.ts). This issue was previously identified and requires scoping to "new code" or adding a migration timeline.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@ARCHITECTURE.md` at line 116, The "No barrel index.ts files" rule is too
absolute given existing barrel modules; update the ARCHITECTURE.md entry to
scope the rule to "no new barrel index.ts files" (or add an explicit migration
timeline/exemption list) and mention the existing barrel modules (e.g., routes,
userTracking, ThemeProvider, WalletProvider) as accepted legacy cases; ensure
the rule text explains how to add exemptions and/or the plan for migrating or
removing existing barrels and where contributors should look for the policy
(e.g., a migration checklist or PR tag).
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Duplicate comments:
In `@ARCHITECTURE.md`:
- Around line 28-60: The fenced ASCII directory tree in ARCHITECTURE.md is
missing a language identifier and triggers MD040; add a language label to the
opening fence (e.g., change ``` to ```text or ```bash) for the directory tree
block (the triple-backtick block containing "jumper-exchange/" and its src/
subtree) and do the same for any other fenced blocks (e.g., the data flow
diagram) so all triple-backtick blocks include a language identifier.
- Line 116: The "No barrel index.ts files" rule is too absolute given existing
barrel modules; update the ARCHITECTURE.md entry to scope the rule to "no new
barrel index.ts files" (or add an explicit migration timeline/exemption list)
and mention the existing barrel modules (e.g., routes, userTracking,
ThemeProvider, WalletProvider) as accepted legacy cases; ensure the rule text
explains how to add exemptions and/or the plan for migrating or removing
existing barrels and where contributors should look for the policy (e.g., a
migration checklist or PR tag).

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 25d44f22-e082-4854-92e4-897f9b29a9da

📥 Commits

Reviewing files that changed from the base of the PR and between 0efb6a9 and 54f9d24.

📒 Files selected for processing (2)
  • ARCHITECTURE.md
  • README.md
✅ Files skipped from review due to trivial changes (1)
  • README.md

@github-actions
Copy link
Copy Markdown

Playwright test results

passed  54 passed
flaky  2 flaky
skipped  1 skipped

Details

stats  57 tests across 11 suites
duration  4 minutes, 21 seconds
commit  54f9d24

Flaky tests

chromium › mainMenu.spec.ts › Main Menu flows › Should open Resources section inside menu (Qase ID: 13)
chromium › mainMenu.spec.ts › Main Menu flows › Should open Github page inside Resources section (Qase ID: 15)

Skipped tests

chromium › themeManipulation.spec.ts › Switch between dark and light theme and check the background color › Partner theme should appear in theme menu and apply background color (Qase ID: 49)

📋 View Detailed Qase Report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants