Refactors the application to display a merged and time-sorted view of all uploaded log files in a table.
Key changes:
- Replaced the single-file text view with a multi-file `gr.DataFrame`.
- Implemented timestamp parsing on file load, storing parsed timestamps in the application state.
- Created a new `generate_merged_view` function to handle filtering, merging, and sorting of logs.
- Added `pandas` as a dependency for data manipulation.
- Updated the design document to reflect the new architecture and user flow.
- Added a help icon for regular expression syntax.
The mount_gradio_app function was being used incorrectly. This commit replaces it with a FastAPI instance and mounts the Gradio app on top of it. Also adds a .gitignore file to exclude __pycache__ directories.
refactor: Reorganize files into a 'logviewer' directory
Moved Python source files into a subdirectory to improve project structure and scalability. Updated Dockerfile and launch.sh to reflect the new file paths and made launch.sh more portable.
feat: Update Gradio API and client for modern standards
This commit refactors the Gradio application to use the latest API endpoint practices by mounting the app on a FastAPI server.
- Replaced deprecated `demo.api_open` with `gr.mount_gradio_app`.
- Updated `cli_app.py` to use the `requests` library instead of `gradio_client`.
- Added `uvicorn` and `requests` to `requirements.txt`.
- Updated `design.md` to reflect these changes.
Adds a new section to the README.md detailing how to install and use the LogViewer application with Docker Compose, including prerequisites, build/run steps, CLI usage considerations, and how to stop the services.
Introduces a comprehensive README.md with installation and usage instructions for both the web and CLI interfaces.
Adds cli_app.py for command-line log processing, interacting with the Gradio app's API.
Updates app.py to expose API endpoints for filter loading and application, and includes filter reordering functionality in the UI.
Updates design.md to reflect the new CLI application and API endpoints.