Skip to content

Conversation

sBouzols
Copy link
Contributor

fix(SA,SE,CC): reset exportSuccessful states when context like study, node or rootNetwork change as well as resultType, computation type or tab change.

refactor(SE): move export CSV Button in a separeted component like for other computations

…y, node or rootNetwork change as well as resultType, computation type or tab change.

refactor(SE): move export CSV Button in a separeted component like for other computations

Signed-off-by: sBouzols <[email protected]>
Copy link
Contributor

@FranckLecuyer FranckLecuyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests:
no reset is done on sensi result column sort change
no reset is done when switching to another tab (tree or spreadsheet tab), and returning to the currently result tab

…t CSV button status

fix(SE): Add `sortConfig` trigger to reset export CSV button status, for other computation types results are invalidated when sorting then the button is disabled and trigger a status reset.

Signed-off-by: sBouzols <[email protected]>
@sBouzols
Copy link
Contributor Author

Tests: no reset is done on sensi result column sort change no reset is done when switching to another tab (tree or spreadsheet tab), and returning to the currently result tab

fixed, please check again

@FranckLecuyer FranckLecuyer self-requested a review September 16, 2025 11:18
@souissimai
Copy link
Contributor

tested ok

…remove local duplicated component (#3274)

Signed-off-by: sBouzols <[email protected]>
@sBouzols sBouzols merged commit 0aa10d7 into fix_export_csv_export_button_status Sep 23, 2025
3 checks passed
@sBouzols sBouzols deleted the fix_export_csv_export_button_status_at_node_rn_change branch September 23, 2025 09:33
Copy link

sBouzols added a commit that referenced this pull request Sep 23, 2025
* fix(SA,SE,CC): reset `export successful` states when button is disabled which happen when results change or computation status change.
Remark: For other computation types (LF, State estim, Voltage init), we need more work in commons-ui on `CsvExport` component, to use `isDownloadLoading` and `isDownloadSuccessful` of the `ExportCsvButton` child component even if its direct export without backend requests
* Fix Export CSV Button success status for SA,SE,CC at context change (#3272)
* fix(SA,SE,CC): reset `exportSuccessful` states when context like study, node or rootNetwork change as well as resultType, computation type or tab change.
refactor(SE): move export CSV Button in a separeted component like for other computations
* fix(SA, SE, CC): from review add `appTabIndex` trigger to reset export CSV button status
* fix(SE): Add `sortConfig` trigger to reset export CSV button status, for other computation types results are invalidated when sorting then the button is disabled and trigger a status reset.
* refactor(SA,SE,CC): use `ExportCsvButton` component from commons-ui, remove local duplicated component (#3274)

Signed-off-by: sBouzols <[email protected]>
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.

4 participants