-
Notifications
You must be signed in to change notification settings - Fork 752
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Track merge and unmerge operations in frontend (#2532)
Co-authored-by: Gasper Grom <[email protected]>
- Loading branch information
1 parent
c100bab
commit 363009e
Showing
21 changed files
with
346 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
frontend/src/modules/contributor/components/shared/contributor-syncing-activities.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<template> | ||
<div v-if="inProgress" class="mr-4 z-50"> | ||
<lf-tooltip | ||
placement="bottom" | ||
:content="`Re-syncing all the activities as this profile was recently | ||
${ props.contributor.activitySycning?.operationType === 'merge' ? 'merged' : 'unmerged' }. This process may take some minutes.`" | ||
> | ||
<div class="flex items-center gap-1.5 cursor-default"> | ||
<lf-icon name="loader-4-fill" :size="16" class="text-secondary-400 animate-spin" /> | ||
<p class="text-small text-secondary-400 font-semibold"> | ||
Syncing activities... | ||
</p> | ||
</div> | ||
</lf-tooltip> | ||
</div> | ||
</template> | ||
<script setup lang="ts"> | ||
import LfTooltip from '@/ui-kit/tooltip/Tooltip.vue'; | ||
import { Contributor } from '@/modules/contributor/types/Contributor'; | ||
import { computed } from 'vue'; | ||
import { MergeActionState } from '@/shared/modules/merge/types/MemberActions'; | ||
import LfIcon from '@/ui-kit/icon/Icon.vue'; | ||
const props = defineProps<{ | ||
contributor: Contributor, | ||
}>(); | ||
const inProgress = computed(() => props.contributor.activitySycning?.state === MergeActionState.IN_PROGRESS); | ||
</script> | ||
<script lang="ts"> | ||
export default { | ||
name: 'LfContributorSyncingActivities', | ||
}; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
frontend/src/modules/organization/components/shared/organization-syncing-activities.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<template> | ||
<div v-if="props.organization.activitySycning?.state === MergeActionState.IN_PROGRESS" class="mr-4 z-50"> | ||
<lf-tooltip | ||
placement="bottom" | ||
:content="`Re-syncing all the activities as this organization was recently | ||
${props.organization.activitySycning?.operationType === 'merge' ? 'merged' : 'unmerged'}. This process may take some minutes.`" | ||
> | ||
<div class="flex items-center gap-1.5 cursor-default"> | ||
<lf-icon name="loader-4-fill" :size="16" class="text-secondary-400 animate-spin" /> | ||
<p class="text-small text-secondary-400 font-semibold"> | ||
Syncing activities... | ||
</p> | ||
</div> | ||
</lf-tooltip> | ||
</div> | ||
</template> | ||
<script setup lang="ts"> | ||
import LfTooltip from '@/ui-kit/tooltip/Tooltip.vue'; | ||
import { MergeActionState } from '@/shared/modules/merge/types/MemberActions'; | ||
import LfIcon from '@/ui-kit/icon/Icon.vue'; | ||
import { Organization } from '@/modules/organization/types/Organization'; | ||
const props = defineProps<{ | ||
organization: Organization, | ||
}>(); | ||
</script> | ||
<script lang="ts"> | ||
export default { | ||
name: 'LfOrganizationSyncingActivities', | ||
}; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.