You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Display research history for completed/errored researches (#28)
* feat: Display research history for completed/errored researches
Adds a collapsible section to the research details page to display the research history.
This section is only visible when the research is completed or in an error state.
The history is fetched from the `research_status_history` table and displayed using the `ResearchStatusHistoryDisplay` component.
The section is collapsed by default.
* feat: Display full research history in a compact view
This commit introduces two main changes:
1. Fetches all research history entries for completed (status 2) or errored (status 3) researches in `src/index.tsx`. Previously, it was limited to the last 5 entries.
2. Updates the `ResearchStatusHistoryDisplay` component in `src/templates/layout.tsx` to support a compact display mode.
- A new `isLiveView` prop is added.
- When `isLiveView` is false (for completed/errored researches), the history is displayed without timestamps and with a smaller font for better readability of longer logs.
- When `isLiveView` is true (for in-progress researches), the display remains the same, showing timestamps and regular font size for live updates.
These changes allow you to view the complete history of a research job in a more condensed format once it's no longer in a live state.
---------
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
0 commit comments