Skip to content

Shows "Generating" for Faulted or Canceled Drafts #22

@jolierabideau

Description

@jolierabideau

The UI incorrectly indicates that a draft is "generating" even when the previous draft has a FAULTED or CANCELED status. I ran into this problem with the Scripture Forge Demo French extension, and TJ was able to confirm that the fetch response state is CANCELED.

Image

Steps to Reproduce:

  1. Open the Auto Drafts extension and locate a project (e.g., “Scripture Forge Demo French”) that has a previously faulted or canceled draft.
  2. Observe that the UI continues to show the spinner and “generating” status.
  3. Visit the Scripture Forge site to confirm there is no draft currently being generated.

Expected Behavior:

The UI should only show a “generating” status if the draft is actually being processed. It should not display this status for drafts in the FAULTED or CANCELED state.

Proposed Solution:

Update the condition that determines the “generating” status. This logic currently does not account for FAULTED or CANCELED states: https://github.com/sillsdev/scripture-forge-platform-extensions/blob/87bb25939fbe78551c1d46a6a1883a352f143c01/src/scripture-forge/src/home/project-table.component.tsx#L344C75-L344C84

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions