Skip to content

Feat/tag system#4

Merged
Rinisnotarobot merged 4 commits into
masterfrom
feat/tag-system
May 25, 2026
Merged

Feat/tag system#4
Rinisnotarobot merged 4 commits into
masterfrom
feat/tag-system

Conversation

@Rinisnotarobot

Copy link
Copy Markdown
Owner

This pull request introduces several major enhancements to the article and tag system, improves the article list UI, and adds a new dependency. The most important changes are summarized below.


Database and Data Model Enhancements

  • Added a many-to-many tag system for articles by introducing new Tag and ArticleTag models, and updating the Article model to include a tags relation in prisma/schema.prisma. This enables articles to be associated with multiple tags and supports tag-based queries and display.

UI/UX Improvements for Articles

  • Implemented tag display on the article detail page, showing all associated tags as clickable badges that filter articles by tag. (src/components/articles/article-detail-page.tsx)
  • Refactored the article list row into a new ArticleRow component with improved layout, status display, and a dropdown menu for common actions (edit, publish, archive, delete, restore), making article management more intuitive and visually consistent. (src/components/articles/article-row.tsx)

Dependency Management

  • Added the cmdk package (v1.1.1) to package.json and updated pnpm-lock.yaml to reflect this new dependency. This prepares the codebase for future command menu or palette features. [1] [2] [3] [4]

Project Planning

  • Removed the user system enhancement plan markdown file, which described phased improvements to authentication and user experience. This likely indicates the plan has been completed or superseded. (.claude/PRPs/plans/user-system-enhancement.plan.md)

rinisnotarobot and others added 4 commits May 22, 2026 17:28
- 修复 useDeleteArticle 接收 { id } 对象而非 string
- 修复 articles-manage-page payload 传递问题
- 所有 mutation 统一使用 { id: string } 格式
- 新增 useUnpublishArticle 和 useRestoreArticle hooks
- 添加 dropdownOpen state 追踪 DropdownMenu 状态
- dropdown 打开时保持操作按钮区域可见
- dropdown 打开时保持卡片 hover 背景色效果
- Prisma schema: 新增 Tag 和 ArticleTag 模型
- 数据层: 标签 CRUD server functions
- Hooks: 标签查询和 mutation hooks
- 组件: TagSelector 命令菜单选择器、StatsBar 统计条
- 路由: 文章管理页面 /me/articles
- 验证器: 标签创建/更新 schema
- 工具函数: slug 生成、标签处理
- UI: Command 组件 (shadcn)
- 删除废弃的 drafts 页面和 article-queries

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- 新增 uploadImage 函数存储到 images/ 目录
- 新建图片上传 server function
- 创建 useImageUpload mutation hook
- 编辑器传入自定义 uploader 替代 base64

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 25, 2026 01:40
@Rinisnotarobot Rinisnotarobot merged commit 67969ca into master May 25, 2026
@Rinisnotarobot Rinisnotarobot review requested due to automatic review settings May 25, 2026 02:05
@Rinisnotarobot Rinisnotarobot deleted the feat/tag-system branch May 28, 2026 05:51
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.

1 participant