Feat/tag system#4
Merged
Merged
Conversation
- 修复 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
TagandArticleTagmodels, and updating theArticlemodel to include atagsrelation inprisma/schema.prisma. This enables articles to be associated with multiple tags and supports tag-based queries and display.UI/UX Improvements for Articles
src/components/articles/article-detail-page.tsx)ArticleRowcomponent 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
cmdkpackage (v1.1.1) topackage.jsonand updatedpnpm-lock.yamlto reflect this new dependency. This prepares the codebase for future command menu or palette features. [1] [2] [3] [4]Project Planning
.claude/PRPs/plans/user-system-enhancement.plan.md)