Skip to content

Update FullRainbow component values and footnote for clarity#2203

Open
djstrong wants to merge 6 commits into
mainfrom
fix-ensrainbow-coverage
Open

Update FullRainbow component values and footnote for clarity#2203
djstrong wants to merge 6 commits into
mainfrom
fix-ensrainbow-coverage

Conversation

@djstrong
Copy link
Copy Markdown
Member

@djstrong djstrong commented May 26, 2026

Lite PR

Tip: Review docs on the ENSNode PR process

Summary

  • What changed (1-3 bullets, no essays).

Why

  • Why this change exists. Link to related GitHub issues where relevant.

Testing

  • How this was tested.
  • If you didn't test it, say why.

Notes for Reviewer (Optional)

  • Anything non-obvious or worth a heads-up.

Pre-Review Checklist (Blocking)

  • This PR does not introduce significant changes and is low-risk to review quickly.
  • Relevant changesets are included (or are not required)

Copilot AI review requested due to automatic review settings May 26, 2026 20:08
@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 26, 2026

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

Project Deployment Actions Updated (UTC)
enskit-react-example.ensnode.io Ready Ready Preview, Comment May 27, 2026 1:47pm
ensrainbow.io Ready Ready Preview, Comment May 27, 2026 1:47pm
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
admin.ensnode.io Skipped Skipped May 27, 2026 1:47pm
ensnode.io Skipped Skipped May 27, 2026 1:47pm

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 26, 2026

⚠️ No Changeset found

Latest commit: 3630b9f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 26, 2026

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 790454c6-de70-438a-bd43-b0cacd1b2cfd

📥 Commits

Reviewing files that changed from the base of the PR and between ddd67ef and 3630b9f.

📒 Files selected for processing (1)
  • docs/ensrainbow.io/src/components/molecules/BarChart.tsx

📝 Walkthrough

Walkthrough

Refactors BarChart rendering/layout (percent computation, external percent label, rainbow fill width transition) and updates FullRainbow BarChart dataset: "ENS Subgraph" set to 11, "Current" and "Target" bar values/gradients adjusted (Target replaces Future target and includes ENSRainbowBeam), and footnote expanded to note encoded labelhashes for unnormalized names.

Changes

ENS Rainbow Chart Updates

Layer / File(s) Summary
BarChart rendering and layout refactor
docs/ensrainbow.io/src/components/molecules/BarChart.tsx
Rewrote data.map(...) bar loop: extracted percent/percentLabel, switched to horizontal layout with an external right-aligned percent <span>, applied rainbow fill as an absolutely positioned element with width: ${percent}%, and changed transition to transition-[width] duration-500 ease-out.
BarChart data, label, and footnote
docs/ensrainbow.io/src/components/organisms/FullRainbow.tsx
Updated BarChart entries: "ENS Subgraph" value set to 11 with revised gradient stops; "Current" bar value and gradient stops updated; "Future target" replaced by "Target" which includes an ENSRainbowBeam label element and new value/gradient stops; footnote text extended to note unnormalized names appear as encoded labelhashes in the ENS Subgraph.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

  • namehash/ensnode#2195: Modifies the same FullRainbow component's BarChart data, labels, and footnote content.

Poem

🐰🌈
I hopped to tweak the rainbow bright,
Bars now march with measured light,
Eleven beams and a target gleam,
Footnote whispers about hashed-name schemes,
I nibble a carrot and celebrate the dream.

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Description check ⚠️ Warning The PR description uses the required template structure but all substantive sections (Summary, Why, Testing, Notes for Reviewer) are empty or incomplete—only the checklist is filled out. Fill in the Summary, Why, and Testing sections with details about what changed, why these changes were made, and how they were tested.
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: updating FullRainbow component values and its footnote, which aligns with the actual modifications to the component's dataset and footnote string.
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 docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix-ensrainbow-coverage

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

ESLint skipped: no ESLint configuration detected in root package.json. To enable, add eslint to devDependencies.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

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

This PR updates the ENSRainbow docs “FullRainbow” chart to reflect revised coverage values and clarifies the explanatory footnote for how results are calculated.

Changes:

  • Adjusted the displayed coverage values for “ENS Subgraph”, “ENSRainbow + ENSNode (Current)”, and the target configuration.
  • Updated the target label to “ENSRainbow + ENSNode + ENSRainbowBeam” and changed the badge text from “Future target” to “Target”.
  • Expanded the footnote to clarify that certain unnormalized/encoded-labelhash formatted names are excluded from results.

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

Copilot AI review requested due to automatic review settings May 26, 2026 20:24
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

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@djstrong djstrong marked this pull request as ready for review May 26, 2026 20:31
@djstrong djstrong requested a review from a team as a code owner May 26, 2026 20:31
@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps Bot commented May 26, 2026

