mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-05-09 08:25:54 +02:00
[PR #412] [MERGED] refactor(utils): consolidate date and file size formatting #1036
Labels
No labels
A1
automated
automated
bug
bug
Closed due to inactivity
contrib
dependencies
dependencies
duplicate
enhancement
feedback
hold
invalid
Notes
P1S
pull-request
security
ThumbsUp
user-report
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/bambuddy-maziggy-1#1036
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/maziggy/bambuddy/pull/412
Author: @aneopsy
Created: 2/17/2026
Status: ✅ Merged
Merged: 2/18/2026
Merged by: @maziggy
Base:
0.2.1b← Head:refactor-all-pages📝 Commits (10+)
b477fbfRefactors date and file formatting utilities59fd7a3Merge remote-tracking branch 'upstream/0.2.0b' into refactor-all-pages82b3d5ffix2462659Merge branch '0.2.0b' into refactor-all-pages4af9964Merge branch '0.2.1b' into refactor-all-pagesf38acedMerge branch '0.2.1b' into refactor-all-pages3a02872Merge remote-tracking branch 'upstream/0.2.1b' into refactor-all-pagesd9dd15dfix(ui): storage size formatting, overdue queue items, and i18n fixes397e21eMerge branch '0.2.1b' into refactor-all-pagesfa4bb4fFix missing newline at end of file.test.ts📊 Changes
19 files changed (+659 additions, -115 deletions)
View changed files
📝
frontend/src/__tests__/components/FileManagerModal.test.tsx(+3 -3)📝
frontend/src/__tests__/components/PrinterQueueWidget.test.tsx(+2 -2)➕
frontend/src/__tests__/utils/date.test.ts(+437 -0)➕
frontend/src/__tests__/utils/file.test.ts(+43 -0)📝
frontend/src/components/FileManagerModal.tsx(+2 -8)📝
frontend/src/components/GitHubBackupSettings.tsx(+3 -25)📝
frontend/src/components/PendingUploadsPanel.tsx(+1 -6)📝
frontend/src/components/PrinterQueueWidget.tsx(+2 -16)📝
frontend/src/i18n/locales/de.ts(+14 -0)📝
frontend/src/i18n/locales/en.ts(+14 -0)📝
frontend/src/i18n/locales/fr.ts(+14 -0)📝
frontend/src/i18n/locales/it.ts(+14 -0)📝
frontend/src/i18n/locales/ja.ts(+14 -0)📝
frontend/src/pages/ArchivesPage.tsx(+1 -6)📝
frontend/src/pages/FileManagerPage.tsx(+1 -8)📝
frontend/src/pages/ProfilesPage.tsx(+2 -19)📝
frontend/src/pages/QueuePage.tsx(+8 -19)📝
frontend/src/utils/date.ts(+64 -3)➕
frontend/src/utils/file.ts(+20 -0)📄 Description
Description
Refactors date and file formatting utilities (frontend/src/utils)
Extracts formatting logic into dedicated utility functions to improve
code maintainability and consistency across components.
Changes:
Type of Change
Testing
Add comprehensive unit tests for date utilities
Add unit tests for file size formatting
I have tested this on my local machine
I have tested with my printer model: X1C, H2S
Checklist
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.