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:
@@ -187,6 +187,7 @@ const enUS = {
|
||||
status: {
|
||||
generate: {
|
||||
draft: "Draft",
|
||||
queued: "Queued",
|
||||
generating: "Generating",
|
||||
running: "Running",
|
||||
completed: "Completed",
|
||||
@@ -202,6 +203,9 @@ const enUS = {
|
||||
},
|
||||
sourceType: {
|
||||
template: "Template generation",
|
||||
custom_generation: "Custom generation",
|
||||
instant_task: "Instant task",
|
||||
schedule_task: "Scheduled task",
|
||||
},
|
||||
},
|
||||
templates: {
|
||||
@@ -568,6 +572,11 @@ const enUS = {
|
||||
selectPlatform: "Target platform",
|
||||
submit: "Generate now",
|
||||
extraParams: "Extra parameters",
|
||||
name: "Task name",
|
||||
executionStatus: "Execution status",
|
||||
executionTime: "Execution time",
|
||||
createdTime: "Created time",
|
||||
empty: "No instant tasks yet.",
|
||||
},
|
||||
filters: {
|
||||
promptRule: "Prompt rule",
|
||||
@@ -575,6 +584,14 @@ const enUS = {
|
||||
generateStatus: "Generation status",
|
||||
title: "Title",
|
||||
generateTime: "Generation time",
|
||||
status: "Status",
|
||||
name: "Name",
|
||||
namePlaceholder: "Search by task name",
|
||||
createdTime: "Created time",
|
||||
},
|
||||
article: {
|
||||
titleColumn: "Article title",
|
||||
titleGenerating: "Generating title",
|
||||
},
|
||||
messages: {
|
||||
ruleCreated: "Rule created.",
|
||||
|
||||
Reference in New Issue
Block a user