Skip to content

Conversation

@shreeyash07
Copy link
Collaborator

Changes

  • Add retrigger mutation in Region card
  • Add retrigger button in region card
  • Add polling for the refetchRegion due to background operation
  • Add disable condition for publish area button

This PR doesn't introduce any:

  • temporary files, auto-generated files or secret keys
  • build works
  • eslint issues
  • typescript issues
  • codegen errors
  • console.log meant for debugging
  • typos
  • unwanted comments
  • conflict markers

This PR contains valid:

  • permission checks
  • translations

value: PartialAdminLevel;
isPublished?: boolean;
adminLevelOptions?: AdminLevelType[];
onRegionPublishSuccess: () => void;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Rename this appropriately

'Selected region retrigger successfully',
{ variant: 'success' },
);
onRegionPublishSuccess();
Copy link
Collaborator

Choose a reason for hiding this comment

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

rename this approriately

</>
)}
>
{region.status === 'FAILED' && (
Copy link
Collaborator

Choose a reason for hiding this comment

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

Check if the region is already published. If the region is already published this check is not necessary as the user won't/shouldn't be able to retrigger.

<IoTrashBinOutline />
</QuickActionConfirmButton>
<>
{region.status === 'FAILED' && (
Copy link
Collaborator

Choose a reason for hiding this comment

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

Check if the region is already published. If the region is already published this check is not necessary as the user won't/shouldn't be able to retrigger.

@shreeyash07 shreeyash07 force-pushed the features/retrigger-regions-geo-area branch 2 times, most recently from 3508c34 to e72147e Compare December 4, 2024 11:56
@AdityaKhatri AdityaKhatri force-pushed the features/retrigger-regions-geo-area branch from e72147e to 09cc81e Compare December 5, 2024 04:46
@subinasr subinasr force-pushed the features/retrigger-regions-geo-area branch from 09cc81e to 4b9da3c Compare December 5, 2024 08:27
@AdityaKhatri AdityaKhatri force-pushed the features/retrigger-regions-geo-area branch from 4b9da3c to 5ca9c26 Compare December 5, 2024 10:47
@AdityaKhatri AdityaKhatri merged commit 9667288 into develop Dec 5, 2024
5 checks passed
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