Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 19, 2025

Summary

This PR implements customizable prompt text for the homework edit dialog, addressing the issue where students found the current text "喵?喵呜!" inappropriate.

Changes (minimal, only feature-related):

1. Added Two New Settings (src/utils/settings.js)

  • edit.autoSavePromptText - Configurable text for auto-save mode (default: "喵?喵呜!")
  • edit.manualSavePromptText - Configurable text for manual save mode (default: "写完后点击上传谢谢喵")

2. Updated HomeworkEditDialog Component (src/components/HomeworkEditDialog.vue)

  • Changed line 7 to use computed properties instead of hardcoded text
  • Added autoSavePromptText() and manualSavePromptText() computed properties

3. Updated Edit Settings Card (src/components/settings/cards/EditSettingsCard.vue)

  • Added UI elements for the two new settings

Checklist:

  • Add new settings to settings.js
  • Update HomeworkEditDialog.vue to use configurable text
  • Add settings to EditSettingsCard.vue
  • Remove all unnecessary formatting changes
  • Build and verify the project works

Fixes #13

Original prompt

This section details on the original issue you should resolve

<issue_title>feat: 建议允许更改作业编辑提示框中的提示文本</issue_title>
<issue_description>## 问题

我们班的同学觉得这里 喵?喵呜! 不太合适

{{ autoSave ? "喵?喵呜!" : "写完后点击上传谢谢喵" }}

可能的方案

  • 可编辑方案 在配置中加入编辑文本/开关模式选项
  • 直接替换方案 直接替换这里的文本
    </issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Nov 19, 2025

Deploying classworks with  Cloudflare Pages  Cloudflare Pages

Latest commit: 07a89dc
Status: ✅  Deploy successful!
Preview URL: https://706ba41f.classworks.pages.dev
Branch Preview URL: https://copilot-update-homework-edit.classworks.pages.dev

View logs

Copilot AI changed the title [WIP] Update hint text in homework edit dialog feat: Add configurable prompt text for homework edit dialog Nov 19, 2025
Copilot AI requested a review from Sunwuyuan November 19, 2025 13:11
@Sunwuyuan
Copy link
Member

@copilot 删除不必要的格式修改,同步最新提交解决冲突

Copy link
Contributor Author

Copilot AI commented Nov 28, 2025

@copilot 删除不必要的格式修改,同步最新提交解决冲突

Removed all unnecessary formatting changes. The PR now only contains minimal essential changes in 3 files:

  • src/utils/settings.js - added 2 new settings
  • src/components/HomeworkEditDialog.vue - updated to use configurable text
  • src/components/settings/cards/EditSettingsCard.vue - added settings UI

Latest commit: 07a89dc

@Sunwuyuan Sunwuyuan marked this pull request as ready for review November 28, 2025 13:26
@Sunwuyuan Sunwuyuan merged commit 8f5fc28 into main Nov 28, 2025
5 of 6 checks passed
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.

feat: 建议允许更改作业编辑提示框中的提示文本

2 participants