Greptile Summary

This PR updates the FullRainbow component with revised coverage percentages, renames the third bar label to ENSRainbowBeam + ENSNode, adjusts gradient stops accordingly, and expands the footnote to clarify that unnormalized encoded labelhashes are excluded from the reported figures. It also refactors BarChart to move the percentage label outside the bar into a sibling <span>, replacing the old pixel-offset hack with a cleaner flex layout.

  • FullRainbow.tsx: Coverage values updated (Subgraph 19→11, Current 93→94, Target 95→99), third row label changed from "ENSRainbow + ENSNode / Future target" to "ENSRainbowBeam + ENSNode / Target", and the footnote now explains the exclusion of unnormalized encoded labelhashes.
  • BarChart.tsx: percent and percentLabel extracted as variables; the percentage display is moved outside the bar as a right-aligned <span> instead of being absolutely positioned inside it, which is more robust at small bar widths.

Confidence Score: 5/5

Safe to merge — changes are limited to display data values, gradient stops, a label rename, a footnote expansion, and a layout refactor of the bar chart percentage label.

All changes are in documentation/marketing UI components with no business logic, API calls, or shared utilities touched. The bar chart refactor is a straightforward layout improvement, and the data updates are intentional corrections to coverage figures.

No files require special attention.

Important Files Changed

Filename Overview
docs/ensrainbow.io/src/components/molecules/BarChart.tsx Bar chart refactored to extract percent/percentLabel variables and move the percentage label outside the bar into a sibling span — cleaner layout and removes the old pixel-offset hack.
docs/ensrainbow.io/src/components/organisms/FullRainbow.tsx Coverage values updated (Subgraph 19→11, Current 93→94, Target 95→99), 'Future target' label renamed to 'ENSRainbowBeam + ENSNode / Target', gradient stops adjusted, and footnote expanded to clarify exclusion of unnormalized encoded labelhashes.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[BarChart receives data array] --> B[For each item, compute percent = item.value / maxValue × 100]
    B --> C{Is this the last item?}
    C -- Yes --> D[percentLabel = '+' + percent + '%']
    C -- No --> E[percentLabel = percent + '%']
    D --> F[Render label span above bar]
    E --> F
    F --> G[Render grey background bar container]
    G --> H[Render colored inner bar at width=percent%]
    H --> I[Render percentLabel span outside/right of bar]
    I --> J{More items?}
    J -- Yes --> K[Render divider line]
    K --> B
    J -- No --> L[Render footnote below chart]
Loading

Reviews (4): Last reviewed commit: "fix bar chart (#2207)" | Re-trigger Greptile

Copilot AI review requested due to automatic review settings May 26, 2026 21:37
@vercel vercel Bot temporarily deployed to Preview – admin.ensnode.io May 26, 2026 21:37 Inactive
@vercel vercel Bot temporarily deployed to Preview – ensnode.io May 26, 2026 21:37 Inactive
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

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.

Comment on lines 18 to 21
label: <>ENS Subgraph</>,
value: 19,
color: "linear-gradient(90deg, #EA2F86 0%, #CA01FD 0.5%, #0B10FE 80%)",
value: 11,
color: "linear-gradient(90deg, #EA2F86 0%, #CA01FD 4.5%, #0B10FE 154.5%)",
},
]}
title="Name Healing Coverage"
footnote="Coverage vs. indexing the ENS Subgraph with no rainbow tables as of 26 May, 2026."
footnote="Coverage vs. indexing the ENS Subgraph with no rainbow tables as of 26 May, 2026. Results exclude unnormalized names that are formatted as encoded labelhashes in the ENS Subgraph but are actually known."
]}
title="Name Healing Coverage"
footnote="Coverage vs. indexing the ENS Subgraph with no rainbow tables as of 26 May, 2026."
footnote="Coverage vs. indexing the ENS Subgraph with no rainbow tables as of 26 May, 2026. Results exclude unnormalized names that are formatted as encoded labelhashes in the ENS Subgraph but are actually known."
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.

Suggested change
footnote="Coverage vs. indexing the ENS Subgraph with no rainbow tables as of 26 May, 2026. Results exclude unnormalized names that are formatted as encoded labelhashes in the ENS Subgraph but are actually known."
footnote="Coverage vs. indexing the ENS Subgraph with no rainbow tables as of 26 May, 2026. Results exclude unnormalized names that are formatted as encoded labelhashes in the ENS Subgraph but whose underlying names are actually known."

Footnote has grammatically incomplete phrase "but are actually known" without clarifying what is known

Fix on Vercel

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.

3 participants