Skip to content

Commit dc45ffe

Browse files
committed
feat(ui): add version to reprocess document in DocumentDetails
1 parent 4fa00a4 commit dc45ffe

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ SPDX-License-Identifier: MIT-0
1212
- **Error Analyzer model selection** — The agent was using the Chat Companion's model instead of its own configured model.
1313
- **Error Analyzer log processing** — Fixed early termination that stopped searching after the first Lambda function with errors; now searches all relevant log groups.
1414
- **Error Analyzer log truncation** — Fixed handling of long log messages to trim them rather than skip them entirely.
15+
- **Reprocess from Document Details** — Fixed config version not being passed when reprocessing a document from the Document Details page (showed "N/A" instead of the selected version).
1516

1617
### Changed
1718

src/ui/src/components/document-details/DocumentDetails.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,11 +204,11 @@ const DocumentDetails = (): React.JSX.Element => {
204204
};
205205

206206
// Function to handle reprocess confirmation
207-
const handleReprocessConfirm = async () => {
208-
logger.debug('Reprocessing document', objectKey);
207+
const handleReprocessConfirm = async (version?: string) => {
208+
logger.debug('Reprocessing document', objectKey, 'with version', version);
209209
setIsReprocessLoading(true);
210210
try {
211-
const result = await reprocessDocuments([objectKey]);
211+
const result = await reprocessDocuments([objectKey], version);
212212
logger.debug('Reprocess result', result);
213213
// Close the modal
214214
setIsReprocessModalVisible(false);

0 commit comments

Comments
 (0)