Skip to content

Conversation

@G4brym
Copy link
Owner

@G4brym G4brym commented Jun 19, 2025

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.

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.
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.
@G4brym G4brym merged commit 06a1780 into main Jun 19, 2025
2 checks passed
@G4brym G4brym deleted the feature/research-history branch June 19, 2025 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants