diff --git a/releases/unreleased/link-to-profile-in-individual-cards.yml b/releases/unreleased/link-to-profile-in-individual-cards.yml new file mode 100644 index 00000000..37958d83 --- /dev/null +++ b/releases/unreleased/link-to-profile-in-individual-cards.yml @@ -0,0 +1,8 @@ +--- +title: Link to profile in individual cards +category: added +author: Eva Millán +issue: 837 +notes: > + The name on the individuals cards now links to the + member's profile. diff --git a/ui/src/components/IndividualCard.vue b/ui/src/components/IndividualCard.vue index addc1ac1..17f8ca43 100644 --- a/ui/src/components/IndividualCard.vue +++ b/ui/src/components/IndividualCard.vue @@ -22,7 +22,13 @@ - {{ name || email }} + + {{ name || email }} + {{ enrollments[0].group.name }} diff --git a/ui/tests/unit/__snapshots__/storybook.spec.js.snap b/ui/tests/unit/__snapshots__/storybook.spec.js.snap index f03e338e..0f1012e9 100644 --- a/ui/tests/unit/__snapshots__/storybook.spec.js.snap +++ b/ui/tests/unit/__snapshots__/storybook.spec.js.snap @@ -3660,9 +3660,15 @@ exports[`Storyshots IndividualCard Closable 1`] = `
- - Tom Marvolo Riddle - + + + Tom Marvolo Riddle + +
@@ -3760,9 +3766,15 @@ exports[`Storyshots IndividualCard Default 1`] = `
- - Tom Marvolo Riddle - + + + Tom Marvolo Riddle + +
@@ -3847,9 +3859,15 @@ exports[`Storyshots IndividualCard Gravatar 1`] = `
- - Santiago Dueñas - + + + Santiago Dueñas + +
@@ -3934,9 +3952,15 @@ exports[`Storyshots IndividualCard Highlighted 1`] = `
- - Tom Marvolo Riddle - + + + Tom Marvolo Riddle + +
@@ -4021,9 +4045,15 @@ exports[`Storyshots IndividualCard No Name 1`] = `
- - triddle@example.net - + + + triddle@example.net + +
@@ -4108,9 +4138,15 @@ exports[`Storyshots IndividualCard Organization 1`] = `
- - Tom Marvolo Riddle - + + + Tom Marvolo Riddle + +
- - Tom Marvolo Riddle - + + + Tom Marvolo Riddle + +
@@ -4292,9 +4334,15 @@ exports[`Storyshots IndividualCard Selected 1`] = `
- - Tom Marvolo Riddle - + + + Tom Marvolo Riddle + +
@@ -4379,9 +4427,15 @@ exports[`Storyshots IndividualCard Single Initial 1`] = `
- - Voldemort - + + + Voldemort + +
@@ -4466,9 +4520,15 @@ exports[`Storyshots IndividualCard Sources 1`] = `
- - Tom Marvolo Riddle - + + + Tom Marvolo Riddle + +
@@ -4594,9 +4654,15 @@ exports[`Storyshots IndividualCard Sources And Organization 1`] = `
- - Tom Marvolo Riddle - + + + Tom Marvolo Riddle + +
- - Tom Marvolo Riddle - + + + Tom Marvolo Riddle + +
@@ -6583,9 +6655,15 @@ exports[`Storyshots IndividualsGrid Default 1`] = `
- - Harry Potter - + + + Harry Potter + +
@@ -6688,9 +6766,15 @@ exports[`Storyshots IndividualsGrid Default 1`] = `
- - Voldemort - + + + Voldemort + +
@@ -6773,9 +6857,15 @@ exports[`Storyshots IndividualsGrid Default 1`] = `
- - Hermione Granger - + + + Hermione Granger + +
@@ -6878,9 +6968,15 @@ exports[`Storyshots IndividualsGrid Default 1`] = `
- - Ambus Dumbledore - + + + Ambus Dumbledore + +
@@ -6973,9 +7069,15 @@ exports[`Storyshots IndividualsGrid Default 1`] = `
- - Ron Weasley - + + + Ron Weasley + +
@@ -7078,9 +7180,15 @@ exports[`Storyshots IndividualsGrid Default 1`] = `
- - Severus Snape - + + + Severus Snape + +
@@ -7183,9 +7291,15 @@ exports[`Storyshots IndividualsGrid Default 1`] = `
- - Hagrid - + + + Hagrid + +
@@ -7380,7 +7494,7 @@ exports[`Storyshots IndividualsTable Default 1`] = ` />