Skip to content

Releases: juhe291/dsh-token-panel

v0.3.0

Choose a tag to compare

@juhe291 juhe291 released this 14 Aug 14:12

Added

  • Per-model pricing: session rows and daily/monthly stats bill each session at the price table of the model it actually used (v4-flash / v4-pro), so sessions that switched models stay accurate
  • auto price mode: flat legacy rates until 2026-08-17 00:00 Beijing time, then automatically switches to DeepSeek's official peak/off-peak schedule; the footer badge shows flat / peak / off-peak rate accordingly — no config change needed

Changed

  • Footer redesigned into three columns: status + price mode | current cost | date + time
  • Stats view simplified: dropped "Summary"/"Trend" headings, cumulative total label enlarged into one line
  • Curve Y axis reworked: unit label always visible, compact ticks (1B/500M), floating value pill at the latest point
  • Stats and live views aligned to identical heights; footer cost unified with stats figures

Fixed

  • Invisible budget bar (0.2.2 regression): replaced nonexistent theme tokens with the real suffixed variables
  • Stats view crash (0.2.2 regression): React Hooks order violation
  • Overestimated session cost: sessions mixing models were billed entirely at the current model's rate
  • Double-container whitespace and grey scrollbar strip in the stats view

新增

  • 按模型分别计价:会话行、按日/按月统计按各会话实际使用的模型(v4-flash / v4-pro 等)套用对应价格表,切换过模型的会话不再整段按单一模型计价
  • auto 价格模式:2026-08-17 零时(北京时间)前自动使用 flat 旧价,之后自动切换 DeepSeek 官方峰谷价(高峰 9-12 / 14-18),底部徽章同步显示「标准价 / 高峰价 / 空闲价」,无需手动改配置

变更

  • 底部栏改为三列布局:状态 + 价格模式 | 当前花费 | 年月日 + 时间
  • 统计视图排版精简:删除「汇总」「趋势」标题,累计消耗标签加大单行显示
  • 曲线 Y 轴重排:单位标签常驻、紧凑刻度(1B/500M)、当前值胶囊浮动在最新点旁,大数值不再重叠
  • 统计与实时视图高度精确对齐;底部当前花费与统计口径统一

修复

  • 预算进度条不可见(0.2.2 引入的缺陷):主题 token 名称错误,已替换为主题真实定义的带后缀变量
  • 统计视图崩溃(0.2.2 引入的缺陷):React Hooks 顺序违规导致切换统计视图时面板消失
  • 会话成本高估:会话混用模型时整段按当前模型计价的问题
  • 统计视图双层容器造成的多余空白与灰色滚动条条带

v0.2.2

Choose a tag to compare

@juhe291 juhe291 released this 14 Aug 12:00

Added

  • Editable budget & balance: click values in the stats view to edit inline (Enter saves / Esc cancels); balance decreases locally with estimated token consumption, falls back to the API balance when unset
  • Current cost in the footer: cumulative estimated cost shown bottom-right
  • Peak rate readout: peak consumption rate (t/s) above the live curve

Changed

  • UI layout rework: enlarged section captions (13px), big-number hierarchy + segmented controls, keeping the tech feel
  • Session list shows only the current session by default
  • Daily / monthly detail lists collapsed by default

Fixed

  • Removed the stats view's old flat layout and border lines

新增

  • 可编辑预算与余额:统计视图点击数值行内编辑(回车保存 / Esc 取消);余额按 token 消耗本地估算递减,未设置时回退 API 余额
  • 底部显示当前花费:面板底部右侧统一显示累计估算花费
  • 峰值读数:实时趋势区显示窗口内峰值消耗速率(t/s)

变更

  • UI 排版重构:分区小标题加大(13px)、大数字层级 + 分段控件,保留科技感
  • 会话列表默认只显示当前会话,展开才显示全部
  • 按日 / 按月明细默认收起(0 行),点击展开全部

修复

  • 移除统计视图旧的平铺布局与边框线(改留白分区)

v0.2.1

Choose a tag to compare

@juhe291 juhe291 released this 14 Aug 09:33

Fixed

  • Session-row and account-balance hover hints now auto-fade (fade in ~1.5s then fade out on their own, never lingering while hovered); native browser tooltips removed

修复

  • 会话行、账户余额悬停气泡全部改为自动消失样式(淡入约 1.5 秒后自动淡出,指针停留也不会一直显示),并移除浏览器原生 tooltip

v0.2.0

Choose a tag to compare

@juhe291 juhe291 released this 14 Aug 08:34

Added

  • Per-session cost (¥): every live row shows a green estimated cost
  • Panel drag system: drag the pill or header, position remembered across reloads; may drag past screen edges with a grabbable header strip; pointer capture + 4px threshold
  • Long-press position menu (hold 0.6s): back to default, corner presets, custom position, SVG stroke icons
  • Y-axis ticks & auto-scaling: value labels + gridlines, 1/2/2.5/5×10ⁿ rounding with hysteresis
  • Current-value indicator: dashed leader with a live value pill
  • Peak/off-peak pricing mode: priceMode: peak-offpeak switches prices by Beijing time
  • TPS readout, account balance (5-min cache), monthly budget bar, historic-session persistence

Changed

  • Closing with ✕ no longer resets the position
  • Stats view lists every date and month

Fixed

  • Idle curves drop to zero; time ticks no longer clipped; fractional ticks keep one decimal; stats refresh immediately; gesture conflicts; preset corner offset; drag-back handle; single-click open

新增

  • 会话花费显示:实时视图每个会话行显示绿色 ¥ 估算花费
  • 面板拖拽系统:位置跨刷新记忆、可拖出屏幕边缘但保留可抓取的头部栏、指针捕获 + 4px 阈值
  • 长按位置菜单(按住 0.6 秒):回到默认位置、四角预设、自定义位置、SVG 描边图标
  • Y 轴坐标与自动缩放:刻度 + 网格线,1/2/2.5/5×10ⁿ 取整 + 滞回
  • 当前值指示线:虚线引导线与实时数值胶囊
  • 峰谷计价模式TPS 显示账户余额(5 分钟缓存)、月预算进度条、历史会话持久化

变更

  • 点「✕」收起面板不再重置位置
  • 统计视图「按日/按月」显示全部日期与月份

修复

  • 曲线空闲归零、时间刻度不再裁切、小数刻度保留一位、统计切换即时刷新、手势冲突、预设角落偏上、拖出屏幕后可抓回、单点打开面板

v0.1.0

Choose a tag to compare

@juhe291 juhe291 released this 14 Aug 06:07

Added

  • First release: live view (session pressure / cumulative / details / curves), stats view (daily / monthly / durable logs), DeepSeek official-rate cost estimates, bilingual zh/en UI

新增

  • 初版发布:实时视图(会话压力/累计/详情/曲线)、统计视图(按日/按月/持久化日志)、DeepSeek 官方价成本估算、中英双语界面