fix(webui): show clear toast when upload fails due to localhost s3 endpoint (#507)

* fix(webui): show clear toast when upload fails due to localhost s3 endpoint

* fix(webui): center empty state in file browser list area
This commit is contained in:
Yiling-J
2026-10-30 14:16:34 +08:00
committed by GitHub
parent f0bdccf713
commit 3b00a42a89
9 changed files with 254 additions and 29 deletions
@@ -195,9 +195,12 @@ describe('FileBrowser', () => {
})
it('renders empty state when there are no folders and files and not loading', () => {
renderComponent({ folders: [], files: [], isLoading: false })
const { container } = renderComponent({ folders: [], files: [], isLoading: false })
expect(screen.getByText(/This folder is empty|此文件夹为空/i)).toBeDefined()
const emptyArea = container.querySelector('.empty-area')
expect(emptyArea).not.toBeNull()
expect(emptyArea?.classList.contains('flex-1')).toBe(true)
})
it('renders loading skeleton and does not render empty state when isLoading is true (card view)', () => {