Skip to content
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

Migrate the WebSocket API page (https://xrpl.org/websocket-api-tool.html) #2265

Closed
wants to merge 12 commits into from

Conversation

pdp2121
Copy link
Contributor

@pdp2121 pdp2121 commented Nov 14, 2023

Migrate websocket-api-page to Redocly.

This would include:

  • the right side bar to choose method
  • the header that display the chosen method
  • the codebox that displays the code body of the chosen method
  • the Send Request button to send the request
  • the Response section where request results are shown in chronological order
  • the connection modal to choose the network to connect to
  • the permalink modal to get the deep link of the current code
  • the curl modal to make equivalent JSON-RPC request
  • the Pause Subscription button to pause subscribe methods
  • the Keep Last section to set upper bound for responses displayed
  • the slug on the url to update and load the page based on selected method

Things left to do:

  • Get the linter working for code box

Copy link

socket-security bot commented Nov 14, 2023

New and updated dependencies detected. Learn more about Socket for GitHub ↗︎

Packages Version New capabilities Transitives Size Publisher
use-query-params 2.2.1 None +1 506 kB pbeshai
@redocly/portal 0.67.1...0.68.1 environment +0/-0 2.09 MB marshevskyy

Copy link

socket-security bot commented Nov 14, 2023

👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.

@mDuo13 mDuo13 added this to the Toolchain-Migration-Redocly milestone Nov 15, 2023
content/dev-tools/utils/data/connections.json Outdated Show resolved Hide resolved
content/dev-tools/utils/data/connections.json Outdated Show resolved Hide resolved
"longname": "amm.devnet.rippletest.net (XLS-30d AMM Devnet)"
},
{
"id": "wstool-1-connection-localhost",
Copy link
Contributor

Choose a reason for hiding this comment

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

Not for this PR but I would love for this to allow you specify a custom url like the explorer does.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agreed. Probably we can create an issue

@@ -0,0 +1,282 @@
import * as React from "react";
Copy link
Contributor

Choose a reason for hiding this comment

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

Odd that importing React is required. The need for this was eliminated a while ago. The explorer now doesnt require it.

content/dev-tools/utils/websocketapi-modals.tsx Outdated Show resolved Hide resolved
currentMethod,
selectedConnection,
}) => (
<div
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this modal code leveraging the bootstrap jquery library?

content/dev-tools/utils/websocketapi-modals.tsx Outdated Show resolved Hide resolved
content/dev-tools/websocket-api-tool.page.tsx Outdated Show resolved Hide resolved
</a>
</div>

<div className="api-input-area pt-4">
Copy link
Contributor

Choose a reason for hiding this comment

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

The request area is a good candidate for its own component.

content/dev-tools/websocket-api-tool.page.tsx Outdated Show resolved Hide resolved
Copy link

github-actions bot commented Dec 5, 2023

Link check report. 553607 links checked.
58 broken links found:
File: out/xrp-ledger-overview.html Link: ./img/backgrounds/xrpl-overview-purple.svg
File: out/xrp-ledger-overview.html Link: ./img/backgrounds/xrpl-overview-orange.svg
File: out/xrp-ledger-overview.html Link: ./img/backgrounds/cta-xrpl-overview-green.svg
File: out/xrp-ledger-overview.html Link: ./img/backgrounds/cta-xrpl-overview-orange.svg
File: out/xrp-overview.html Link: ./img/backgrounds/xrp-overview-blue.svg
File: out/xrp-overview.html Link: ./img/backgrounds/cta-xrp-overview-magenta.svg
File: out/xrp-overview.html Link: ./img/backgrounds/cta-xrp-overview-green-2.svg
File: out/history.html Link: ./img/backgrounds/history-orange.svg
File: out/history.html Link: ./img/backgrounds/history-purple.svg
File: out/impact.html Link: ./img/backgrounds/community-purple.svg
File: out/impact.html Link: ./img/backgrounds/home-green.svg
File: out/impact.html Link: ./img/backgrounds/cta-community-purple.svg
File: out/impact.html Link: ./img/backgrounds/cta-calculator-green.svg
File: out/dev-tools.html Link: ./img/backgrounds/cta-home-purple.svg
File: out/dev-tools.html Link: ./img/backgrounds/cta-home-green.svg
File: out/contribute.html Link: ./img/backgrounds/cta-community-purple.svg
File: out/contribute.html Link: ./img/backgrounds/cta-community-green.svg
File: out/developer-funding.html Link: ./img/backgrounds/funding-purple.svg
File: out/developer-funding.html Link: ./img/backgrounds/funding-orange.svg
File: out/code-samples.html Link: ./img/backgrounds/xrpl-overview-orange.svg
File: out/index.html Link: ./img/backgrounds/home-purple.svg
File: out/index.html Link: ./img/backgrounds/home-green.svg
File: out/index.html Link: ./img/backgrounds/cta-home-purple.svg
File: out/index.html Link: ./img/backgrounds/cta-home-green.svg
File: out/index.html Link: ./img/backgrounds/cta-home-magenta.svg
File: out/ambassadors.html Link: ./img/backgrounds/ambassador-purple.svg
File: out/docs.html Link: ./img/backgrounds/cta-home-purple.svg
File: out/docs.html Link: ./img/backgrounds/cta-home-green.svg
File: out/events.html Link: ./img/backgrounds/events-orange.svg
File: out/ja/xrp-ledger-overview.html Link: ./img/backgrounds/xrpl-overview-purple.svg
File: out/ja/xrp-ledger-overview.html Link: ./img/backgrounds/xrpl-overview-orange.svg
File: out/ja/xrp-ledger-overview.html Link: ./img/backgrounds/cta-xrpl-overview-green.svg
File: out/ja/xrp-ledger-overview.html Link: ./img/backgrounds/cta-xrpl-overview-orange.svg
File: out/ja/xrp-overview.html Link: ./img/backgrounds/xrp-overview-blue.svg
File: out/ja/xrp-overview.html Link: ./img/backgrounds/cta-xrp-overview-magenta.svg
File: out/ja/xrp-overview.html Link: ./img/backgrounds/cta-xrp-overview-green-2.svg
File: out/ja/history.html Link: ./img/backgrounds/history-orange.svg
File: out/ja/history.html Link: ./img/backgrounds/history-purple.svg
File: out/ja/impact.html Link: ./img/backgrounds/community-purple.svg
File: out/ja/impact.html Link: ./img/backgrounds/home-green.svg
File: out/ja/impact.html Link: ./img/backgrounds/cta-community-purple.svg
File: out/ja/impact.html Link: ./img/backgrounds/cta-calculator-green.svg
File: out/ja/dev-tools.html Link: ./img/backgrounds/cta-home-purple.svg
File: out/ja/dev-tools.html Link: ./img/backgrounds/cta-home-green.svg
File: out/ja/contribute.html Link: ./img/backgrounds/cta-community-purple.svg
File: out/ja/contribute.html Link: ./img/backgrounds/cta-community-green.svg
File: out/ja/developer-funding.html Link: ./img/backgrounds/funding-purple.svg
File: out/ja/developer-funding.html Link: ./img/backgrounds/funding-orange.svg
File: out/ja/code-samples.html Link: ./img/backgrounds/xrpl-overview-orange.svg
File: out/ja/index.html Link: ./img/backgrounds/home-purple.svg
File: out/ja/index.html Link: ./img/backgrounds/home-green.svg
File: out/ja/index.html Link: ./img/backgrounds/cta-home-purple.svg
File: out/ja/index.html Link: ./img/backgrounds/cta-home-green.svg
File: out/ja/index.html Link: ./img/backgrounds/cta-home-magenta.svg
File: out/ja/ambassadors.html Link: ./img/backgrounds/ambassador-purple.svg
File: out/ja/docs.html Link: ./img/backgrounds/cta-home-purple.svg
File: out/ja/docs.html Link: ./img/backgrounds/cta-home-green.svg
File: out/ja/events.html Link: ./img/backgrounds/events-orange.svg

Preview: https://XRPLF.github.io/xrpl-dev-portal/pr-preview/redocly-websocket-api/

Style Report

@pdp2121 pdp2121 marked this pull request as ready for review December 6, 2023 00:55
Copy link

github-actions bot commented Dec 6, 2023

Link check report. 553607 links checked.
58 broken links found:
File: out/xrp-ledger-overview.html Link: ./img/backgrounds/xrpl-overview-purple.svg
File: out/xrp-ledger-overview.html Link: ./img/backgrounds/xrpl-overview-orange.svg
File: out/xrp-ledger-overview.html Link: ./img/backgrounds/cta-xrpl-overview-green.svg
File: out/xrp-ledger-overview.html Link: ./img/backgrounds/cta-xrpl-overview-orange.svg
File: out/xrp-overview.html Link: ./img/backgrounds/xrp-overview-blue.svg
File: out/xrp-overview.html Link: ./img/backgrounds/cta-xrp-overview-magenta.svg
File: out/xrp-overview.html Link: ./img/backgrounds/cta-xrp-overview-green-2.svg
File: out/history.html Link: ./img/backgrounds/history-orange.svg
File: out/history.html Link: ./img/backgrounds/history-purple.svg
File: out/impact.html Link: ./img/backgrounds/community-purple.svg
File: out/impact.html Link: ./img/backgrounds/home-green.svg
File: out/impact.html Link: ./img/backgrounds/cta-community-purple.svg
File: out/impact.html Link: ./img/backgrounds/cta-calculator-green.svg
File: out/dev-tools.html Link: ./img/backgrounds/cta-home-purple.svg
File: out/dev-tools.html Link: ./img/backgrounds/cta-home-green.svg
File: out/contribute.html Link: ./img/backgrounds/cta-community-purple.svg
File: out/contribute.html Link: ./img/backgrounds/cta-community-green.svg
File: out/developer-funding.html Link: ./img/backgrounds/funding-purple.svg
File: out/developer-funding.html Link: ./img/backgrounds/funding-orange.svg
File: out/code-samples.html Link: ./img/backgrounds/xrpl-overview-orange.svg
File: out/index.html Link: ./img/backgrounds/home-purple.svg
File: out/index.html Link: ./img/backgrounds/home-green.svg
File: out/index.html Link: ./img/backgrounds/cta-home-purple.svg
File: out/index.html Link: ./img/backgrounds/cta-home-green.svg
File: out/index.html Link: ./img/backgrounds/cta-home-magenta.svg
File: out/ambassadors.html Link: ./img/backgrounds/ambassador-purple.svg
File: out/docs.html Link: ./img/backgrounds/cta-home-purple.svg
File: out/docs.html Link: ./img/backgrounds/cta-home-green.svg
File: out/events.html Link: ./img/backgrounds/events-orange.svg
File: out/ja/xrp-ledger-overview.html Link: ./img/backgrounds/xrpl-overview-purple.svg
File: out/ja/xrp-ledger-overview.html Link: ./img/backgrounds/xrpl-overview-orange.svg
File: out/ja/xrp-ledger-overview.html Link: ./img/backgrounds/cta-xrpl-overview-green.svg
File: out/ja/xrp-ledger-overview.html Link: ./img/backgrounds/cta-xrpl-overview-orange.svg
File: out/ja/xrp-overview.html Link: ./img/backgrounds/xrp-overview-blue.svg
File: out/ja/xrp-overview.html Link: ./img/backgrounds/cta-xrp-overview-magenta.svg
File: out/ja/xrp-overview.html Link: ./img/backgrounds/cta-xrp-overview-green-2.svg
File: out/ja/history.html Link: ./img/backgrounds/history-orange.svg
File: out/ja/history.html Link: ./img/backgrounds/history-purple.svg
File: out/ja/impact.html Link: ./img/backgrounds/community-purple.svg
File: out/ja/impact.html Link: ./img/backgrounds/home-green.svg
File: out/ja/impact.html Link: ./img/backgrounds/cta-community-purple.svg
File: out/ja/impact.html Link: ./img/backgrounds/cta-calculator-green.svg
File: out/ja/dev-tools.html Link: ./img/backgrounds/cta-home-purple.svg
File: out/ja/dev-tools.html Link: ./img/backgrounds/cta-home-green.svg
File: out/ja/contribute.html Link: ./img/backgrounds/cta-community-purple.svg
File: out/ja/contribute.html Link: ./img/backgrounds/cta-community-green.svg
File: out/ja/developer-funding.html Link: ./img/backgrounds/funding-purple.svg
File: out/ja/developer-funding.html Link: ./img/backgrounds/funding-orange.svg
File: out/ja/code-samples.html Link: ./img/backgrounds/xrpl-overview-orange.svg
File: out/ja/index.html Link: ./img/backgrounds/home-purple.svg
File: out/ja/index.html Link: ./img/backgrounds/home-green.svg
File: out/ja/index.html Link: ./img/backgrounds/cta-home-purple.svg
File: out/ja/index.html Link: ./img/backgrounds/cta-home-green.svg
File: out/ja/index.html Link: ./img/backgrounds/cta-home-magenta.svg
File: out/ja/ambassadors.html Link: ./img/backgrounds/ambassador-purple.svg
File: out/ja/docs.html Link: ./img/backgrounds/cta-home-purple.svg
File: out/ja/docs.html Link: ./img/backgrounds/cta-home-green.svg
File: out/ja/events.html Link: ./img/backgrounds/events-orange.svg

Preview: https://XRPLF.github.io/xrpl-dev-portal/pr-preview/redocly-websocket-api/

Style Report

Copy link

github-actions bot commented Dec 7, 2023

Link check report. 553607 links checked.
58 broken links found:
File: out/history.html Link: ./img/backgrounds/history-orange.svg
File: out/history.html Link: ./img/backgrounds/history-purple.svg
File: out/events.html Link: ./img/backgrounds/events-orange.svg
File: out/xrp-ledger-overview.html Link: ./img/backgrounds/xrpl-overview-purple.svg
File: out/xrp-ledger-overview.html Link: ./img/backgrounds/xrpl-overview-orange.svg
File: out/xrp-ledger-overview.html Link: ./img/backgrounds/cta-xrpl-overview-green.svg
File: out/xrp-ledger-overview.html Link: ./img/backgrounds/cta-xrpl-overview-orange.svg
File: out/index.html Link: ./img/backgrounds/home-purple.svg
File: out/index.html Link: ./img/backgrounds/home-green.svg
File: out/index.html Link: ./img/backgrounds/cta-home-purple.svg
File: out/index.html Link: ./img/backgrounds/cta-home-green.svg
File: out/index.html Link: ./img/backgrounds/cta-home-magenta.svg
File: out/ambassadors.html Link: ./img/backgrounds/ambassador-purple.svg
File: out/xrp-overview.html Link: ./img/backgrounds/xrp-overview-blue.svg
File: out/xrp-overview.html Link: ./img/backgrounds/cta-xrp-overview-magenta.svg
File: out/xrp-overview.html Link: ./img/backgrounds/cta-xrp-overview-green-2.svg
File: out/docs.html Link: ./img/backgrounds/cta-home-purple.svg
File: out/docs.html Link: ./img/backgrounds/cta-home-green.svg
File: out/dev-tools.html Link: ./img/backgrounds/cta-home-purple.svg
File: out/dev-tools.html Link: ./img/backgrounds/cta-home-green.svg
File: out/contribute.html Link: ./img/backgrounds/cta-community-purple.svg
File: out/contribute.html Link: ./img/backgrounds/cta-community-green.svg
File: out/developer-funding.html Link: ./img/backgrounds/funding-purple.svg
File: out/developer-funding.html Link: ./img/backgrounds/funding-orange.svg
File: out/code-samples.html Link: ./img/backgrounds/xrpl-overview-orange.svg
File: out/impact.html Link: ./img/backgrounds/community-purple.svg
File: out/impact.html Link: ./img/backgrounds/home-green.svg
File: out/impact.html Link: ./img/backgrounds/cta-community-purple.svg
File: out/impact.html Link: ./img/backgrounds/cta-calculator-green.svg
File: out/ja/history.html Link: ./img/backgrounds/history-orange.svg
File: out/ja/history.html Link: ./img/backgrounds/history-purple.svg
File: out/ja/events.html Link: ./img/backgrounds/events-orange.svg
File: out/ja/xrp-ledger-overview.html Link: ./img/backgrounds/xrpl-overview-purple.svg
File: out/ja/xrp-ledger-overview.html Link: ./img/backgrounds/xrpl-overview-orange.svg
File: out/ja/xrp-ledger-overview.html Link: ./img/backgrounds/cta-xrpl-overview-green.svg
File: out/ja/xrp-ledger-overview.html Link: ./img/backgrounds/cta-xrpl-overview-orange.svg
File: out/ja/index.html Link: ./img/backgrounds/home-purple.svg
File: out/ja/index.html Link: ./img/backgrounds/home-green.svg
File: out/ja/index.html Link: ./img/backgrounds/cta-home-purple.svg
File: out/ja/index.html Link: ./img/backgrounds/cta-home-green.svg
File: out/ja/index.html Link: ./img/backgrounds/cta-home-magenta.svg
File: out/ja/ambassadors.html Link: ./img/backgrounds/ambassador-purple.svg
File: out/ja/xrp-overview.html Link: ./img/backgrounds/xrp-overview-blue.svg
File: out/ja/xrp-overview.html Link: ./img/backgrounds/cta-xrp-overview-magenta.svg
File: out/ja/xrp-overview.html Link: ./img/backgrounds/cta-xrp-overview-green-2.svg
File: out/ja/docs.html Link: ./img/backgrounds/cta-home-purple.svg
File: out/ja/docs.html Link: ./img/backgrounds/cta-home-green.svg
File: out/ja/dev-tools.html Link: ./img/backgrounds/cta-home-purple.svg
File: out/ja/dev-tools.html Link: ./img/backgrounds/cta-home-green.svg
File: out/ja/contribute.html Link: ./img/backgrounds/cta-community-purple.svg
File: out/ja/contribute.html Link: ./img/backgrounds/cta-community-green.svg
File: out/ja/developer-funding.html Link: ./img/backgrounds/funding-purple.svg
File: out/ja/developer-funding.html Link: ./img/backgrounds/funding-orange.svg
File: out/ja/code-samples.html Link: ./img/backgrounds/xrpl-overview-orange.svg
File: out/ja/impact.html Link: ./img/backgrounds/community-purple.svg
File: out/ja/impact.html Link: ./img/backgrounds/home-green.svg
File: out/ja/impact.html Link: ./img/backgrounds/cta-community-purple.svg
File: out/ja/impact.html Link: ./img/backgrounds/cta-calculator-green.svg

Preview: https://XRPLF.github.io/xrpl-dev-portal/pr-preview/redocly-websocket-api/

Style Report

"longname": "xrplcluster.com (Mainnet Full History Cluster)"
},
{
"id": "connection-s2",
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this make sense anymore to split s1/s2 out in the list?

Copy link

github-actions bot commented Dec 8, 2023

Link check report. 553607 links checked.
58 broken links found:
File: out/xrp-ledger-overview.html Link: ./img/backgrounds/xrpl-overview-purple.svg
File: out/xrp-ledger-overview.html Link: ./img/backgrounds/xrpl-overview-orange.svg
File: out/xrp-ledger-overview.html Link: ./img/backgrounds/cta-xrpl-overview-green.svg
File: out/xrp-ledger-overview.html Link: ./img/backgrounds/cta-xrpl-overview-orange.svg
File: out/xrp-overview.html Link: ./img/backgrounds/xrp-overview-blue.svg
File: out/xrp-overview.html Link: ./img/backgrounds/cta-xrp-overview-magenta.svg
File: out/xrp-overview.html Link: ./img/backgrounds/cta-xrp-overview-green-2.svg
File: out/history.html Link: ./img/backgrounds/history-orange.svg
File: out/history.html Link: ./img/backgrounds/history-purple.svg
File: out/impact.html Link: ./img/backgrounds/community-purple.svg
File: out/impact.html Link: ./img/backgrounds/home-green.svg
File: out/impact.html Link: ./img/backgrounds/cta-community-purple.svg
File: out/impact.html Link: ./img/backgrounds/cta-calculator-green.svg
File: out/dev-tools.html Link: ./img/backgrounds/cta-home-purple.svg
File: out/dev-tools.html Link: ./img/backgrounds/cta-home-green.svg
File: out/contribute.html Link: ./img/backgrounds/cta-community-purple.svg
File: out/contribute.html Link: ./img/backgrounds/cta-community-green.svg
File: out/developer-funding.html Link: ./img/backgrounds/funding-purple.svg
File: out/developer-funding.html Link: ./img/backgrounds/funding-orange.svg
File: out/code-samples.html Link: ./img/backgrounds/xrpl-overview-orange.svg
File: out/index.html Link: ./img/backgrounds/home-purple.svg
File: out/index.html Link: ./img/backgrounds/home-green.svg
File: out/index.html Link: ./img/backgrounds/cta-home-purple.svg
File: out/index.html Link: ./img/backgrounds/cta-home-green.svg
File: out/index.html Link: ./img/backgrounds/cta-home-magenta.svg
File: out/ambassadors.html Link: ./img/backgrounds/ambassador-purple.svg
File: out/docs.html Link: ./img/backgrounds/cta-home-purple.svg
File: out/docs.html Link: ./img/backgrounds/cta-home-green.svg
File: out/events.html Link: ./img/backgrounds/events-orange.svg
File: out/ja/xrp-ledger-overview.html Link: ./img/backgrounds/xrpl-overview-purple.svg
File: out/ja/xrp-ledger-overview.html Link: ./img/backgrounds/xrpl-overview-orange.svg
File: out/ja/xrp-ledger-overview.html Link: ./img/backgrounds/cta-xrpl-overview-green.svg
File: out/ja/xrp-ledger-overview.html Link: ./img/backgrounds/cta-xrpl-overview-orange.svg
File: out/ja/xrp-overview.html Link: ./img/backgrounds/xrp-overview-blue.svg
File: out/ja/xrp-overview.html Link: ./img/backgrounds/cta-xrp-overview-magenta.svg
File: out/ja/xrp-overview.html Link: ./img/backgrounds/cta-xrp-overview-green-2.svg
File: out/ja/history.html Link: ./img/backgrounds/history-orange.svg
File: out/ja/history.html Link: ./img/backgrounds/history-purple.svg
File: out/ja/impact.html Link: ./img/backgrounds/community-purple.svg
File: out/ja/impact.html Link: ./img/backgrounds/home-green.svg
File: out/ja/impact.html Link: ./img/backgrounds/cta-community-purple.svg
File: out/ja/impact.html Link: ./img/backgrounds/cta-calculator-green.svg
File: out/ja/dev-tools.html Link: ./img/backgrounds/cta-home-purple.svg
File: out/ja/dev-tools.html Link: ./img/backgrounds/cta-home-green.svg
File: out/ja/contribute.html Link: ./img/backgrounds/cta-community-purple.svg
File: out/ja/contribute.html Link: ./img/backgrounds/cta-community-green.svg
File: out/ja/developer-funding.html Link: ./img/backgrounds/funding-purple.svg
File: out/ja/developer-funding.html Link: ./img/backgrounds/funding-orange.svg
File: out/ja/code-samples.html Link: ./img/backgrounds/xrpl-overview-orange.svg
File: out/ja/index.html Link: ./img/backgrounds/home-purple.svg
File: out/ja/index.html Link: ./img/backgrounds/home-green.svg
File: out/ja/index.html Link: ./img/backgrounds/cta-home-purple.svg
File: out/ja/index.html Link: ./img/backgrounds/cta-home-green.svg
File: out/ja/index.html Link: ./img/backgrounds/cta-home-magenta.svg
File: out/ja/ambassadors.html Link: ./img/backgrounds/ambassador-purple.svg
File: out/ja/docs.html Link: ./img/backgrounds/cta-home-purple.svg
File: out/ja/docs.html Link: ./img/backgrounds/cta-home-green.svg
File: out/ja/events.html Link: ./img/backgrounds/events-orange.svg

Preview: https://XRPLF.github.io/xrpl-dev-portal/pr-preview/redocly-websocket-api/

Style Report

@ckniffen ckniffen marked this pull request as draft December 8, 2023 00:02
Copy link

github-actions bot commented Dec 8, 2023

Link check report. 553607 links checked.
58 broken links found:
File: out/history.html Link: ./img/backgrounds/history-orange.svg
File: out/history.html Link: ./img/backgrounds/history-purple.svg
File: out/events.html Link: ./img/backgrounds/events-orange.svg
File: out/xrp-ledger-overview.html Link: ./img/backgrounds/xrpl-overview-purple.svg
File: out/xrp-ledger-overview.html Link: ./img/backgrounds/xrpl-overview-orange.svg
File: out/xrp-ledger-overview.html Link: ./img/backgrounds/cta-xrpl-overview-green.svg
File: out/xrp-ledger-overview.html Link: ./img/backgrounds/cta-xrpl-overview-orange.svg
File: out/index.html Link: ./img/backgrounds/home-purple.svg
File: out/index.html Link: ./img/backgrounds/home-green.svg
File: out/index.html Link: ./img/backgrounds/cta-home-purple.svg
File: out/index.html Link: ./img/backgrounds/cta-home-green.svg
File: out/index.html Link: ./img/backgrounds/cta-home-magenta.svg
File: out/ambassadors.html Link: ./img/backgrounds/ambassador-purple.svg
File: out/xrp-overview.html Link: ./img/backgrounds/xrp-overview-blue.svg
File: out/xrp-overview.html Link: ./img/backgrounds/cta-xrp-overview-magenta.svg
File: out/xrp-overview.html Link: ./img/backgrounds/cta-xrp-overview-green-2.svg
File: out/docs.html Link: ./img/backgrounds/cta-home-purple.svg
File: out/docs.html Link: ./img/backgrounds/cta-home-green.svg
File: out/dev-tools.html Link: ./img/backgrounds/cta-home-purple.svg
File: out/dev-tools.html Link: ./img/backgrounds/cta-home-green.svg
File: out/contribute.html Link: ./img/backgrounds/cta-community-purple.svg
File: out/contribute.html Link: ./img/backgrounds/cta-community-green.svg
File: out/developer-funding.html Link: ./img/backgrounds/funding-purple.svg
File: out/developer-funding.html Link: ./img/backgrounds/funding-orange.svg
File: out/code-samples.html Link: ./img/backgrounds/xrpl-overview-orange.svg
File: out/impact.html Link: ./img/backgrounds/community-purple.svg
File: out/impact.html Link: ./img/backgrounds/home-green.svg
File: out/impact.html Link: ./img/backgrounds/cta-community-purple.svg
File: out/impact.html Link: ./img/backgrounds/cta-calculator-green.svg
File: out/ja/history.html Link: ./img/backgrounds/history-orange.svg
File: out/ja/history.html Link: ./img/backgrounds/history-purple.svg
File: out/ja/events.html Link: ./img/backgrounds/events-orange.svg
File: out/ja/xrp-ledger-overview.html Link: ./img/backgrounds/xrpl-overview-purple.svg
File: out/ja/xrp-ledger-overview.html Link: ./img/backgrounds/xrpl-overview-orange.svg
File: out/ja/xrp-ledger-overview.html Link: ./img/backgrounds/cta-xrpl-overview-green.svg
File: out/ja/xrp-ledger-overview.html Link: ./img/backgrounds/cta-xrpl-overview-orange.svg
File: out/ja/index.html Link: ./img/backgrounds/home-purple.svg
File: out/ja/index.html Link: ./img/backgrounds/home-green.svg
File: out/ja/index.html Link: ./img/backgrounds/cta-home-purple.svg
File: out/ja/index.html Link: ./img/backgrounds/cta-home-green.svg
File: out/ja/index.html Link: ./img/backgrounds/cta-home-magenta.svg
File: out/ja/ambassadors.html Link: ./img/backgrounds/ambassador-purple.svg
File: out/ja/xrp-overview.html Link: ./img/backgrounds/xrp-overview-blue.svg
File: out/ja/xrp-overview.html Link: ./img/backgrounds/cta-xrp-overview-magenta.svg
File: out/ja/xrp-overview.html Link: ./img/backgrounds/cta-xrp-overview-green-2.svg
File: out/ja/docs.html Link: ./img/backgrounds/cta-home-purple.svg
File: out/ja/docs.html Link: ./img/backgrounds/cta-home-green.svg
File: out/ja/dev-tools.html Link: ./img/backgrounds/cta-home-purple.svg
File: out/ja/dev-tools.html Link: ./img/backgrounds/cta-home-green.svg
File: out/ja/contribute.html Link: ./img/backgrounds/cta-community-purple.svg
File: out/ja/contribute.html Link: ./img/backgrounds/cta-community-green.svg
File: out/ja/developer-funding.html Link: ./img/backgrounds/funding-purple.svg
File: out/ja/developer-funding.html Link: ./img/backgrounds/funding-orange.svg
File: out/ja/code-samples.html Link: ./img/backgrounds/xrpl-overview-orange.svg
File: out/ja/impact.html Link: ./img/backgrounds/community-purple.svg
File: out/ja/impact.html Link: ./img/backgrounds/home-green.svg
File: out/ja/impact.html Link: ./img/backgrounds/cta-community-purple.svg
File: out/ja/impact.html Link: ./img/backgrounds/cta-calculator-green.svg

Preview: https://XRPLF.github.io/xrpl-dev-portal/pr-preview/redocly-websocket-api/

Style Report

Copy link
Contributor

@ckniffen ckniffen left a comment

Choose a reason for hiding this comment

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

More translations are needed.

setKeepLast(newValue);
};

const openConnectionModal = () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

I would really like to clean this up.

const { translate } = useTranslate();
const [isConnectionModalVisible, setIsConnectionModalVisible] =
useState(false);
const [selectedConnection, setSelectedConnection] = useState((params.server) ? connections.find((connection) => { return connection?.ws_url === params.server }) : connections[0]); const [connected, setConnected] = useState(false);
Copy link
Contributor

Choose a reason for hiding this comment

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

I want to clean this up as well.

@ckniffen ckniffen marked this pull request as ready for review December 20, 2023 04:33
@ckniffen
Copy link
Contributor

@mDuo13 when this is merged I recommend squash and merge. There is a lot of unimportant commits in here. If you want I can write up a new commit message or squash ahead of time.

Copy link
Collaborator

@mDuo13 mDuo13 left a comment

Choose a reason for hiding this comment

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

  • There's a long error in the CLI and browser console about a UL, I think the right sidebar, not having unique IDs.
  • The curl syntax dialog doesn't update when you modify the request or select a different example request. It seems to be stuck on the account_channels example forever.

Even though the FontAwesome icons are broken, I believe that is fixed in #2312 so that's fine here.

@khancode
Copy link
Contributor

khancode commented Jan 5, 2024

  • There's a long error in the CLI and browser console about a UL, I think the right sidebar, not having unique IDs.
  • The curl syntax dialog doesn't update when you modify the request or select a different example request. It seems to be stuck on the account_channels example forever.

