-
Notifications
You must be signed in to change notification settings - Fork 39
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
[Tenscan] address and tx placeholder page for MetaMask redirect link #1705
[Tenscan] address and tx placeholder page for MetaMask redirect link #1705
Conversation
WalkthroughThe updates to the ObscuroScan V3 frontend involve enhancing the user interface and accessibility. The Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on X ? TipsChat with CodeRabbit Bot (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 3
Configuration used: CodeRabbit UI
Files ignored due to filter (1)
- tools/obscuroscan_v3/frontend/public/assets/images/clock.png
Files selected for processing (3)
- tools/obscuroscan_v3/frontend/pages/address/[address].tsx (1 hunks)
- tools/obscuroscan_v3/frontend/src/components/layouts/footer.tsx (2 hunks)
- tools/obscuroscan_v3/frontend/src/components/modules/common/empty-state.tsx (1 hunks)
Additional comments: 7
tools/obscuroscan_v3/frontend/pages/address/[address].tsx (1)
- 1-23: The implementation of the
AddressDetails
component with theEmptyState
component to display a placeholder page looks good and follows best practices for React functional components.tools/obscuroscan_v3/frontend/src/components/layouts/footer.tsx (5)
2-2: The change from an alias to a relative path for importing
socialLinks
andversion
is noted and should not affect functionality, assuming the relative path is correct and the files exist at the specified location.11-40: The updates to the DOM structure, including the use of
justify-between
andflex-wrap
classes, and the addition of a newdiv
for version information, are appropriate for improving the layout and accessibility of the footer.16-16: The addition of
aria-label
attributes to anchor elements is a good practice for accessibility, enhancing the experience for users who rely on screen readers.Also applies to: 23-23, 30-30
36-39: The version information is now displayed within an
h3
element, which is a change from the previous implementation. Ensure this aligns with the design and semantic requirements of the page.1-43: > Note: This review was outside the patches, so it was mapped to the patch with the greatest overlap. Original lines [11-56]
Ensure that the removal of the previous
div
for version information, as mentioned in the AI-generated summary, does not affect other parts of the application that may rely on the old structure.tools/obscuroscan_v3/frontend/src/components/modules/common/empty-state.tsx (1)
- 4-29: The addition of the
image
prop to theEmptyState
component is implemented correctly. It is optional and does not affect existing usages of the component. The image is conditionally rendered only if theimage
prop is provided, which aligns with the PR's objective to enhance theEmptyState
component with the ability to display an image.
tools/obscuroscan_v3/frontend/src/components/modules/common/empty-state.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (1)
- tools/obscuroscan_v3/frontend/pages/address/[address].tsx (1 hunks)
Additional comments: 3
tools/obscuroscan_v3/frontend/pages/address/[address].tsx (3)
7-22: The implementation of the
AddressDetails
component looks correct and aligns with the PR objectives to introduce a placeholder page for address details. The usage of theEmptyState
component with the newimage
prop is consistent with the enhancements mentioned in the summary.16-16: The navigation button within the
EmptyState
action is correctly implemented using theuseRouter
hook for client-side navigation to the home page.1-5: The use of path aliases in import statements is a good practice for improving readability and maintainability of the codebase.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (2)
- tools/obscuroscan_v3/frontend/pages/address/[address].tsx (1 hunks)
- tools/obscuroscan_v3/frontend/src/components/modules/common/empty-state.tsx (1 hunks)
Files skipped from review as they are similar to previous changes (2)
- tools/obscuroscan_v3/frontend/pages/address/[address].tsx
- tools/obscuroscan_v3/frontend/src/components/modules/common/empty-state.tsx
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (1)
- tools/walletextension/frontend/src/lib/constants.ts (1 hunks)
Additional comments: 2
tools/walletextension/frontend/src/lib/constants.ts (2)
1-2: The update to
tenGatewayAddress
to use an environment variable or default to a local address is a good practice for configuration management. Ensure that the environment variableNEXT_PUBLIC_API_GATEWAY_URL
is properly set in all deployment environments.4-4: Verify that the domain change from "https://testnet.tenscan.com" to "https://testnet.tenscan.io" is intentional and that the new domain is fully operational to avoid broken links.
export const tenGatewayAddress = | ||
process.env.NEXT_PUBLIC_API_GATEWAY_URL || "http://127.0.0.1:3000"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👀 lol we should probably fix this upstream, looks like a weird hack
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lol yeah, Ziga mentioned when building the static files, it doesn't pick up the env variables. would need to investigate that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Why this change is needed
Please provide a description and a link to the underlying ticket
https://github.com/ten-protocol/ten-internal/issues/2614
What changes were made as part of this PR
Please provide a high level list of the changes made
Add a placeholder page for address
PR checks pre-merging
Please indicate below by ticking the checkbox that you have read and performed the required
PR checks