feat: wire Cloud card on Home to real FileBrowser data

Add getUsage() method to filebrowser-client that fetches root directory
and returns total size and folder count. Home.vue Cloud card now shows
real storage used and folder count instead of hardcoded values.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Dorian
2026-03-05 07:05:14 +00:00
parent dfe96cdb6f
commit 37105e6be6
3 changed files with 51 additions and 4 deletions

View File

@@ -40,7 +40,7 @@ After getting Claude Max OAuth working on the live server, hardening the deploy
- **Change**: Ensure tab bar element has `data-mobile-tab-bar` attribute so `useMobileBackButton` composable works. CloudFolder.vue already uses this correctly.
- **Verify**: CloudFolder on mobile — "Back to Cloud" button floats 8px above tab bar
### Task 7: Cloud homepage real data
### Task 7: Cloud homepage real data [DONE]
- **Files**: `neode-ui/src/views/Home.vue`, `neode-ui/src/api/filebrowser-client.ts`
- **Change**: Add `getUsage()` method to filebrowser-client. In Home.vue, replace hardcoded "2.4 GB" and "5" folders with real data from FileBrowser API. Add `formatBytes()` helper. Show loading state while fetching.
- **Verify**: Home Cloud card shows real storage numbers from FileBrowser