Skip to content

Feat(core, ui): add sidebar - #41

Merged
Transparent-fish merged 6 commits into
mainfrom
feat/add-sidebar
Aug 7, 2026
Merged

Feat(core, ui): add sidebar#41
Transparent-fish merged 6 commits into
mainfrom
feat/add-sidebar

Conversation

@Transparent-fish

@Transparent-fish Transparent-fish commented Aug 5, 2026

Copy link
Copy Markdown
Owner

关联 Issue

#42

变更概述

占位符

变更类型

  • fix Bug
  • Feature
  • UI / Style
  • Refactor
  • Documentation

涉及文件

  • 前端

    • src/types.ts — 新增 contests?/standings?
    • src/index.tsx — 模式分发(sidebar/contest)
    • src/SidebarApp.tsx(新增)— 比赛列表 + 提交记录
    • src/ContestApp.tsx(新增)— info/task/submit/rating 页签
    • src/components/ProblemView.tsx / SubmitPanel.tsx / SubmissionHistoryList.tsx(新增/抽取)
    • src/WebviewApp.tsx — 组件抽取后瘦身或删除
  • 后端

    • src/tools/webview.ts — mode/initContest 注入
    • src/tools/standings.ts(新增)— 排行榜爬取解析
    • src/extension.tshandleFetchStandings + 比赛列表持久化 handlers + openContestPanel
    • src/tools/command.ts — 新命令集合与 case
    • src/viewProvider.ts — 传 "sidebar"
    • src/tools/types.ts — 复用 contest 字段

状态

  • tools/webview.ts 注入 mode/initContest
  • 消息类型 contests/standings
  • tools/standings.ts 排行榜解析
  • extension.ts standings + 比赛列表持久化 + openContestPanel
  • command.ts 新命令路由
  • viewProvider.ts 传 sidebar
  • index.tsx 模式分发
  • SidebarApp.tsx 比赛列表 + 提交记录
  • ContestApp.tsx 四页签
  • 组件抽取(ProblemView/SubmitPanel/SubmissionHistoryList)

@Transparent-fish Transparent-fish added Future enhancement New feature or request and removed Future labels Aug 5, 2026
@Transparent-fish
Transparent-fish marked this pull request as draft August 5, 2026 12:23
Repository owner deleted a comment from github-actions Bot Aug 5, 2026
@Transparent-fish

Copy link
Copy Markdown
Owner Author

预计 PR 体积过大,等过几天拆分

@Transparent-fish
Transparent-fish marked this pull request as ready for review August 6, 2026 07:50
@github-actions

github-actions Bot commented Aug 6, 2026

Copy link
Copy Markdown

PR 审查报告

检查结果

检查项 状态
pnpm build
pnpm lint
pnpm test
函数 <= 130 行

未通过的检查

全部通过,无需修改。


自动生成 by PR Review workflow

Repository owner deleted a comment from github-actions Bot Aug 7, 2026
Repository owner deleted a comment from github-actions Bot Aug 7, 2026
Repository owner deleted a comment from github-actions Bot Aug 7, 2026
@Transparent-fish
Transparent-fish merged commit 6a2dc08 into main Aug 7, 2026
1 check passed
@Transparent-fish Transparent-fish changed the title Feat/add sidebar Feat(core, ui): add sidebar Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant