Skip to content

partner-chains-node の構築まで加筆#17

Merged
barista-spo merged 1 commit intomainfrom
feat/add-partner-chains
Jan 18, 2026
Merged

partner-chains-node の構築まで加筆#17
barista-spo merged 1 commit intomainfrom
feat/add-partner-chains

Conversation

@edaisuke
Copy link
Copy Markdown
Member

No description provided.

@edaisuke edaisuke requested a review from barista-spo January 18, 2026 10:04
@edaisuke edaisuke self-assigned this Jan 18, 2026
@edaisuke edaisuke added the documentation Improvements or additions to documentation label Jan 18, 2026
Copilot AI review requested due to automatic review settings January 18, 2026 10:04
@edaisuke edaisuke added the enhancement New feature or request label Jan 18, 2026
Copy link
Copy Markdown
Contributor

@barista-spo barista-spo left a comment

Choose a reason for hiding this comment

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

Approved this PR.

@barista-spo barista-spo merged commit 752875d into main Jan 18, 2026
5 checks passed
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 adds comprehensive Japanese documentation for setting up and building partner-chains-node and related Cardano infrastructure for the Midnight testnet. The changes include new documentation files covering Ubuntu server setup, Docker configuration, Cardano node installation, and validator registration, along with a new React component for generating pool certificate code.

Changes:

  • Added interactive React component (GeneratePoolCertCode) for generating pool registration commands with user-configurable parameters
  • Added 10 new documentation files covering complete setup from Ubuntu server configuration through Midnight node deployment
  • Updated CSS styling for improved tab component appearance and layout adjustments
  • Reorganized sidebar positions for logical documentation flow

Reviewed changes

Copilot reviewed 15 out of 16 changed files in this pull request and generated 11 comments.

Show a summary per file
File Description
docs/src/css/custom.scss Added trailing newline for consistency
docs/src/css/custom.css Added tab padding CSS variables for improved UI spacing
docs/src/components/TemplateCodeGenerator.module.css Modified grid layout configuration and removed display properties
docs/src/components/GeneratePoolCertCode.tsx New component for interactive pool certificate command generation
docs/docs/midnight/testnet-02/setup-ubuntu-server.md New guide for Ubuntu Server 22.04 initial security setup
docs/docs/midnight/testnet-02/setup-grafana.md Updated sidebar position for proper ordering
docs/docs/midnight/testnet-02/partner-chains-node.md New guide for Partner-Chains-Node construction
docs/docs/midnight/testnet-02/midnight-node.md New guide for Midnight Node construction
docs/docs/midnight/testnet-02/cardano-preview-topology.md New guide for topology and firewall configuration
docs/docs/midnight/testnet-02/cardano-preview-register-stake.md New guide for stake address registration
docs/docs/midnight/testnet-02/cardano-preview-register-pool.md New guide for stake pool registration
docs/docs/midnight/testnet-02/cardano-preview-node.md New comprehensive guide for Cardano node installation
docs/docs/midnight/testnet-02/cardano-preview-bp-keys.md New guide for BP key creation
docs/docs/midnight/testnet-02/cardano-preview-addresses.md New guide for address creation
docs/docs/midnight/testnet-02/blocklog.md Updated sidebar position for proper ordering

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

