Skip to content

[Release] v2.1.1 伺服器啟動腳本記憶體同步修復與介面互動體驗改善 - #86

Merged
Colin955023 merged 4 commits into
masterfrom
audit-alignment-safety-performance
Oct 25, 2026
Merged

Colin955023 merged 4 commits into
masterfrom
audit-alignment-safety-performance

Conversation

@Colin955023

Copy link
Copy Markdown
Owner

變更摘要

本 PR 發布 v2.1.1 修補版本,主要修復伺服器啟動腳本的記憶體參數同步機制、匯入單位解析錯誤,並改善管理頁面與進度對話方塊的 UI 即時回饋體驗。

修正與功能改善 (v2.1.1)

  1. 伺服器記憶體設定與啟動腳本同步
    • 解決管理頁面修改記憶體後,數值未正確存入 start_server.bat 的問題,確保腳本啟動參數與介面設定完全一致。
    • 增強伺服器匯入時啟動腳本之記憶體大小解析,支援以 G 為單位之設定(例如 -Xmx20G 準確識別為 20480 MB,不再誤判回退至 2G)。
  2. 管理伺服器頁面資訊與狀態連動
    • 修復伺服器清單增量對齊時因參考相同導致底部「記憶體配置」未同步更新的問題。
    • 管理頁面新增動態按鈕切換:當選取之伺服器為「執行中」時,原「啟動」按鈕自動切換為紅色的「停止」按鈕,防範誤操作與衝突。
  3. 建立伺服器進度條顯示即時同步
    • 建立伺服器進度對話方塊改採 WPF 原生 ProgressBar 佈局,進度條元件嚴格等比例跟隨進度百分比即時推移至 100% 後平順關閉。
  4. 伺服器監控控制台狀態反饋
    • 監控面板之「啟動」與「停止」按鈕增加指令執行條件約束,並在停用時維持原主題色搭配半透明與禁止游標,使狀態辨識更直觀。

- 工具入口收斂:檔案/磁碟操作統一至 SafeFileSystem、行程監控改經 IServerRuntime.GetWorkingSet64()、UI 互動統一至 IUiService。
- 架構解耦:抽取 IServerDirectorySizeService 與 IServerIntegrityService,移除孤兒型別。
- UI 與效能最佳化:伺服器資訊區改為橫向平均分攤、補齊 DataGrid 行虛擬化回收與字串陣列快取。
- 編碼與品質保證:修復文字編碼異常,全數通過 482 項測試且 Release 建置 0 警告 0 錯誤。
- 修復記憶體設定未寫入 start_server.bat 與匯入 20G 誤判為 2G 的問題
- 修正管理頁面記憶體顯示未同步刷新,並新增執行中動態切換停止按鈕
- 修復建立伺服器進度條未等比推移至 100% 的顯示問題
- 改善伺服器監控按鈕啟用狀態與停用半透明視覺回饋
Copilot AI balanced review requested due to automatic review settings October 25, 2026 08:26

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

- 修正 validate-renovate.yml 改用 npx 執行設定驗證
- 調整 .editorconfig 規則並提升專案版本至 2.1.1
- 新增 ServerLaunchTargetResolver 集中啟動目標解析,消除重複代碼
- 優化 SafeZipArchive 碰撞檢查為原生零配置走訪,統一入口與常數
- 修復記憶體設定寫入同步與建立伺服器進度條推進問題
colin04327
colin04327 previously approved these changes Oct 25, 2026
@Colin955023
Colin955023 merged commit c1be59c into master Oct 25, 2026
6 checks passed
@Colin955023
Colin955023 deleted the audit-alignment-safety-performance branch October 25, 2026 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants