PromucFlow_constructor/app/client/src/selectors
Jacques Ikot 4c65938b72
fix: update template item to show loading indicator on selected template only (#29252)
## Description
This PR addresses the issue where the loading indicator is erroneously
triggered for all template cards when a user attempts to fork a single
template.

The proposed changes in this PR ensure that the loading indicator is
appropriately tied to the specific template selected by the user. By
isolating the indicator to the clicked template, we enhance the user
experience and eliminate any confusion related to the forking process.

#### PR fixes following issue(s)
Fixes #29135 

#### Media

#### Type of change
> Please delete options that are not relevant.
- Bug fix (non-breaking change which fixes an issue)

## Testing

#### How Has This Been Tested?
> Please describe the tests that you ran to verify your changes. Also
list any relevant details for your test configuration.
> Delete anything that is not relevant
- [x] Manual
- [ ] JUnit
- [ ] Jest
- [ ] Cypress
>
>
#### Test Plan
> Add Testsmith test cases links that relate to this PR
>
>
#### Issues raised during DP testing
> Link issues raised during DP testing for better visiblity and tracking
(copy link from comments dropped on this PR)
>
>
>
## Checklist:
#### Dev activity
- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] PR is being merged under a feature flag


#### QA activity:
- [ ] [Speedbreak
features](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#speedbreakers-)
have been covered
- [ ] Test plan covers all impacted features and [areas of
interest](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#areas-of-interest-)
- [ ] Test plan has been peer reviewed by project stakeholders and other
QA members
- [ ] Manually tested functionality on DP
- [ ] We had an implementation alignment call with stakeholders post QA
Round 2
- [ ] Cypress test cases have been added and approved by SDET/manual QA
- [ ] Added `Test Plan Approved` label after Cypress tests were reviewed
- [ ] Added `Test Plan Approved` label after JUnit tests were reviewed


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Implemented a new state management feature to track active template
operations, enhancing the user experience during template import and
forking processes.
- Introduced a new button state to prevent conflicting operations,
ensuring a smoother template handling experience.

- **Enhancements**
- Improved the visual feedback on the template interface with updated
button states to reflect ongoing operations.

- **Bug Fixes**
- Resolved an issue where users could initiate multiple conflicting
template operations simultaneously.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Rahul Barwal <rahul.barwal@appsmith.com>
2023-12-11 10:12:29 +00:00
..
actionSelectors.tsx chore: remove xml parser v3 as a default library (#28012) 2023-10-20 11:08:47 +05:30
activeEditorFieldSelectors.ts chore: Refactor debugger analytics for active fields (#28036) 2023-10-16 09:22:11 +05:30
analyticsSelectors.tsx chore: Removing feature flag for app level invites (#22650) 2023-04-26 12:48:16 +05:30
apiPaneSelectors.ts chore: action response view refactor (#29031) 2023-11-24 11:34:06 +05:30
appCollabSelectors.tsx chore: Clean up unused and completed feature flags (#23062) 2023-05-25 10:58:41 +05:30
appSettingsPaneSelectors.tsx [Chore]: App Sidebar Library Pane (#28332) 2023-11-03 10:54:58 +05:30
appThemingSelectors.tsx chore: upgrade to prettier v2 + enforce import types (#21013)Co-authored-by: Satish Gandham <hello@satishgandham.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com> 2023-03-16 17:11:47 +05:30
appViewSelectors.tsx chore: upgrade to prettier v2 + enforce import types (#21013)Co-authored-by: Satish Gandham <hello@satishgandham.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com> 2023-03-16 17:11:47 +05:30
authSelectors.tsx chore: upgrade to prettier v2 + enforce import types (#21013)Co-authored-by: Satish Gandham <hello@satishgandham.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com> 2023-03-16 17:11:47 +05:30
autoHeightSelectors.ts chore: upgrade to prettier v2 + enforce import types (#21013)Co-authored-by: Satish Gandham <hello@satishgandham.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com> 2023-03-16 17:11:47 +05:30
autoLayoutSelectors.tsx chore: Create layout system structure for Anvil and AnvilFlexComponent. (#27178) 2023-10-02 15:41:05 -04:00
canvasSelectors.ts feat: added anvil type for app layout (#27633) 2023-10-04 14:24:16 +05:30
crudInfoModalSelectors.ts chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
datasourceSelectors.ts chore: [App Sidebar] Data Pane (#28248) 2023-10-24 15:28:21 +05:30
dataTreeSelectors.ts chore: split is required to extend selectors in ee (#29173) 2023-11-28 19:50:54 +05:30
debuggerSelectors.test.ts chore: separated tree type into common file to be extended on EE (#27812) 2023-10-10 18:02:17 +05:30
debuggerSelectors.tsx feat: branch protection (#28526) 2023-11-03 22:43:36 +05:30
editorContextSelectors.ts chore: Splitting uiReducers to support modules on EE (#27580) 2023-09-25 10:23:01 +05:30
editorSelectors.tsx chore: refactor jsobject response & settings (#29475) 2023-12-09 20:24:43 +05:30
errorSelectors.tsx chore: upgrade to prettier v2 + enforce import types (#21013)Co-authored-by: Satish Gandham <hello@satishgandham.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com> 2023-03-16 17:11:47 +05:30
explorerSelector.ts chore: Splitting uiReducers to support modules on EE (#27580) 2023-09-25 10:23:01 +05:30
flattenedChildCanvasSelector.ts chore: Layout system wise restructuring of Canvas Widget (#27496) 2023-10-04 17:23:29 +05:30
focusHistorySelectors.ts chore: upgrade to prettier v2 + enforce import types (#21013)Co-authored-by: Satish Gandham <hello@satishgandham.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com> 2023-03-16 17:11:47 +05:30
formSelectors.ts chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
gitSyncSelectors.tsx fix: calling protected branches on sync (#28824) 2023-11-14 10:56:26 +05:30
globalSearchSelectors.tsx chore: upgrade to prettier v2 + enforce import types (#21013)Co-authored-by: Satish Gandham <hello@satishgandham.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com> 2023-03-16 17:11:47 +05:30
helpSelectors.tsx chore: upgrade to prettier v2 + enforce import types (#21013)Co-authored-by: Satish Gandham <hello@satishgandham.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com> 2023-03-16 17:11:47 +05:30
ideSelectors.tsx chore: Add an extra feature flag to control App sidebar rollout (#28876) 2023-11-15 16:49:41 +05:30
jsPaneSelectors.ts chore: Added context switching for pages pane (#29100) 2023-11-28 18:16:43 +05:30
layoutSystemSelectors.ts chore: Send applicationDetail in create application payload (#28272) 2023-10-24 14:59:23 +05:30
lintingSelectors.ts feat: show lint errors in async functions bound to sync fields (#21187) 2023-04-03 16:11:15 +05:30
mainCanvasSelectors.tsx feat: Add widget responsiveness and conversion algorithm (#21386) 2023-04-07 09:51:35 -04:00
navigationSelectors.ts feat: Improve error message for typeError (#27795) 2023-10-22 07:46:31 +01:00
onboardingSelectors.tsx changes in evaluation for EE - split (#27144) 2023-09-12 17:21:39 +05:30
oneClickBindingSelectors.tsx chore: Add analytics event to track telemetry is disabled & update properties for INVITE_USER event (#24042) 2023-06-06 02:57:40 +05:30
pageListSelectors.tsx chore: upgrade to prettier v2 + enforce import types (#21013)Co-authored-by: Satish Gandham <hello@satishgandham.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com> 2023-03-16 17:11:47 +05:30
pageSelectors.tsx feat: dsl migration with server (#28518) 2023-11-30 18:03:33 +05:30
propertyPaneSelectors.tsx chore: separated tree type into common file to be extended on EE (#27812) 2023-10-10 18:02:17 +05:30
queryPaneSelectors.ts chore: Added context switching for pages pane (#29100) 2023-11-28 18:16:43 +05:30
settingsSelectors.tsx chore: upgrade to prettier v2 + enforce import types (#21013)Co-authored-by: Satish Gandham <hello@satishgandham.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com> 2023-03-16 17:11:47 +05:30
tableFilterSelectors.tsx chore: upgrade to prettier v2 + enforce import types (#21013)Co-authored-by: Satish Gandham <hello@satishgandham.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com> 2023-03-16 17:11:47 +05:30
templatesSelectors.tsx fix: update template item to show loading indicator on selected template only (#29252) 2023-12-11 10:12:29 +00:00
themeSelectors.tsx chore: update eslint and dependencies then fix revealed errors (#27908) 2023-10-11 10:14:38 +03:00
tourSelectors.tsx chore: upgrade to prettier v2 + enforce import types (#21013)Co-authored-by: Satish Gandham <hello@satishgandham.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com> 2023-03-16 17:11:47 +05:30
ui.tsx chore: action editors refactor (#27972) 2023-10-17 10:53:55 +05:30
usersSelectors.tsx feat: make features call a blocking API call for page load (#27974) 2023-10-11 23:19:19 +05:30
websocketSelectors.ts chore: upgrade to prettier v2 + enforce import types (#21013)Co-authored-by: Satish Gandham <hello@satishgandham.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com> 2023-03-16 17:11:47 +05:30
widgetDragSelectors.ts feat: branch protection (#28526) 2023-11-03 22:43:36 +05:30
widgetEnhancementSelectors.ts chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
widgetReflowSelectors.tsx chore: upgrade to prettier v2 + enforce import types (#21013)Co-authored-by: Satish Gandham <hello@satishgandham.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com> 2023-03-16 17:11:47 +05:30
widgetSelectors.test.tsx fix: auto height limits container select (#18546) 2022-11-30 13:02:36 +05:30
widgetSelectors.ts feat: branch protection (#28526) 2023-11-03 22:43:36 +05:30