Fix: Added some prompts and polling functionality to retrieve data source logs. #10703 (#11103)

### What problem does this PR solve?

Fix: Added some prompts and polling functionality to retrieve data
source logs.

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
chanx
2025-11-07 14:28:45 +08:00
committed by GitHub
parent b137de1def
commit edbc396bc6
13 changed files with 155 additions and 95 deletions

View File

@ -66,7 +66,7 @@ const SourceDetailPage = () => {
render: (fieldProps: FormFieldConfig) => (
<div className="flex items-center gap-1 w-full relative">
<Input {...fieldProps} type={FormFieldType.Number} />
<span className="absolute right-0 -translate-x-12 text-text-secondary italic ">
<span className="absolute right-0 -translate-x-[58px] text-text-secondary italic ">
minutes
</span>
<button
@ -96,7 +96,7 @@ const SourceDetailPage = () => {
return (
<div className="flex items-center gap-1 w-full relative">
<Input {...fieldProps} type={FormFieldType.Number} />
<span className="absolute right-0 -translate-x-3 text-text-secondary italic ">
<span className="absolute right-0 -translate-x-6 text-text-secondary italic ">
hours
</span>
</div>
@ -111,7 +111,7 @@ const SourceDetailPage = () => {
render: (fieldProps: FormFieldConfig) => (
<div className="flex items-center gap-1 w-full relative">
<Input {...fieldProps} type={FormFieldType.Number} />
<span className="absolute right-0 -translate-x-3 text-text-secondary italic ">
<span className="absolute right-0 -translate-x-6 text-text-secondary italic ">
seconds
</span>
</div>
@ -183,7 +183,7 @@ const SourceDetailPage = () => {
</div>
<section className="flex flex-col gap-2 mt-6">
<div className="text-2xl text-text-primary">{t('setting.log')}</div>
<DataSourceLogsTable />
<DataSourceLogsTable refresh_freq={detail?.refresh_freq || false} />
</section>
</CardContent>
</Card>