This pull request includes updates to the AnalysisPanel component in app/frontend/src/components/AnalysisPanel/AnalysisPanel.tsx to improve the handling of citations and source file fetching. The most important changes include re-adding a useEffect hook that sets the pivot tab and fetches the active citation object, as well as adding logic to fetch the source file blob if it is not already being fetched.
Improvements to citation handling and source file fetching:
This pull request includes updates to the
AnalysisPanel
component inapp/frontend/src/components/AnalysisPanel/AnalysisPanel.tsx
to improve the handling of citations and source file fetching. The most important changes include re-adding auseEffect
hook that sets the pivot tab and fetches the active citation object, as well as adding logic to fetch the source file blob if it is not already being fetched.Improvements to citation handling and source file fetching:
app/frontend/src/components/AnalysisPanel/AnalysisPanel.tsx
: Re-added auseEffect
hook to set the inner pivot tab to 'indexedFile' and fetch the active citation object whenactiveCitation
changes.app/frontend/src/components/AnalysisPanel/AnalysisPanel.tsx
: Added logic inside theuseEffect
hook to fetch the source file blob if it is not already being fetched, ensuring that theisFetchingSourceFileBlob
state is managed properly.