mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
feat: frontend unlimited — raise all client-side caps and timeouts
- XHR timeouts: doubled across all tool categories (120s/300s/600s) - Pipeline timeout: 180s → 600s - Favicon/PDF/barcode timeouts raised to 300s - Files page: fetch 200 per page - Split grid: 20 → 100 max columns/rows - Image viewer zoom: 25-300% → 10-1000% - Collage zoom: 3x → 10x, pan: ±100 → ±200 - Passport photo: face adjust ±15% → ±30%, zoom 3x → 5x
This commit is contained in:
@@ -35,7 +35,7 @@ export const useFilesPageStore = create<FilesPageState>((set, get) => ({
|
||||
set({ loading: true, error: null });
|
||||
try {
|
||||
const { searchQuery } = get();
|
||||
const result = await apiListFiles({ search: searchQuery || undefined, limit: 100 });
|
||||
const result = await apiListFiles({ search: searchQuery || undefined, limit: 200 });
|
||||
set({ files: result.files, total: result.total, loading: false });
|
||||
} catch (err) {
|
||||
set({ error: err instanceof Error ? err.message : "Failed to load files", loading: false });
|
||||
|
||||
@@ -68,8 +68,8 @@ export const useSplitStore = create<SplitState>((set, get) => ({
|
||||
|
||||
setMode: (mode) => set({ mode, tiles: [], zipBlobUrl: null, error: null }),
|
||||
setColumns: (columns) =>
|
||||
set({ columns: Math.max(1, Math.min(20, columns)), tiles: [], zipBlobUrl: null }),
|
||||
setRows: (rows) => set({ rows: Math.max(1, Math.min(20, rows)), tiles: [], zipBlobUrl: null }),
|
||||
set({ columns: Math.max(1, Math.min(100, columns)), tiles: [], zipBlobUrl: null }),
|
||||
setRows: (rows) => set({ rows: Math.max(1, Math.min(100, rows)), tiles: [], zipBlobUrl: null }),
|
||||
setTileWidth: (tileWidth) =>
|
||||
set({ tileWidth: Math.max(10, tileWidth), tiles: [], zipBlobUrl: null }),
|
||||
setTileHeight: (tileHeight) =>
|
||||
|
||||
Reference in New Issue
Block a user