Skip to content

README と UI を CTF Solver Workbench 中心に再構成#18

Merged
T3pp31 merged 3 commits into
mainfrom
codex/update-readme-and-restructure-main-features
May 14, 2026
Merged

README と UI を CTF Solver Workbench 中心に再構成#18
T3pp31 merged 3 commits into
mainfrom
codex/update-readme-and-restructure-main-features

Conversation

@T3pp31

@T3pp31 T3pp31 commented May 13, 2026

Copy link
Copy Markdown
Owner

Motivation

  • プロジェクトの利用意図をネットワークツールキットから「Local-first な CTF 解法支援ワークベンチ」へ明確に移行するため。
  • CTF 解法ワークフロー(ワークスペース管理、文字列変換、配布ファイル解析、flag 候補検出、writeup 出力)を中心機能として前面に出すため。
  • LAN/ARP/ポートスキャンなどのネットワーク実験的機能は補助的な Advanced / Network Lab セクションへ移し、主フローの可視性を高めるため。

Description

  • README.md の冒頭説明を「CTF Solver Workbench」「Local-first CTF Assistant」系の表現へ差し替え、機能一覧で CTF Workspace / String Transform / Artifact Analyzer / Flag Candidate Detection / Writeup Export を主機能として先に並べ、ネットワーク機能を Advanced / Network Lab / Legacy・Experimental に分離しました(README.md を編集)。
  • サイドバーをグループ化して先頭を CTF 関連にし、LAN Scan / ARP Spoof 等を Advanced / Network Lab グループへ移動するように src/components/Layout/Sidebar.tsx を書き換え、補助ラベル表示とグループ見出し用の CSS を src/components/Layout/Sidebar.module.css に追加しました。
  • ホーム画面をネットワーク情報表示から CTF ワークベンチのダッシュボードに置き換え、クイックスタート、最近のワークスペース、Flag 候補一覧を表示するように src/pages/HomePage.tsx を差し替えました。
  • 上記の差分はスタイル調整を含めてビルドに影響しない形で適用しています(関連ファイル: README.md, src/components/Layout/Sidebar.tsx, src/components/Layout/Sidebar.module.css, src/pages/HomePage.tsx)。

Testing

  • npm run build を実行してプロダクションビルドを生成し成功しました(vite build によるビルド完了)。
  • npm run lint を実行して ESLint のチェックを通過しました。

Codex Task

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5a44320a7d

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread src/pages/HomePage.tsx Outdated
Comment on lines +29 to +30
actionLabel: "String Transform を開く",
to: "/ctf",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Avoid routing String Transform to a static reference page

When users choose the new “String Transform” action, this still routes to /ctf; checked src/App.tsx and that path renders CtfPage, whose UI is only a static CTF reference list with no input or transform controls. In the CTF-focused UI this makes the primary quick-start path land on a page that cannot perform the advertised workflow, so users trying to transform challenge strings are blocked or misled unless the route is changed to an actual transformer or the label is kept as a reference page.

Useful? React with 👍 / 👎.

T3pp31 commented May 14, 2026

Copy link
Copy Markdown
Owner Author

確認しましたが、この PR は現状マージしません。

理由:

  • main の最新状態にある CI 関連ファイルを削除する差分が入っています。ローカルで origin/main..origin/pr/18 を確認すると、.github/workflows/ci.ymltests/ciWorkflowConsistency.test.mjstests/readmeConsistency.test.mjs などが削除対象になっていました。まず main を取り込んで、CI と整合性テストを維持してください。
  • README / Sidebar / HomePage の再構成は Add CTF Workspace and Artifact Analyzer (binary analysis, transforms, detectors) #17 と大きく重複しています。どちらを採用するか決めないままマージすると、表示方針が上書きされます。
  • 単独で入れる場合、CTF Workspace や Writeup export を中心に案内する UI/README になりますが、実体のワークスペース機能は CTFワークスペースを追加 #22CTF ワークスペースの状態モデルと Writeup エクスポートを追加 #20 側にあります。導線だけ先に入ると、ユーザーに見える機能と実装済み機能がずれます。

対応案:

  1. main に rebase/merge して CI 削除差分を消す。
  2. CTFワークスペースを追加 #22 など実体側の PR とセットで入れるか、この PR は文言・導線だけに絞るかを決める。
  3. Add CTF Workspace and Artifact Analyzer (binary analysis, transforms, detectors) #17 を採用する場合は、この PR の差分を統合済み扱いにして close する判断も検討してください。

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1dd817b3f1

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread src/pages/HomePage.tsx
Comment on lines +98 to +100
export const HomePage: React.FC = () => {
return (
<div>
<h2 style={{ marginBottom: "20px", fontSize: "20px" }}>
Network Information
</h2>

{loading && <LoadingSpinner message="Fetching network info..." />}
{error && <ErrorMessage message={error} />}

{networkInfo && (
<div style={{ display: "grid", gridTemplateColumns: "1fr 1fr", gap: "16px" }}>
<div style={cardStyle}>
<div style={labelStyle}>IP Address</div>
<div style={valueStyle}>{networkInfo.ip_address}</div>
</div>
<div style={cardStyle}>
<div style={labelStyle}>Broadcast Address</div>
<div style={valueStyle}>{networkInfo.broadcast_address}</div>
</div>
<div style={cardStyle}>
<div style={labelStyle}>Interface</div>
<div style={valueStyle}>{networkInfo.interface_name}</div>
</div>
<div style={cardStyle}>
<div style={labelStyle}>Subnet Mask</div>
<div style={valueStyle}>{networkInfo.subnet_mask}</div>
</div>
{networkInfo.gateway && (
<div style={cardStyle}>
<div style={labelStyle}>Gateway</div>
<div style={valueStyle}>{networkInfo.gateway}</div>
<div style={pageStyle}>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Restore access to network information

When users need the Network Information feature, this replacement of the root page leaves it unreachable: the sidebar now sends / to the CTF workspace, and a repo-wide check of rg "useNetworkInfo" src shows the hook is no longer invoked by any page. Since the README still lists network interface information as an available Advanced / Network Lab feature and the Tauri command remains registered, this regression removes the only UI path that displayed IP, broadcast, interface, subnet, and gateway details unless a new route/nav entry is added or the old panel is preserved elsewhere.

Useful? React with 👍 / 👎.

@T3pp31 T3pp31 merged commit c82e297 into main May 14, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant