refactor-for-llama-parse #17

Merged
aetos merged 5 commits from refactor-for-llama-parse into main 2026-08-23 16:58:33 +00:00
Owner

MR: LlamaParse pipeline support, fetch request deletion, and UX improvements

Source branch: refactor-for-llama-parse
Target branch: main

Summary

This MR adds support for the llama_parse pipeline type across fetch requests, introduces delete functionality for fetch requests (from both the list and detail pages), and navigates to the detail page after a successful create.

Changes

Features

  • LlamaParse pipeline support (22e6603)

    • Renamed pipeline type llama_parserllama_parse in fetch-requests.models.ts to match the backend enum.
    • Updated pipeline progress computation in PipelineStepper for the new step naming.
  • Delete fetch requests (8694537)

    • List page: added a delete icon button on each row with confirmation dialog; disabled while the request is processing.
    • Detail page: added a Delete action in the header section with confirmation; redirects back to the list on success.
    • Deletion warns that all associated expenses and ambiguities will be removed.
    • Success/error feedback via toast notifications using formatApiError.
  • Navigate after create (c6622d4)

    • After successfully creating a fetch request, the user is now redirected to its detail page instead of staying on the form.

Refactoring / Cleanup

  • Drop dead llama_extract SSE step (c585b62)
    • Removed unused SSE handling for the obsolete llama_extract step.

Chores

  • Added tsconfig.tsbuildinfo to .gitignore (1c5d8ed).

Files changed

File Change
.gitignore Ignore tsconfig.tsbuildinfo
src/FetchRequest/FetchRequestCreate.tsx Row-level delete in list; navigate to detail after create
src/FetchRequest/FetchRequestDetail.tsx Delete action with confirm + redirect
src/FetchRequest/components/PipelineStepper.tsx Progress calc adjustments
src/features/fetch-requests/fetch-requests.models.ts PipelineType: llama_parserllama_parse
# MR: LlamaParse pipeline support, fetch request deletion, and UX improvements **Source branch:** `refactor-for-llama-parse` **Target branch:** `main` ## Summary This MR adds support for the `llama_parse` pipeline type across fetch requests, introduces delete functionality for fetch requests (from both the list and detail pages), and navigates to the detail page after a successful create. ## Changes ### Features - **LlamaParse pipeline support** (`22e6603`) - Renamed pipeline type `llama_parser` → `llama_parse` in `fetch-requests.models.ts` to match the backend enum. - Updated pipeline progress computation in `PipelineStepper` for the new step naming. - **Delete fetch requests** (`8694537`) - List page: added a delete icon button on each row with confirmation dialog; disabled while the request is processing. - Detail page: added a Delete action in the header section with confirmation; redirects back to the list on success. - Deletion warns that all associated expenses and ambiguities will be removed. - Success/error feedback via toast notifications using `formatApiError`. - **Navigate after create** (`c6622d4`) - After successfully creating a fetch request, the user is now redirected to its detail page instead of staying on the form. ### Refactoring / Cleanup - **Drop dead llama_extract SSE step** (`c585b62`) - Removed unused SSE handling for the obsolete `llama_extract` step. ### Chores - Added `tsconfig.tsbuildinfo` to `.gitignore` (`1c5d8ed`). ## Files changed | File | Change | | --- | --- | | `.gitignore` | Ignore `tsconfig.tsbuildinfo` | | `src/FetchRequest/FetchRequestCreate.tsx` | Row-level delete in list; navigate to detail after create | | `src/FetchRequest/FetchRequestDetail.tsx` | Delete action with confirm + redirect | | `src/FetchRequest/components/PipelineStepper.tsx` | Progress calc adjustments | | `src/features/fetch-requests/fetch-requests.models.ts` | `PipelineType`: `llama_parser` → `llama_parse` |
aetos added 5 commits 2026-08-23 16:55:01 +00:00
- Fix PipelineType union: "llama_parser" → "llama_parse" (matches backend enum)
- Add "llama_extract" to SSEEventStep union
- PipelineStepper: advance Extract stage on llama_extract events

Dropdown/badge rendering is OpenAPI-spec-driven and picks the new value up
automatically; no other changes required.
- Detail page: red Delete button beside Retry (disabled while processing or
  in-flight), confirm dialog, toast feedback, navigates back to the list
- List rows: per-card delete IconButton with stopPropagation, disabled while
  processing; reloads after success
- Backend cascades linked expenses + ambiguities and evicts the expenses
  response cache on delete
llama_parse FRs now emit the standard raw_lines/txn_blocks/txn_dicts events,
so remove the special-cased step from SSEEventStep and stepper progress calc.
aetos merged commit 9377460e79 into main 2026-08-23 16:58:33 +00:00
aetos deleted branch refactor-for-llama-parse 2026-08-23 16:58:33 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: apps/khata-ui#17
No description provided.