-
-
- {job.name}
- {job.attempts > 1 && {t('JOB.ATTEMPTS', { attempts: job.attempts })}}
- {!!job.opts?.repeat?.count && (
-
- {t(`JOB.REPEAT${!!job.opts?.repeat?.limit ? '_WITH_LIMIT' : ''}`, {
- count: job.opts.repeat.count,
- limit: job.opts?.repeat?.limit,
- })}
-
- )}
-
- {!readOnlyMode && (
-
- )}
-
-
-
- {typeof job.progress === 'number' && (
-
+
+
+ {jobUrl ? (
+
+ {JobTitle}
+
+ ) : JobTitle}
+
+ {jobUrl && (
+
)}
-
+
+
+
+
+
+
+
+
+
+
+ {t('JOB.NAME')}: {job.name}
+ {job.attempts > 1 && (
+
+ - {t('JOB.ATTEMPTS', { attempts: job.attempts })}
+
+ )}
+
+ {!!job.opts?.repeat?.count && (
+
+ {t(`JOB.REPEAT${!!job.opts?.repeat?.limit ? '_WITH_LIMIT' : ''}`, {
+ count: job.opts.repeat.count,
+ limit: job.opts?.repeat?.limit,
+ })}
+
+ )}
+
+
+ {!readOnlyMode && (
+
+ )}
+
+
+
+
+
+ {typeof job.progress === 'number' && (
+
+ )}
+
+
+
+
+
);
};
diff --git a/packages/ui/src/components/SettingsModal/SettingsModal.tsx b/packages/ui/src/components/SettingsModal/SettingsModal.tsx
index 274d99e1..c9e1c302 100644
--- a/packages/ui/src/components/SettingsModal/SettingsModal.tsx
+++ b/packages/ui/src/components/SettingsModal/SettingsModal.tsx
@@ -21,6 +21,7 @@ export const SettingsModal = ({ open, onClose }: SettingsModalProps) => {
jobsPerPage,
confirmQueueActions,
confirmJobActions,
+ collapseJob,
collapseJobData,
collapseJobOptions,
collapseJobError,
@@ -81,6 +82,12 @@ export const SettingsModal = ({ open, onClose }: SettingsModalProps) => {
checked={confirmJobActions}
onCheckedChange={(checked) => setSettings({ confirmJobActions: checked })}
/>
+
setSettings({ collapseJob: checked })}
+ />
()(
jobsPerPage: 10,
confirmJobActions: true,
confirmQueueActions: true,
+ collapseJob: false,
collapseJobData: false,
collapseJobOptions: false,
collapseJobError: false,
diff --git a/packages/ui/src/static/locales/en-US/messages.json b/packages/ui/src/static/locales/en-US/messages.json
index f9d50797..22afbf94 100644
--- a/packages/ui/src/static/locales/en-US/messages.json
+++ b/packages/ui/src/static/locales/en-US/messages.json
@@ -10,6 +10,7 @@
"JOBS_COUNT": "{{count}} Jobs"
},
"JOB": {
+ "NAME": "Name",
"NOT_FOUND": "Job Not found",
"STATUS": "Status: {{status}}",
"ADDED_AT": "Added at",
@@ -109,6 +110,7 @@
"JOBS_PER_PAGE": "Jobs per page (1-50)",
"CONFIRM_QUEUE_ACTIONS": "Confirm queue actions",
"CONFIRM_JOB_ACTIONS": "Confirm job actions",
+ "COLLAPSE_JOB": "Collapse job",
"COLLAPSE_JOB_DATA": "Collapse job data",
"COLLAPSE_JOB_OPTIONS": "Collapse job options",
"COLLAPSE_JOB_ERROR": "Collapse job error"
diff --git a/packages/ui/src/static/locales/pt-BR/messages.json b/packages/ui/src/static/locales/pt-BR/messages.json
index 81ba261f..363da38f 100644
--- a/packages/ui/src/static/locales/pt-BR/messages.json
+++ b/packages/ui/src/static/locales/pt-BR/messages.json
@@ -12,6 +12,7 @@
"JOBS_COUNT": "{{count}} Tarefas"
},
"JOB": {
+ "NAME": "Nome",
"NOT_FOUND": "Tarefa não encontrada",
"STATUS": "Status: {{status}}",
"ADDED_AT": "Adicionado em",
@@ -113,6 +114,7 @@
"JOBS_PER_PAGE": "Tarefas por página (1-50)",
"CONFIRM_QUEUE_ACTIONS": "Confirma ações da fila",
"CONFIRM_JOB_ACTIONS": "Confirma ações da tarefa",
+ "COLLAPSE_JOB": "Recolher tarefa",
"COLLAPSE_JOB_DATA": "Recolher dados da tarefa",
"COLLAPSE_JOB_OPTIONS": "Recolher opções da tarefa",
"COLLAPSE_JOB_ERROR": "Recolher erros da tarefa"
diff --git a/yarn.lock b/yarn.lock
index c8d35683..4fbc7d87 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -3369,6 +3369,21 @@
"@babel/runtime" "^7.13.10"
"@radix-ui/react-primitive" "1.0.3"
+"@radix-ui/react-collapsible@^1.0.3":
+ version "1.0.3"
+ resolved "https://registry.yarnpkg.com/@radix-ui/react-collapsible/-/react-collapsible-1.0.3.tgz#df0e22e7a025439f13f62d4e4a9e92c4a0df5b81"
+ integrity sha512-UBmVDkmR6IvDsloHVN+3rtx4Mi5TFvylYXpluuv0f37dtaz3H99bp8No0LGXRigVpl3UAT4l9j6bIchh42S/Gg==
+ dependencies:
+ "@babel/runtime" "^7.13.10"
+ "@radix-ui/primitive" "1.0.1"
+ "@radix-ui/react-compose-refs" "1.0.1"
+ "@radix-ui/react-context" "1.0.1"
+ "@radix-ui/react-id" "1.0.1"
+ "@radix-ui/react-presence" "1.0.1"
+ "@radix-ui/react-primitive" "1.0.3"
+ "@radix-ui/react-use-controllable-state" "1.0.1"
+ "@radix-ui/react-use-layout-effect" "1.0.1"
+
"@radix-ui/react-collection@1.0.3":
version "1.0.3"
resolved "https://registry.yarnpkg.com/@radix-ui/react-collection/-/react-collection-1.0.3.tgz#9595a66e09026187524a36c6e7e9c7d286469159"