From 696d091efa199f4663b6e8c8e485d0021e8fd356 Mon Sep 17 00:00:00 2001 From: Scove Date: Sun, 7 Jun 2026 18:21:10 +0700 Subject: [PATCH] Update --- .idea/.idea.BABA_YAGA/.idea/workspace.xml | 48 ++++++++++--------- BABA_YAGA_Updater/mappers/markdown_builder.py | 25 +++++++--- README.md | 8 ++-- 3 files changed, 47 insertions(+), 34 deletions(-) diff --git a/.idea/.idea.BABA_YAGA/.idea/workspace.xml b/.idea/.idea.BABA_YAGA/.idea/workspace.xml index 601af745..817b6f19 100644 --- a/.idea/.idea.BABA_YAGA/.idea/workspace.xml +++ b/.idea/.idea.BABA_YAGA/.idea/workspace.xml @@ -5,6 +5,8 @@ + + - + { + "associatedIndex": 0 +} - { + "keyToString": { + "ModuleVcsDetector.initialDetectionPerformed": "true", + "RunOnceActivity.MCP Project settings loaded": "true", + "RunOnceActivity.ShowReadmeOnStart": "true", + "RunOnceActivity.TerminalTabsStorage.copyFrom.TerminalArrangementManager.252": "true", + "RunOnceActivity.git.unshallow": "true", + "RunOnceActivity.typescript.service.memoryLimit.init": "true", + "com.intellij.ml.llm.matterhorn.ej.ui.settings.DefaultModelSelectionForGA.v1": "true", + "git-widget-placeholder": "main", + "junie.onboarding.icon.badge.shown": "true", + "node.js.detected.package.eslint": "true", + "node.js.detected.package.tslint": "true", + "node.js.selected.package.eslint": "(autodetect)", + "node.js.selected.package.tslint": "(autodetect)", + "nodejs_package_manager_path": "npm", + "to.speed.mode.migration.done": "true", + "vue.rearranger.settings.migration": "true" } -}]]> +} diff --git a/BABA_YAGA_Updater/mappers/markdown_builder.py b/BABA_YAGA_Updater/mappers/markdown_builder.py index 3635da7e..26e74279 100644 --- a/BABA_YAGA_Updater/mappers/markdown_builder.py +++ b/BABA_YAGA_Updater/mappers/markdown_builder.py @@ -6,19 +6,30 @@ class MarkdownBuilder: if not report.tasks: return "_No tasks updated._" + # Table header header = "| Category | Task | Status | Progress | Notes |\n" separator = "| :--- | :--- | :--- | :--- | :--- |\n" rows = [] for task in report.tasks: - # Format status with some icons if possible, or just plain text - status_text = task.status - if "done" in status_text.lower() or "complete" in status_text.lower(): - status_text = f"✅ {status_text}" - elif "progress" in status_text.lower(): - status_text = f"🔄 {status_text}" + # Map status to professional badges + status_clean = task.status.lower().strip() - row = f"| {task.category} | {task.task_name} | {status_text} | {task.progress} | {task.notes} |" + if any(x in status_clean for x in ["done", "complete", "finished"]): + badge = "![Done](https://img.shields.io/badge/-DONE-2ea44f?style=flat-square)" + elif any(x in status_clean for x in ["progress", "doing", "active"]): + badge = "![In Progress](https://img.shields.io/badge/-PROGRESS-005cc5?style=flat-square)" + elif any(x in status_clean for x in ["planned", "todo", "waiting"]): + badge = "![Planned](https://img.shields.io/badge/-PLANNED-6a737d?style=flat-square)" + elif any(x in status_clean for x in ["bug", "error", "fix"]): + badge = "![Bug](https://img.shields.io/badge/-FIXING-d73a49?style=flat-square)" + else: + badge = f"`{task.status}`" # Fallback to code text + + # Progress bar simulation using HTML/Unicode if needed, + # but simple text "75%" is often cleaner. + + row = f"| **{task.category}** | {task.task_name} | {badge} | `{task.progress}` | {task.notes} |" rows.append(row) return header + separator + "\n".join(rows) diff --git a/README.md b/README.md index b797dc4b..9c19549a 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ -# 🌑 BABA_YAGA: The Asymmetric Mind-Game +# ![Header](https://img.shields.io/badge/PROJECT-BABA_YAGA-black?style=for-the-badge&logo=shadow) [![Unity 6000.3.10f1](https://img.shields.io/badge/Unity-6000.3.10f1_LTS-black?logo=unity&logoColor=white)](https://unity.com/) -[![Photon Fusion](https://img.shields.io/badge/Networking-Photon_Fusion-blue)](https://www.photonengine.com/fusion) -[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) +[![Photon Fusion](https://img.shields.io/badge/Networking-Photon_Fusion-blue?style=flat-square)](https://www.photonengine.com/fusion) +[![License: MIT](https://img.shields.io/badge/License-MIT-lightgrey?style=flat-square)](https://opensource.org/licenses/MIT) > **"Trong bóng tối của sự ảo giác, thị giác là công cụ mạnh mẽ nhất, nhưng sự tin tưởng lại là sai lầm chết người."** @@ -10,7 +10,7 @@ --- -## 📑 Mục lục (Table of Contents) +## ![Docs](https://img.shields.io/badge/--Mục_lục-black?style=flat-square&logo=read-the-docs&logoColor=white) 1. [Tầm nhìn Dự án (Project Vision)](#-tầm-nhìn-dự-án-project-vision) 2. [Cơ chế Trò chơi (Core Mechanics)](#-cơ-chế-trò-chơi-core-mechanics) 3. [Kiến trúc Kỹ thuật (Technical Architecture)](#-kiến-trúc-kỹ-thuật-technical-architecture)