Files
litellm-android/PROGRESS.md
T

53 lines
5.9 KiB
Markdown
Raw Normal View History

2026-11-19 11:23:59 +01:00
# LiteLLM Android dashboard progress
Last reviewed: 19 November 2026
This file tracks the Android app in this repository. A checked item means the feature exists in source; the verification notes say how far it has been tested. The current build is a functional core dashboard, not a complete mobile replacement for every page in LiteLLM's web admin UI.
## Completed
- [x] Researched LiteLLM proxy management and spend endpoints and Android Compose setup; recorded the original scope and acceptance checks in [PLAN.md](PLAN.md).
- [x] Created a native Kotlin/Jetpack Compose Android project with Gradle wrapper, Android manifest, and build instructions in [README.md](README.md).
- [x] Added a connection screen with proxy URL validation, bearer-key authentication, connection test, timeouts, and readable network/authentication errors.
- [x] Encrypted the saved API key with Android Keystore, disabled app backup, and added disconnect/key removal.
- [x] Built bottom navigation and settings, with loading, empty, retry, and section-specific error views.
2026-11-19 11:43:36 +01:00
- [x] Added an overview showing total spend, request counts, a seven-day request chart, and recent requests where the proxy permits them.
2026-11-19 11:23:59 +01:00
- [x] Added searchable model inventory and model detail views. The app falls back to `/v1/models` if `/model/info` is unavailable or forbidden.
- [x] Added key inventory, details, and page navigation. Key search filters the currently loaded page.
- [x] Added team inventory and details.
- [x] Added a 30-day spend-log list, details, and page navigation. Log search filters the currently loaded page.
- [x] Added authorized creation forms for models, virtual keys, and teams. A generated virtual key is shown once and is not persisted by the app.
- [x] Added a local LiteLLM-shaped test proxy at [tools/mock_proxy.py](tools/mock_proxy.py).
- [x] Built a debug APK with `./gradlew.bat :app:assembleDebug` and installed/launched it on `emulator-5554` through adb.
- [x] Exercised connection, overview, inventories, log pagination, saved-connection restart, and all three creation flows against the local test proxy. Fixed a short-list navigation layout issue found during emulator review. The final APK launched after rebuilding.
2026-11-19 11:43:36 +01:00
- [x] Connected the emulator app to the user's LiteLLM v1.110.1 server using the ignored `connection.txt` file. Verified that overview, models, keys, and logs render live data and that `/team/list` returns an empty list without an app error. The live server requires dates on `/global/activity`; the app now supplies them. `/global/spend/report` is Enterprise-only on this server, so the chart now uses daily request activity instead.
- [x] Adjusted the model provider parser for `litellm_params.custom_llm_provider` and increased precision for small request costs after inspecting live responses.
- [x] Built signed, shrunk release APK and AAB with a new local upload key stored outside the repository. Verified the APK signature, installed it on `emulator-5554`, and confirmed it connects to the live LiteLLM server and renders overview data. Documented repeatable release builds and key backup in [README.md](README.md).
2026-11-19 11:23:59 +01:00
## Needs work or verification
2026-11-19 11:43:36 +01:00
- [ ] Verify model, key, and team **creation** against a live LiteLLM deployment when a disposable test object and cleanup path are available. The current live pass was read-only; creation was verified only against the local fixture.
- [ ] Confirm overview behavior with a restricted key. Forbidden metrics currently appear as unavailable values; make their reason explicit on the overview.
2026-11-19 11:23:59 +01:00
- [ ] Verify connection failure paths on-device with invalid keys, forbidden endpoints, expired credentials, TLS/certificate failures, and a proxy mounted under a URL path. These states have code paths but were not all exercised on the emulator.
- [ ] Add automated tests for URL validation, API response parsing, authentication/error mapping, and creation payloads. The repository currently has no automated test suite or CI workflow.
- [ ] Improve large-installation browsing: server-side key search, more reliable total/page handling across LiteLLM versions, and pagination or filtering for teams and models where needed. Current key and log search works only within a page.
2026-11-19 11:43:36 +01:00
- [ ] Improve the daily request chart with date/value labels and clarify the time range of overview totals. The current bar chart communicates magnitude but has no axis or per-day labels.
2026-11-19 11:23:59 +01:00
- [ ] Review accessibility on a range of screen sizes, font scales, keyboard navigation, and screen-reader settings. Standard Compose labels are present, but a full accessibility pass has not been done.
## Not started
- [ ] Edit, block/unblock, rotate, or revoke virtual keys; edit or delete models and teams. These management operations are not in the current UI.
- [ ] User, organization, project, budget, tag, guardrail, credential, and access-group management.
- [ ] Usage breakdowns and filters by model, provider, team, user, key, or date range; export/report workflows.
- [ ] Advanced log filters, server-side search, full request traces, and prompt/response inspection where LiteLLM has been configured to store them.
- [ ] Alerts, push notifications, widgets, or background synchronization.
- [ ] Multiple saved proxy profiles and account switching.
2026-11-19 11:43:36 +01:00
- [ ] Play Store listing and submission, crash reporting, and production telemetry. A signed AAB exists, but it has not been uploaded or reviewed by a store.
2026-11-19 11:23:59 +01:00
## Next milestone
2026-11-19 11:43:36 +01:00
1. Add automated regression tests using the response shapes observed on LiteLLM v1.110.1.
2. Verify restricted-key behavior and live creation with disposable objects if those flows are needed for release.
3. Complete compatibility and accessibility checks before a public store release, then submit the signed AAB and preserve the signing-key backup.
2026-11-19 11:23:59 +01:00
Update this file whenever a feature is completed or a gap is discovered. Move an item to **Completed** only after implementation; record the verification level separately when it has not been exercised against a live deployment.