[PR #99] [CLOSED] feat: migrate tooling to pnpm/oxlint, add Copilot quota, and enhance usage analytics #104

Closed
opened 2026-02-27 16:42:34 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/router-for-me/Cli-Proxy-API-Management-Center/pull/99
Author: @DemonMartin
Created: 2/9/2026
Status: Closed

Base: mainHead: main


📝 Commits (8)

  • bf385e3 migrate to pnpm and oxlint and fix type issues
  • a70b180 update README and CI configuration to use pnpm; improve formatting and links
  • 3fb73db feat(quota): add GitHub Copilot quota management and UI components
  • 953e5e0 feat(usage): enhance API usage statistics with input/output token tracking and add new UI components for token distribution and request history
  • 0cf9aae formatting
  • 83ce580 chore(release): update Node.js version to 20 and streamline pnpm setup in CI workflow
  • d48d1be chore(dependencies): add @codemirror/search and @codemirror/view to package.json and pnpm-lock.yaml
  • 4d8f744 move @types/node to devDependency

📊 Changes

194 files changed (+34229 additions, -30430 deletions)

View changed files

.eslintrc.cjs (+0 -20)
📝 .github/workflows/release.yml (+53 -50)
.oxfmtrc.jsonc (+11 -0)
.prettierrc (+0 -9)
📝 README.md (+18 -17)
📝 README_CN.md (+3 -3)
eslint.config.js (+0 -30)
📝 index.html (+14 -10)
oxlintrc.json (+12 -0)
📝 package.json (+45 -45)
pnpm-lock.yaml (+3017 -0)
📝 src/App.css (+21 -21)
📝 src/App.tsx (+31 -31)
📝 src/assets/logoInline.ts (+2 -1)
📝 src/components/common/ConfirmationModal.tsx (+48 -52)
📝 src/components/common/NotificationContainer.tsx (+69 -79)
📝 src/components/common/PageTransition.scss (+41 -41)
📝 src/components/common/PageTransition.tsx (+330 -344)
📝 src/components/common/PageTransitionLayer.ts (+3 -5)
📝 src/components/common/SecondaryScreenShell.module.scss (+51 -52)

...and 80 more files

📄 Description

Summary

This PR updates the toolchain, adds GitHub Copilot quota support, and improves the usage analytics UI. All changes pass pnpm run type-check and pnpm run lint.

Changes

Tooling and CI

  • Migrated from npm to pnpm and updated the release workflow.
  • Replaced ESLint and Prettier with Oxlint and Oxfmt and made the formatting rules stricter.
  • Fixed CI order so pnpm is available before Node cache setup.
  • Added missing direct dependencies for CodeMirror.
  • Fixed existing Linting Warnings and Type issues

GitHub Copilot Quotas

  • Added Copilot quota types, parsers, and helpers.
  • Integrated Copilot quotas into existing quota components.
  • Shows per category usage with progress bars and reset timers.

Usage Analytics

  • Token graphs now split input, output, reasoning, and cached tokens.
  • Tooltips show per type breakdown plus totals.
  • Line selector supports both token type and per model views.
  • Added request history table and token distribution chart.
  • Updated stat cards and tables to include full token breakdowns.

i18n and Docs

  • Updated en, ru, and zh CN locales with new keys.
  • Expanded README with pnpm references.

Formatting

  • Ran Oxfmt across the repo which explains the larger diff.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/router-for-me/Cli-Proxy-API-Management-Center/pull/99 **Author:** [@DemonMartin](https://github.com/DemonMartin) **Created:** 2/9/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (8) - [`bf385e3`](https://github.com/router-for-me/Cli-Proxy-API-Management-Center/commit/bf385e3f21bf64cc398aa789a506c82fae8322ea) migrate to pnpm and oxlint and fix type issues - [`a70b180`](https://github.com/router-for-me/Cli-Proxy-API-Management-Center/commit/a70b1809329dd357e0264fcb85eeae13b34da7dc) update README and CI configuration to use pnpm; improve formatting and links - [`3fb73db`](https://github.com/router-for-me/Cli-Proxy-API-Management-Center/commit/3fb73db25665ce52337435a8d478c5ce7737015a) feat(quota): add GitHub Copilot quota management and UI components - [`953e5e0`](https://github.com/router-for-me/Cli-Proxy-API-Management-Center/commit/953e5e0dc56b1924bd6de4104596ae56621cb56c) feat(usage): enhance API usage statistics with input/output token tracking and add new UI components for token distribution and request history - [`0cf9aae`](https://github.com/router-for-me/Cli-Proxy-API-Management-Center/commit/0cf9aae70147942c573028eb6dec3f14becc6875) formatting - [`83ce580`](https://github.com/router-for-me/Cli-Proxy-API-Management-Center/commit/83ce580db384737e6620d7f59b26d753368c8587) chore(release): update Node.js version to 20 and streamline pnpm setup in CI workflow - [`d48d1be`](https://github.com/router-for-me/Cli-Proxy-API-Management-Center/commit/d48d1bed8f4a0e092a238ae14adfb5b7c3df1446) chore(dependencies): add @codemirror/search and @codemirror/view to package.json and pnpm-lock.yaml - [`4d8f744`](https://github.com/router-for-me/Cli-Proxy-API-Management-Center/commit/4d8f744bf6dce31a47f6ad72e7cc1091dd5ee95e) move @types/node to devDependency ### 📊 Changes **194 files changed** (+34229 additions, -30430 deletions) <details> <summary>View changed files</summary> ➖ `.eslintrc.cjs` (+0 -20) 📝 `.github/workflows/release.yml` (+53 -50) ➕ `.oxfmtrc.jsonc` (+11 -0) ➖ `.prettierrc` (+0 -9) 📝 `README.md` (+18 -17) 📝 `README_CN.md` (+3 -3) ➖ `eslint.config.js` (+0 -30) 📝 `index.html` (+14 -10) ➕ `oxlintrc.json` (+12 -0) 📝 `package.json` (+45 -45) ➕ `pnpm-lock.yaml` (+3017 -0) 📝 `src/App.css` (+21 -21) 📝 `src/App.tsx` (+31 -31) 📝 `src/assets/logoInline.ts` (+2 -1) 📝 `src/components/common/ConfirmationModal.tsx` (+48 -52) 📝 `src/components/common/NotificationContainer.tsx` (+69 -79) 📝 `src/components/common/PageTransition.scss` (+41 -41) 📝 `src/components/common/PageTransition.tsx` (+330 -344) 📝 `src/components/common/PageTransitionLayer.ts` (+3 -5) 📝 `src/components/common/SecondaryScreenShell.module.scss` (+51 -52) _...and 80 more files_ </details> ### 📄 Description ## Summary This PR updates the toolchain, adds GitHub Copilot quota support, and improves the usage analytics UI. All changes pass `pnpm run type-check` and `pnpm run lint`. ## Changes ### Tooling and CI - Migrated from npm to pnpm and updated the release workflow. - Replaced ESLint and Prettier with Oxlint and Oxfmt and made the formatting rules stricter. - Fixed CI order so pnpm is available before Node cache setup. - Added missing direct dependencies for CodeMirror. - Fixed existing Linting Warnings and Type issues ### GitHub Copilot Quotas - Added Copilot quota types, parsers, and helpers. - Integrated Copilot quotas into existing quota components. - Shows per category usage with progress bars and reset timers. ### Usage Analytics - Token graphs now split input, output, reasoning, and cached tokens. - Tooltips show per type breakdown plus totals. - Line selector supports both token type and per model views. - Added request history table and token distribution chart. - Updated stat cards and tables to include full token breakdowns. ### i18n and Docs - Updated en, ru, and zh CN locales with new keys. - Expanded README with pnpm references. ### Formatting - Ran Oxfmt across the repo which explains the larger diff. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 16:42:34 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Cli-Proxy-API-Management-Center#104
No description provided.