mirror of
https://github.com/d0zingcat/alert-message-center.git
synced 2026-05-13 15:09:19 +00:00
12
CHANGELOG.md
12
CHANGELOG.md
@@ -4,6 +4,18 @@
|
||||
|
||||
本文件的格式基于 [Keep a Changelog](https://keepachangelog.com/zh-CN/1.0.0/),
|
||||
并且本项目遵循 [语义化版本 (Semantic Versioning)](https://semver.org/lang/zh-CN/spec/v2.0.0.html)。
|
||||
|
||||
## [1.2.2] - 2026-01-14
|
||||
|
||||
### 变更
|
||||
- **Linting**: 强化了 Biome 配置,启用了更严格的 `a11y` (可访问性), `suspicious` (可疑代码), `style` (代码规范) 和 `correctness` (正确性) 检查规则。
|
||||
- **配置**: 配置 `noUnknownAtRules` 规则以忽略 Tailwind CSS 特有的 At-rules。
|
||||
|
||||
### 修复
|
||||
- **Web 可访问性**: 为所有按钮添加了显式的 `type="button"` 以符合规范。
|
||||
- **语义化/ARAI**: 修正了 `Modal` 背景的交互逻辑,将非语义化的 `div` 替换为 `<button>` 并添加了必要的键盘事件与 ARIA 属性。
|
||||
- **Hook 依赖**: 在多个视图中使用了 `useCallback` 来确保 `useEffect` 依赖链的稳定性,解决了 `exhaustive-deps` 警告。
|
||||
- **代码健壮性**: 修复了 `main.tsx` 中的 Non-null Assertion 并解决了 `TopicsView` 中的类型重声明冲突。
|
||||
|
||||
## [1.2.1] - 2026-01-14
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Project Context for GitHub Copilot (v1.2.1)
|
||||
# Project Context for GitHub Copilot (v1.2.2)
|
||||
|
||||
This document provides technical context, architectural decisions, and code conventions for the **Alert Message Center** project. It is intended to help AI assistants understand the codebase.
|
||||
|
||||
@@ -194,6 +194,11 @@ The database schema is defined in `apps/server/src/db/schema.ts`.
|
||||
- **Styling**: Use Tailwind utility classes directly in JSX.
|
||||
- **Async/Await**: Prefer `async/await` over `.then()`.
|
||||
- **Type Safety**: strict TypeScript usage. Backend and Frontend share types via Hono RPC or shared interfaces.
|
||||
- **Linter & Formatter**:
|
||||
- Framework: [Biome](https://biomejs.dev/).
|
||||
- **Rules**: Strict configuration for `a11y`, `suspicious`, `style`, and `correctness`.
|
||||
- **Tailwind**: `noUnknownAtRules` is configured to ignore Tailwind directives (`@tailwind`, `@apply`, etc.).
|
||||
- **Enforcement**: CI/CD runs `biome check` to ensure compliance. Avoid use of `as any` unless absolutely necessary (e.g., complex API payloads), in which case `// biome-ignore` should include a rationale.
|
||||
- **Logging**:
|
||||
- Framework: `pino`.
|
||||
- **Structured Log**: Use JSON format for easy parsing and aggregation.
|
||||
|
||||
1
todo.md
1
todo.md
@@ -26,4 +26,5 @@
|
||||
- [x] **Auto-Cleanup**: Unbind subscriptions when bot is removed from group.
|
||||
- [x] **Long Connection**: WebSocket support for intranet deployments.
|
||||
- [x] **Structured Logging**: Integrated `pino` for better observability.
|
||||
- [x] **Linting**: Tightened Biome rules and resolved all a11y/correctness issues.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user