Skip to content

Conversation

kemuru
Copy link
Contributor

@kemuru kemuru commented Sep 1, 2025

Summary by CodeRabbit

  • New Features
    • Added the August 2025 treasury report, now available on the Treasury page.
    • Updated the month list to include August 2025 ahead of July 2025 for easier access to the latest report.
    • Note: The August 2025 risk report is not yet available.

Copy link
Contributor

coderabbitai bot commented Sep 1, 2025

Walkthrough

Added a new entry for August 2025 at the start of the MONTHS array in src/pages/treasury.js with a treasuryReport CID; no riskReport field was included. No other code or exports were changed.

Changes

Cohort / File(s) Summary of changes
Treasury months data update
src/pages/treasury.js
Inserted a new MONTHS entry for August 2025 with treasuryReport "QmTccojcrgQekyU11xTV1z7ZbiyGs37zQsSbPAy6XZRqzx"; positioned before July 2025; no riskReport added; rest unchanged.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

Suggested reviewers

  • alcercu
  • jaybuidl

Poem

A hop and a stamp in the ledger’s light,
August hops in—new carrots in sight!
Bytes in a burrow, neatly aligned,
A fresh report for curious minds.
Thump-thump! says the audit hare—
Another month, we’re almost there. 🥕✨

✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/treasury-august

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore or @coderabbit ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai or @coderabbitai title anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

sonarqubecloud bot commented Sep 1, 2025

Copy link
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: 0

🧹 Nitpick comments (3)
src/pages/treasury.js (3)

10-14: Consistency: prior entries mostly include a filename after the CID.

If the asset is stored under a directory CID, append the actual filename for consistency and to avoid CDN directory responses. If the CID is a file, keep as-is.


185-193: Avoid non-ISO Date parsing for sorting.

Sorting via new Date("2025 August 1") relies on implementation-dependent parsing. Prefer numeric compare on year/month indices.

Apply:

-  reports.sort((a, b) => {
-    const dateA = new Date(`${a.year} ${a.month} 1`);
-    const dateB = new Date(`${b.year} ${b.month} 1`);
-    return dateB - dateA;
-  });
+  const MONTH_INDEX = {
+    January: 0, February: 1, March: 2, April: 3, May: 4, June: 5,
+    July: 6, August: 7, September: 8, October: 9, November: 10, December: 11
+  };
+  reports.sort((a, b) => {
+    const y = Number(b.year) - Number(a.year);
+    return y || (MONTH_INDEX[b.month] - MONTH_INDEX[a.month]);
+  });

280-282: UX check: missing Aug 2025 risk report is intentional?

With no riskReport for 2025 months, the Risk dropdown defaults to Dec 2024. Confirm that this is the desired behavior until a new risk report is added.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 056d917 and d56281c.

📒 Files selected for processing (1)
  • src/pages/treasury.js (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
  • GitHub Check: Redirect rules - kleros-website
  • GitHub Check: Header rules - kleros-website
  • GitHub Check: Pages changed - kleros-website
🔇 Additional comments (2)
src/pages/treasury.js (2)

10-14: LGTM: August 2025 entry added correctly.

The new month entry is well-formed and placed in descending order before July 2025. No issues spotted.


10-14: No changes needed. Confirmed https://cdn.kleros.link/ipfs/QmTccojcrgQekyU11xTV1z7ZbiyGs37zQsSbPAy6XZRqzx returns HTTP 200 with Content-Type: application/pdf.

@kemuru kemuru merged commit a22bf44 into master Sep 1, 2025
8 checks passed
@kemuru kemuru deleted the feat/treasury-august branch September 1, 2025 21:15
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.

1 participant