Skip to content

feat: add edit and delete functionality for predefined questions#1172

Open
espgrandia wants to merge 2 commits intonerds-odd-e:mainfrom
espgrandia:feature/edit-delete-questions
Open

feat: add edit and delete functionality for predefined questions#1172
espgrandia wants to merge 2 commits intonerds-odd-e:mainfrom
espgrandia:feature/edit-delete-questions

Conversation

@espgrandia
Copy link
Contributor

功能說明

新增編輯和刪除預設問題的功能。

變更內容

  • 後端 API

    • 新增 PATCH /api/predefined-questions/{id} 用於更新問題
    • 新增 POST /api/predefined-questions/{id}/delete 用於刪除問題
  • 前端 UI

    • 在問題列表添加編輯和刪除按鈕
    • 擴展 QuestionManagement.vue 支援編輯模式
    • 添加刪除確認對話框

測試

  • ✅ 編輯功能測試通過
  • ✅ 刪除功能測試通過
  • ✅ 無資料庫異動

相關提交

  • 07f3b488df - feat: add backend API for updating and deleting predefined questions
  • 745af41580 - feat: add edit and delete buttons to question list UI

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