@@ -1,10 +1,8 @@
.wrapper {
Copy link

Copilot AI Jan 18, 2026

Choose a reason for hiding this comment

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

The display: grid property was removed from the .wrapper class, but the gap property remains. Without display: grid or display: flex, the gap property has no effect. This could be intentional if you're removing grid layout, but if you intended to keep the gap between child elements, you need to keep the display: grid or use an alternative layout method.

Suggested change
.wrapper {
.wrapper {
display: grid;

Copilot uses AI. Check for mistakes.
gap: 16px;
}

.header {
Copy link

Copilot AI Jan 18, 2026

Choose a reason for hiding this comment

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

The display: flex property was removed from the .header class, but align-items and justify-content properties remain. These flexbox properties only work when the element has display: flex or display: inline-flex. Without it, these properties will have no effect.

Suggested change
.header {
.header {
display: flex;

Copilot uses AI. Check for mistakes.
Comment on lines +94 to +95
if (v === undefined || v === null) {
}
Copy link

Copilot AI Jan 18, 2026

Choose a reason for hiding this comment

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

The if block at lines 94-95 checks for undefined or null values but doesn't assign anything to v. This results in an empty block that serves no purpose. Either add logic to handle undefined/null values, or remove this block entirely since line 96 already converts the value to a string.

Suggested change
if (v === undefined || v === null) {
}

Copilot uses AI. Check for mistakes.
Comment on lines +52 to +93
if (name == "PLEDGE") {
if (v === undefined || v === null || v === "") {
v = "";
} else{
const pledge = Number(all['PLEDGE'] || "");
v = String(pledge * 1000000);
}
}
if (name == "COST") {
if (v === undefined || v === null || v === "") {
v = "";
} else {
const cost = Number(all['COST'] || "");
v = String(cost * 1000000);
}
}
if (name == "MARGIN") {
if (v === undefined || v === null || v === "") {
v = "";
} else {
const margin = Number(all['MARGIN'] || "");
v = String(margin / 100);
}
}
if (name == "RELAY_IP") {
if (v === undefined || v === null || v === "") {
v = "0.0.0.0";
}
v = String(v);
}
if (name == "RELAY_PORT") {
if (v === undefined || v === null || v === "") {
v = "6000";
}
v = String(v);
}
if (name == "META_URL") {
if (v === undefined || v === null || v === "") {
v = "https://example.com/poolMetaData.json";
}
v = String(v);
}
Copy link

Copilot AI Jan 18, 2026

Choose a reason for hiding this comment

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

Using equality operator == instead of strict equality ===. In JavaScript, it's recommended to use === for comparisons to avoid type coercion issues. This applies to all variable name comparisons in this function.

Copilot uses AI. Check for mistakes.
### apt リポジトリをアップデート

```bash
sudo apt get update -y
Copy link

Copilot AI Jan 18, 2026

Choose a reason for hiding this comment

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

The command contains a typo: apt get should be apt-get (with a hyphen). This will cause the command to fail.

Suggested change
sudo apt get update -y
sudo apt-get update -y

Copilot uses AI. Check for mistakes.
</Tabs>

<Tabs groupId="node" queryString="node">
<TabItem value="airgap" value="エアギャップマシン">
Copy link

Copilot AI Jan 18, 2026

Choose a reason for hiding this comment

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

The value attribute has a duplicate definition: value="airgap" is specified twice in the same TabItem element. Remove the second occurrence and keep only one.

Suggested change
<TabItem value="airgap" value="エアギャップマシン">
<TabItem value="airgap" label="エアギャップマシン">

Copilot uses AI. Check for mistakes.
### Validator 登録ウィザード (1/3)

```bash
/midnight-node wizards register1
Copy link

Copilot AI Jan 18, 2026

Choose a reason for hiding this comment

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

The command path /midnight-node wizards is inconsistent with the earlier command on line 154 which uses /midnight-node wizard (singular). This should likely be /midnight-node wizard register1 for consistency.

Suggested change
/midnight-node wizards register1
/midnight-node wizard register1

Copilot uses AI. Check for mistakes.
--------------------------------------------------------------------------------------
9358d225224197089ac7cd05f6b4e771b053e6be969cde7a97693b71344ffb83 0 10000000000 lovelace + TxOutDatumNone
```

Copy link

Copilot AI Jan 18, 2026

Choose a reason for hiding this comment

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

Missing closing backtick in the markdown file. The final line 133 (after the code block) appears to be incomplete or missing a closing delimiter.

Copilot uses AI. Check for mistakes.
const [relayIp, setRelayIp] = useState("");
const [relayPort, setRelayPort] = useState("");
const [metaUrl, setMetaUrl] = useState("");
const [vars, setVars] = useState<Record<string, string>>({
Copy link

Copilot AI Jan 18, 2026

Choose a reason for hiding this comment

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

Unused variable setVars.

Suggested change
const [vars, setVars] = useState<Record<string, string>>({
const [vars] = useState<Record<string, string>>({

Copilot uses AI. Check for mistakes.
children = "",
}: Props) {
const seedTemplate = (typeof children === "string" && children.length > 0)
? children : ""
Copy link

Copilot AI Jan 18, 2026

Choose a reason for hiding this comment

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

Avoid automated semicolon insertion (91% of all statements in the enclosing function have an explicit semicolon).

Suggested change
? children : ""
? children : "";

Copilot uses AI. Check for mistakes.
@edaisuke edaisuke deleted the feat/add-partner-chains branch February 7, 2026 01:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants