diff --git a/releases/unreleased/update-workspace-when-identities-are-split.yml b/releases/unreleased/update-workspace-when-identities-are-split.yml new file mode 100644 index 00000000..d3c5a09f --- /dev/null +++ b/releases/unreleased/update-workspace-when-identities-are-split.yml @@ -0,0 +1,9 @@ +--- +title: Update workspace when identities are split +category: fixed +author: Eva Millán +issue: 919 +notes: > + When an individual's identities are split, they are shown in the workspace, + but they were only shown the first time. The workspace is now updated + with the new individuals every time. diff --git a/ui/src/components/IndividualCard.vue b/ui/src/components/IndividualCard.vue index 13b8a292..3b573ed9 100644 --- a/ui/src/components/IndividualCard.vue +++ b/ui/src/components/IndividualCard.vue @@ -64,7 +64,9 @@ icon="mdi-magnify-plus-outline" v-bind="props" data-cy="expand-button" + aria-label="Expand information" @mousedown.stop + @keyup.stop /> @@ -81,6 +83,7 @@ icon="mdi-close" density="compact" variant="text" + aria-label="Remove" @click.stop="$emit('remove')" @mousedown.stop /> diff --git a/ui/src/components/WorkSpace.vue b/ui/src/components/WorkSpace.vue index e102a78d..4830cc68 100644 --- a/ui/src/components/WorkSpace.vue +++ b/ui/src/components/WorkSpace.vue @@ -14,50 +14,31 @@ Workspace
- - - Merge selected - - - - Clear space - + + mdi-call-merge + Merge + + + mdi-cancel + Clear +
- - +
    +
  • - - +
  • +
mdi-lightbulb-on-outline

@@ -240,6 +223,7 @@ export default { remove: fromUuids, }); this.$logger.debug("Merged individuals", { fromUuids, toUuid }); + this.selectedIndividuals = []; } this.dialog.open = false; }, @@ -330,13 +314,19 @@ export default { }, }, watch: { - individuals(value) { - this.savedIndividuals = value; + individuals: { + handler(value) { + this.savedIndividuals = value; + }, + deep: true, }, - savedIndividuals(value) { - if (value) { - this.$emit("updateStore", value); - } + savedIndividuals: { + handler(value) { + if (value) { + this.$emit("updateStore", value); + } + }, + deep: true, }, }, }; @@ -344,17 +334,23 @@ export default { diff --git a/ui/tests/unit/__snapshots__/storybook.spec.js.snap b/ui/tests/unit/__snapshots__/storybook.spec.js.snap index 215d8a57..ea5e3336 100644 --- a/ui/tests/unit/__snapshots__/storybook.spec.js.snap +++ b/ui/tests/unit/__snapshots__/storybook.spec.js.snap @@ -6168,6 +6168,7 @@ exports[`Storybook Tests IndividualCard Closable 1`] = ` - - - - - - - - - - -

-
+
  • -
    +
  • +
  • +
  • -
    + @@ -35272,13 +35283,10 @@ exports[`Storybook Tests WorkSpace DragAndDrop 1`] = ` Workspace
    - - - - - - - - - - - -