Even though the FontAwesome icons are broken, I believe that is fixed in #2312 so that's fine here.

@mDuo13 @ckniffen I resolved these bullet points and most of the console error messages in this PR - #2322

@XRPLF XRPLF deleted a comment from github-actions bot Jan 5, 2024
@XRPLF XRPLF deleted a comment from github-actions bot Jan 5, 2024
@XRPLF XRPLF deleted a comment from github-actions bot Jan 5, 2024
@XRPLF XRPLF deleted a comment from github-actions bot Jan 5, 2024
@XRPLF XRPLF deleted a comment from github-actions bot Jan 5, 2024
@XRPLF XRPLF deleted a comment from github-actions bot Jan 5, 2024
@mDuo13
Copy link
Collaborator

mDuo13 commented Jan 5, 2024

The curl dialog still seems to be broken for me, and when I open it for the first time, I see this error in the browser console:

Warning: Use the `defaultValue` or `value` props instead of setting children on <textarea>.
textarea
div
form
div
div
div
div
Modal@http://localhost:4000/runtime/chunks/websocket-api-tool.page-XKQMLHB7.js:985:13
CurlModal@http://localhost:4000/runtime/chunks/websocket-api-tool.page-XKQMLHB7.js:1167:17
CurlButton@http://localhost:4000/runtime/chunks/websocket-api-tool.page-XKQMLHB7.js:1206:18

(I'm trying this on a test branch that's using realm 0.71.1, after resolving the merge conflicts.)

Weirdly, the permalink button seems to have no problems.

That said, I think it's probably best to merge this as-is to get us closer to a working preview, and fix those bugs after the fact.

@mDuo13
Copy link
Collaborator

mDuo13 commented Jan 5, 2024

Merged as 330e254

@mDuo13 mDuo13 closed this Jan 5, 2024
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.

5 participants