Add browser-only UI customization (density/layout/JSON/paging) + query-safe static asset routing #246
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary (target: development)
Adds a browser-only UI Customization panel to the Android Debug Database web UI (layout/
text/paging), plus a small server fix so index.html?… (and other static assets) load
correctly when query parameters are present.
Why
When inspecting wide tables and/or large JSON blobs, the current UI often forces heavy
horizontal scrolling and doesn’t let you tune density/page size. This PR improves
readability and navigation without changing any database/server behavior.
What changed
view (?view=customize) with a “Back to Data” link (supports browser back/forward via
history.pushState when available).
debug-db-base/src/main/assets/index.html and debug-db-base/src/main/assets/custom.css
to support:
defaults match existing behavior.
handling)
query params for static asset lookup + MIME detection (API routes still receive the full
route with query params). This enables /?view=customize and generally makes index.html?…
safe.
Demo
Note: the button icon doesn't load because index.html is opened as a file in the Loom video.
Loom video: https://www.loom.com/share/0f28072dac494055a4bae16470c88358
How to test