Refactor brand service and related components

- Removed ListQuestionVersions method and associated types from BrandService and Queries.
- Updated PromptRuleGenerationService to change task naming and handling.
- Enhanced ScheduleTaskService to support filtering by created date range and keyword.
- Introduced InstantTaskService for managing instant tasks with appropriate filtering and response structures.
- Added InstantTaskHandler for handling API requests related to instant tasks.
- Created InstantTaskTab component for the admin web interface to display and manage instant tasks.
- Updated database migrations to rename source types for articles and generation tasks.
- Adjusted models and repository queries to reflect the removal of question version handling.
This commit is contained in:
2026-04-02 21:16:12 +08:00
parent 111498a65f
commit 8958cb44c0
36 changed files with 1378 additions and 358 deletions
+73
View File
@@ -54,6 +54,44 @@ html, body, #app {
color: #1a1a1a;
}
.table-actions-row {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 4px;
}
.action-btn.ant-btn {
color: #8c8c8c;
font-size: 14px;
transition: color 0.2s, background-color 0.2s;
}
.action-edit.ant-btn:hover:not(:disabled) {
color: #52c41a;
background: #f6ffed;
}
.action-eye.ant-btn:hover:not(:disabled) {
color: #13c2c2;
background: #e6fffb;
}
.action-enable.ant-btn:hover:not(:disabled) {
color: #52c41a;
background: #f6ffed;
}
.action-disable.ant-btn:hover:not(:disabled) {
color: #fa8c16;
background: #fff7e6;
}
.action-delete.ant-btn:hover:not(:disabled) {
color: #ff4d4f;
background: #fff2f0;
}
/* Component Overrides for Ant Design to match Pro style */
.ant-layout {
min-height: 100vh;
@@ -180,3 +218,38 @@ html, body, #app {
grid-template-columns: 1fr;
}
}
/* Premium Modal Overrides */
.ant-modal-content {
border-radius: 16px !important;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
padding: 12px !important;
}
.ant-modal-header {
border-bottom: none !important;
padding: 16px 16px 8px !important;
background: transparent !important;
}
.ant-modal-title {
font-size: 18px !important;
font-weight: 700 !important;
color: #111827 !important;
}
.ant-modal-body {
padding: 12px 16px !important;
}
.ant-modal-footer {
border-top: none !important;
padding: 8px 16px 12px !important;
}
.ant-modal-footer .ant-btn {
border-radius: 8px !important;
height: 38px !important;
padding: 0 20px !important;
font-weight: 500 !important;
}