-
Notifications
You must be signed in to change notification settings - Fork 17
chore(docs): 06/01/26 docs refinements #2235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
4a9ca35
Implement goals 1,6,7 from 06/01/26 Slack thread
Y3drk b84addb
Implement goal 8 from 06/01/26 Slack thread, by applying a Google Doc…
Y3drk e504b4b
Implement goal 3 from 06/01/26 Slack thread
Y3drk 46c4baa
Apply AI agents' suggestions, pt.1 + temporary fix the build error
Y3drk 66fc5f4
Merge branch 'main' of https://github.com/namehash/ensnode into y3drk…
Y3drk 7463403
Apply AI agents' suggestions, pt.2
Y3drk 499a4d6
Apply 06/02/26 GitHub review feedback
Y3drk f99a298
Merge branch 'main' of https://github.com/namehash/ensnode into y3drk…
Y3drk b80bf61
Apply AI agents' suggestions, pt.3
Y3drk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
82 changes: 82 additions & 0 deletions
82
docs/ensnode.io/src/components/atoms/NotENSv2ReadyBadge.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,82 @@ | ||
| import type React from "react"; | ||
| import { CheckSolidIcon } from "@components/atoms/icons/CheckSolidIcon"; | ||
| import { SkullIcon } from "@components/atoms/icons/SkullIcon"; | ||
| import { XMarkIcon } from "@components/atoms/icons/XMarkIcon"; | ||
| import { Tooltip } from "@namehash/namehash-ui/legacy"; | ||
| import { useIsMobile } from "@namehash/namehash-ui"; | ||
|
|
||
| export interface ENSSubgraphDependentApplicationTransitionStages { | ||
| toENSNodeSubgraphCompatibleEndpoint: boolean; | ||
| toOmnigraphAPI: boolean; | ||
| } | ||
|
|
||
| interface NotENSv2ReadyBadgeProps { | ||
| transitionStages: ENSSubgraphDependentApplicationTransitionStages; | ||
| } | ||
| export const NotENSv2ReadyBadge = ({ transitionStages }: NotENSv2ReadyBadgeProps) => { | ||
| const isMobile = useIsMobile(440); | ||
| return ( | ||
| <Tooltip | ||
|
Y3drk marked this conversation as resolved.
|
||
| sideOffset={-4} | ||
| maxTooltipWidth={250} | ||
| placement={isMobile ? "bottom" : "right"} | ||
| trigger={ | ||
| <button | ||
| type="button" | ||
| aria-label="Not ENSv2 ready" | ||
| className="w-fit flex flex-row flex-nowrap justify-center items-center gap-1 px-1.5 py-0.5 rounded-sm text-white bg-[#ef4444] cursor-default font-semibold leading-5 text-xs" | ||
| > | ||
| <SkullIcon className="w-3 h-3 shrink-0" /> | ||
| Not ENSv2 ready | ||
| <NotENSv2ReadyInfoIcon className="w-3 h-3 shrink-0 opacity-50" /> | ||
| </button> | ||
| } | ||
| > | ||
| <ENSv2NotReadyTooltipContent transitionStages={transitionStages} /> | ||
|
Y3drk marked this conversation as resolved.
|
||
| </Tooltip> | ||
| ); | ||
| }; | ||
|
|
||
| const ENSv2NotReadyTooltipContent = ({ transitionStages }: NotENSv2ReadyBadgeProps) => { | ||
| const transitionInfoStyles = "flex flex-row flex-nowrap justify-start items-start gap-1.5"; | ||
|
|
||
| return ( | ||
| <div className="h-fit flex flex-col justify-start items-start gap-2 cursor-default -mx-1 py-1"> | ||
| <div className={transitionInfoStyles}> | ||
| {transitionStages.toENSNodeSubgraphCompatibleEndpoint ? ( | ||
| <CheckSolidIcon className="w-5 h-5 shrink-0 pt-1" /> | ||
| ) : ( | ||
| <XMarkIcon className="w-5 h-5 shrink-0 stroke-red-500 stroke-2 pt-0.5" /> | ||
| )} | ||
| <p className="text-xs leading-5">Transitioned from The Graph to ENSNode</p> | ||
| </div> | ||
| <div className={transitionInfoStyles}> | ||
| {transitionStages.toOmnigraphAPI ? ( | ||
| <CheckSolidIcon className="w-5 h-5 shrink-0 pt-1" /> | ||
| ) : ( | ||
| <XMarkIcon className="w-5 h-5 shrink-0 stroke-red-500 stroke-2 pt-0.5" /> | ||
| )} | ||
| <p className="text-xs leading-5">Transitioned from the Subgraph API to the Omnigraph API</p> | ||
| </div> | ||
| </div> | ||
| ); | ||
| }; | ||
|
|
||
| // This icon is located here (and not exported) | ||
| // because this variant of info icon is only used in this badge | ||
| // and nowhere else in the codebase | ||
| const NotENSv2ReadyInfoIcon = (props: React.SVGProps<SVGSVGElement>) => ( | ||
|
Y3drk marked this conversation as resolved.
|
||
| <svg | ||
| xmlns="http://www.w3.org/2000/svg" | ||
| width="12" | ||
| height="12" | ||
| viewBox="0 0 12 12" | ||
| fill="none" | ||
| {...props} | ||
| > | ||
| <path | ||
| d="M6 0C9.31371 0 12 2.68629 12 6C12 9.31371 9.31371 12 6 12C2.68629 12 0 9.31371 0 6C0 2.68629 2.68629 0 6 0ZM5 5C4.58579 5 4.25 5.33579 4.25 5.75C4.25 6.16421 4.58579 6.5 5 6.5H5.25293C5.41287 6.5 5.53176 6.64856 5.49707 6.80469L5.25293 8C5.01013 9.09286 5.84239 10.1299 6.96191 10.1299H7.21484C7.62897 10.1299 7.96471 9.79398 7.96484 9.37988C7.96484 8.96567 7.62906 8.62988 7.21484 8.62988H6.96191C6.80198 8.62988 6.68308 8.48132 6.71777 8.3252L6.96191 7.12988C7.20478 6.03698 6.37249 5 5.25293 5H5ZM6 2C5.44771 2 5 2.44772 5 3C5 3.55228 5.44771 4 6 4C6.55228 4 7 3.55228 7 3C7 2.44772 6.55228 2 6 2Z" | ||
| fill="currentColor" | ||
| /> | ||
| </svg> | ||
| ); | ||
27 changes: 27 additions & 0 deletions
27
docs/ensnode.io/src/components/atoms/icons/CheckSolidIcon.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| import type React from "react"; | ||
|
|
||
| export const CheckSolidIcon = (props: React.SVGProps<SVGSVGElement>) => ( | ||
|
Y3drk marked this conversation as resolved.
|
||
| <svg | ||
| width="12" | ||
| height="12" | ||
| viewBox="0 0 12 12" | ||
| fill="none" | ||
| xmlns="http://www.w3.org/2000/svg" | ||
| xmlnsXlink="http://www.w3.org/1999/xlink" | ||
| {...props} | ||
| > | ||
| <rect width="12" height="12" fill="url(#pattern0_2974_708)" /> | ||
| <defs> | ||
| <pattern id="pattern0_2974_708" patternContentUnits="objectBoundingBox" width="1" height="1"> | ||
| <use xlinkHref="#image0_2974_708" transform="scale(0.0227273)" /> | ||
| </pattern> | ||
| <image | ||
| id="image0_2974_708" | ||
| width="44" | ||
| height="44" | ||
| preserveAspectRatio="none" | ||
| xlinkHref="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAALKADAAQAAAABAAAALAAAAAD8buejAAAJ60lEQVRYCb1ZW2wU1xn+zuzMLr5gahuLNOA0Ntcgol6UUomqFIumuFVL8kKF1LwFnKRCbQnIJm6kLpaaREEFk4c+JS9V1UKf+5CQBmRVbR/Sqq0gQMCYgCEkLL5718zuzpx+/5mZ9Xp9W4q3v707M2fOOf93/vP9l5lViCQJC0n45rK7fouViO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> | ||
| </defs> | ||
|
Y3drk marked this conversation as resolved.
|
||
| </svg> | ||
| ); | ||
|
Y3drk marked this conversation as resolved.
Y3drk marked this conversation as resolved.
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| import type React from "react"; | ||
|
|
||
| export const SkullIcon = (props: React.SVGProps<SVGSVGElement>) => ( | ||
|
Y3drk marked this conversation as resolved.
|
||
| <svg | ||
| xmlns="http://www.w3.org/2000/svg" | ||
| width="12" | ||
| height="12" | ||
| viewBox="0 0 12 12" | ||
| fill="none" | ||
| {...props} | ||
| > | ||
| <g clipPath="url(#clip0_2974_600)"> | ||
| <path | ||
| d="M6 0C2.9675 0 0.5 2.4675 0.5 5.5C0.5 7.355 1.451 9.0935 3 10.1045V11.5C3 11.776 3.224 12 3.5 12H8.5C8.776 12 9 11.776 9 11.5V10.1045C10.549 9.093 11.5 7.3545 11.5 5.5C11.5 2.4675 9.0325 0 6 0ZM3.75 7C3.0595 7 2.5 6.4405 2.5 5.75C2.5 5.0595 3.0595 4.5 3.75 4.5C4.4405 4.5 5 5.0595 5 5.75C5 6.4405 4.4405 7 3.75 7ZM5 9L6 7.5L7 9H5ZM8.25 7C7.5595 7 7 6.4405 7 5.75C7 5.0595 7.5595 4.5 8.25 4.5C8.9405 4.5 9.5 5.0595 9.5 5.75C9.5 6.4405 8.9405 7 8.25 7Z" | ||
| fill="currentColor" | ||
| /> | ||
| </g> | ||
| <defs> | ||
| <clipPath id="clip0_2974_600"> | ||
| <rect width="12" height="12" fill="currentColor" /> | ||
| </clipPath> | ||
| </defs> | ||
| </svg> | ||
| ); | ||
17 changes: 17 additions & 0 deletions
17
...rc/components/molecules/upgrade-to-omnigraph-required-table/ENSSubgraphDependentApp.astro
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| --- | ||
| import { NotENSv2ReadyBadge } from "@components/atoms/NotENSv2ReadyBadge"; | ||
| import type { ENSSubgraphDependentApplicationTransitionStages } from "@components/atoms/NotENSv2ReadyBadge"; | ||
|
|
||
| interface Props extends ENSSubgraphDependentApplicationTransitionStages {} | ||
|
|
||
| const { toENSNodeSubgraphCompatibleEndpoint, toOmnigraphAPI } = Astro.props; | ||
| --- | ||
|
|
||
| <div | ||
| class="w-full h-fit flex flex-col justify-start items-start gap-2.5 px-4 py-3 border-t border-gray-200"> | ||
| <slot /> | ||
| <NotENSv2ReadyBadge | ||
| transitionStages={{ toENSNodeSubgraphCompatibleEndpoint, toOmnigraphAPI }} | ||
| client:load | ||
| /> | ||
| </div> |
11 changes: 11 additions & 0 deletions
11
docs/ensnode.io/src/components/molecules/upgrade-to-omnigraph-required-table/index.astro
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| --- | ||
| --- | ||
|
|
||
| <section | ||
| class="not-content w-full h-fit flex flex-col justify-start items-center gap-0 border border-gray-200 rounded-xl overflow-hidden"> | ||
| <h2 | ||
| class="w-full text-center text-balanced text-sm leading-6 font-semibold text-gray-500! px-2.5 py-1.5"> | ||
|
Y3drk marked this conversation as resolved.
Y3drk marked this conversation as resolved.
|
||
| Upgrade to the ENS Omnigraph required | ||
| </h2> | ||
| <slot /> | ||
| </section> | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.