Align library styles with the design system
Use type recipes and Button danger variant, add danger tint, dropzone and cover-fill tokens, give SearchInput a size prop so the top bar keeps its larger search, show queue details inline on mobile, derive upload limits from constants and document the card hover style.
This commit is contained in:
@@ -4,6 +4,7 @@ import {
|
||||
titleFromFileName,
|
||||
toQueuedUpload,
|
||||
uploadError,
|
||||
uploadLimitsLabel,
|
||||
UPLOAD_MAX_BYTES
|
||||
} from '$lib/data/uploadQueue';
|
||||
|
||||
@@ -43,3 +44,11 @@ describe('summarizeQueue', () => {
|
||||
expect(summarizeQueue(items)).toEqual({ ready: 2, failed: 1 });
|
||||
});
|
||||
});
|
||||
|
||||
describe('uploadLimitsLabel', () => {
|
||||
it('lists the formats and the size limit', () => {
|
||||
expect(uploadLimitsLabel()).toBe(
|
||||
'WAV, FLAC, AIFF o MP3 · hasta 500 MB por archivo · puedes soltar carpetas enteras'
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user