@@ -208,21 +327,38 @@
@@ -238,58 +374,104 @@
Email Address(es)
-
-
Add Email
+
+ Add Email
+
Social Media
-
-
Add Social Media
+
+ Add Social Media
+
-
diff --git a/src/app/core/components/public-settings/public-settings.component.ts b/src/app/core/components/public-settings/public-settings.component.ts
index 74e89c8a1..518481c76 100644
--- a/src/app/core/components/public-settings/public-settings.component.ts
+++ b/src/app/core/components/public-settings/public-settings.component.ts
@@ -25,6 +25,7 @@ export class PublicSettingsComponent implements OnInit {
public archiveTypes: { value: string; name: string }[] = [
{ value: 'type.archive.group', name: 'Group' },
+ { value: 'type.archive.family', name: 'Group' },
{
value: 'type.archive.organization',
name: 'Organization',
diff --git a/src/app/gallery/components/featured-archive/featured-archive.component.spec.ts b/src/app/gallery/components/featured-archive/featured-archive.component.spec.ts
index ce6f68813..75428ffbd 100644
--- a/src/app/gallery/components/featured-archive/featured-archive.component.spec.ts
+++ b/src/app/gallery/components/featured-archive/featured-archive.component.spec.ts
@@ -59,6 +59,7 @@ describe('FeaturedArchiveComponent', () => {
expectClassnameForArchiveType('type.archive.person', 'personal');
expectClassnameForArchiveType('type.archive.group', 'group');
+ expectClassnameForArchiveType('type.archive.family', 'group');
expectClassnameForArchiveType('type.archive.organization', 'organization');
expectClassnameForArchiveType('type.archive.nonprofit', 'organization');
});
diff --git a/src/app/gallery/components/featured-archive/featured-archive.component.ts b/src/app/gallery/components/featured-archive/featured-archive.component.ts
index f65105f48..1cb0c70bf 100644
--- a/src/app/gallery/components/featured-archive/featured-archive.component.ts
+++ b/src/app/gallery/components/featured-archive/featured-archive.component.ts
@@ -21,7 +21,10 @@ export class FeaturedArchiveComponent implements OnInit {
const classes = ['featured-archive'];
if (this.archive.type === 'type.archive.person') {
classes.push('personal');
- } else if (this.archive.type === 'type.archive.group') {
+ } else if (
+ this.archive.type === 'type.archive.group' ||
+ this.archive.type === 'type.archive.family'
+ ) {
classes.push('group');
} else {
classes.push('organization');
diff --git a/src/app/gallery/pipes/archive-type-name.pipe.spec.ts b/src/app/gallery/pipes/archive-type-name.pipe.spec.ts
index b7e31c099..601e0d354 100644
--- a/src/app/gallery/pipes/archive-type-name.pipe.spec.ts
+++ b/src/app/gallery/pipes/archive-type-name.pipe.spec.ts
@@ -17,6 +17,7 @@ describe('ArchiveTypeNamePipe', () => {
expectNameForType('type.archive.person', 'Personal Archive');
expectNameForType('type.archive.group', 'Group Archive');
+ expectNameForType('type.archive.family', 'Group Archive');
expectNameForType('type.archive.organization', 'Organizational Archive');
expectNameForType('type.archive.nonprofit', 'Organizational Archive');
});
diff --git a/src/app/gallery/pipes/archive-type-name.pipe.ts b/src/app/gallery/pipes/archive-type-name.pipe.ts
index 7187286d7..c6c4ac3aa 100644
--- a/src/app/gallery/pipes/archive-type-name.pipe.ts
+++ b/src/app/gallery/pipes/archive-type-name.pipe.ts
@@ -15,6 +15,7 @@ export class ArchiveTypeNamePipe implements PipeTransform {
case 'type.archive.person':
return 'Personal';
case 'type.archive.group':
+ case 'type.archive.family':
return 'Group';
case 'type.archive.organization':
case 'type.archive.nonprofit':
diff --git a/src/app/gallery/services/featured-archive.service.spec.ts b/src/app/gallery/services/featured-archive.service.spec.ts
index 21833670e..8569da939 100644
--- a/src/app/gallery/services/featured-archive.service.spec.ts
+++ b/src/app/gallery/services/featured-archive.service.spec.ts
@@ -1,4 +1,4 @@
-/* @format */
+ /* @format */
import { TestBed } from '@angular/core/testing';
import {
HttpClientTestingModule,
diff --git a/src/app/models/archive-vo.ts b/src/app/models/archive-vo.ts
index 5f118de03..c03a27b4a 100644
--- a/src/app/models/archive-vo.ts
+++ b/src/app/models/archive-vo.ts
@@ -1,3 +1,4 @@
+/* @format */
import { BaseVO, DynamicListChild } from '@models/base-vo';
import { FolderVO } from '@models/folder-vo';
import { RecordVO } from '@models/record-vo';
@@ -8,6 +9,7 @@ import { ItemVO } from '.';
export type ArchiveType =
| 'type.archive.person'
| 'type.archive.group'
+ | 'type.archive.family'
| 'type.archive.organization'
| 'type.archive.nonprofit';
diff --git a/src/app/onboarding/components/archive-type-select/archive-type-select.component.ts b/src/app/onboarding/components/archive-type-select/archive-type-select.component.ts
index 406408f01..60bc08799 100644
--- a/src/app/onboarding/components/archive-type-select/archive-type-select.component.ts
+++ b/src/app/onboarding/components/archive-type-select/archive-type-select.component.ts
@@ -25,6 +25,7 @@ export class ArchiveTypeSelectComponent {
icons = {
'type.archive.person': 'assets/svg/onboarding/archive-person.svg',
'type.archive.group': 'assets/svg/onboarding/archive-group.svg',
+ 'type.archive.family': 'assets/svg/onboarding/archive-group.svg',
'type.archive.organization':
'assets/svg/onboarding/archive-organization.svg',
};
@@ -32,6 +33,7 @@ export class ArchiveTypeSelectComponent {
altTexts = {
'type.archive.person': 'Person Archive',
'type.archive.group': 'Group Archive',
+ 'type.archive.family': 'Group Archive',
'type.archive.organization': 'Organization Archive',
};
diff --git a/src/app/onboarding/shared/onboarding-screen.ts b/src/app/onboarding/shared/onboarding-screen.ts
index 0f3d5874f..cafbc35f2 100644
--- a/src/app/onboarding/shared/onboarding-screen.ts
+++ b/src/app/onboarding/shared/onboarding-screen.ts
@@ -110,18 +110,33 @@ export const archiveOptions = [
text: 'An individual',
type: OnboardingTypes.individual,
},
- {
- value: 'type.archive.group',
+ // {
+ // value: 'type.archive.group',
+ // text: 'My family in the present',
+ // type: OnboardingTypes.family,
+ // },
+ // {
+ // value: 'type.archive.group',
+ // text: "My family's history",
+ // type: OnboardingTypes.famhist,
+ // },
+ // {
+ // value: 'type.archive.group',
+ // text: "A community I'm part of",
+ // type: OnboardingTypes.community,
+ // },
+ {
+ value: 'type.archive.family',
text: 'My family in the present',
type: OnboardingTypes.family,
},
{
- value: 'type.archive.group',
+ value: 'type.archive.family',
text: "My family's history",
type: OnboardingTypes.famhist,
},
{
- value: 'type.archive.group',
+ value: 'type.archive.family',
text: "A community I'm part of",
type: OnboardingTypes.community,
},
diff --git a/src/app/shared/components/new-archive-form/new-archive-form.component.ts b/src/app/shared/components/new-archive-form/new-archive-form.component.ts
index 74cba8a9b..8a972a6f2 100644
--- a/src/app/shared/components/new-archive-form/new-archive-form.component.ts
+++ b/src/app/shared/components/new-archive-form/new-archive-form.component.ts
@@ -14,9 +14,13 @@ const ARCHIVE_TYPES: { text: string, value: ArchiveType }[] = [
text: 'Person',
value: 'type.archive.person'
},
+ // {
+ // text: 'Group',
+ // value: 'type.archive.group'
+ // },
{
text: 'Group',
- value: 'type.archive.group'
+ value: 'type.archive.family'
},
{
text: 'Organization',
From 6754ad3555c9ac1a0df89ff5e94248638f7ee4a7 Mon Sep 17 00:00:00 2001
From: crisnicandrei <62384997+crisnicandrei@users.noreply.github.com>
Date: Mon, 26 Feb 2024 17:00:05 +0200
Subject: [PATCH 6/8] prettier
---
src/app/gallery/services/featured-archive.service.spec.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/app/gallery/services/featured-archive.service.spec.ts b/src/app/gallery/services/featured-archive.service.spec.ts
index 8569da939..21833670e 100644
--- a/src/app/gallery/services/featured-archive.service.spec.ts
+++ b/src/app/gallery/services/featured-archive.service.spec.ts
@@ -1,4 +1,4 @@
- /* @format */
+/* @format */
import { TestBed } from '@angular/core/testing';
import {
HttpClientTestingModule,
From 1526890062610caa36f4622b11ef9919ca0fd821 Mon Sep 17 00:00:00 2001
From: crisnicandrei <62384997+crisnicandrei@users.noreply.github.com>
Date: Thu, 29 Feb 2024 10:54:45 +0200
Subject: [PATCH 7/8] PER-8903
Removed duplicate group entry + changed from family to group when creating a new archive
---
.../public-settings.component.ts | 1 -
.../onboarding/shared/onboarding-screen.ts | 23 ++---------
.../new-archive-form.component.ts | 41 +++++++++++--------
3 files changed, 27 insertions(+), 38 deletions(-)
diff --git a/src/app/core/components/public-settings/public-settings.component.ts b/src/app/core/components/public-settings/public-settings.component.ts
index 518481c76..74e89c8a1 100644
--- a/src/app/core/components/public-settings/public-settings.component.ts
+++ b/src/app/core/components/public-settings/public-settings.component.ts
@@ -25,7 +25,6 @@ export class PublicSettingsComponent implements OnInit {
public archiveTypes: { value: string; name: string }[] = [
{ value: 'type.archive.group', name: 'Group' },
- { value: 'type.archive.family', name: 'Group' },
{
value: 'type.archive.organization',
name: 'Organization',
diff --git a/src/app/onboarding/shared/onboarding-screen.ts b/src/app/onboarding/shared/onboarding-screen.ts
index cafbc35f2..0f3d5874f 100644
--- a/src/app/onboarding/shared/onboarding-screen.ts
+++ b/src/app/onboarding/shared/onboarding-screen.ts
@@ -110,33 +110,18 @@ export const archiveOptions = [
text: 'An individual',
type: OnboardingTypes.individual,
},
- // {
- // value: 'type.archive.group',
- // text: 'My family in the present',
- // type: OnboardingTypes.family,
- // },
- // {
- // value: 'type.archive.group',
- // text: "My family's history",
- // type: OnboardingTypes.famhist,
- // },
- // {
- // value: 'type.archive.group',
- // text: "A community I'm part of",
- // type: OnboardingTypes.community,
- // },
- {
- value: 'type.archive.family',
+ {
+ value: 'type.archive.group',
text: 'My family in the present',
type: OnboardingTypes.family,
},
{
- value: 'type.archive.family',
+ value: 'type.archive.group',
text: "My family's history",
type: OnboardingTypes.famhist,
},
{
- value: 'type.archive.family',
+ value: 'type.archive.group',
text: "A community I'm part of",
type: OnboardingTypes.community,
},
diff --git a/src/app/shared/components/new-archive-form/new-archive-form.component.ts b/src/app/shared/components/new-archive-form/new-archive-form.component.ts
index 8a972a6f2..2d11877d1 100644
--- a/src/app/shared/components/new-archive-form/new-archive-form.component.ts
+++ b/src/app/shared/components/new-archive-form/new-archive-form.component.ts
@@ -1,4 +1,12 @@
-import { Component, ElementRef, EventEmitter, Input, OnInit, Output, ViewChild } from '@angular/core';
+import {
+ Component,
+ ElementRef,
+ EventEmitter,
+ Input,
+ OnInit,
+ Output,
+ ViewChild,
+} from '@angular/core';
import { ArchiveVO, ArchiveType } from '@models/archive-vo';
import { ApiService } from '@shared/services/api/api.service';
import { RELATION_OPTIONS } from '@shared/services/prompt/prompt.service';
@@ -9,29 +17,25 @@ export interface ArchiveFormData {
relationType?: string;
}
-const ARCHIVE_TYPES: { text: string, value: ArchiveType }[] = [
+const ARCHIVE_TYPES: { text: string; value: ArchiveType }[] = [
{
text: 'Person',
- value: 'type.archive.person'
+ value: 'type.archive.person',
},
- // {
- // text: 'Group',
- // value: 'type.archive.group'
- // },
{
text: 'Group',
- value: 'type.archive.family'
+ value: 'type.archive.group',
},
{
text: 'Organization',
- value: 'type.archive.organization'
+ value: 'type.archive.organization',
},
];
@Component({
selector: 'pr-new-archive-form',
templateUrl: './new-archive-form.component.html',
- styleUrls: ['./new-archive-form.component.scss']
+ styleUrls: ['./new-archive-form.component.scss'],
})
export class NewArchiveFormComponent implements OnInit {
@Input() showRelations: boolean = false;
@@ -43,9 +47,7 @@ export class NewArchiveFormComponent implements OnInit {
public waiting: boolean = false;
public formData: ArchiveFormData;
- constructor(
- private api: ApiService,
- ) {
+ constructor(private api: ApiService) {
this.formData = {
fullName: '',
type: null,
@@ -53,11 +55,13 @@ export class NewArchiveFormComponent implements OnInit {
};
}
- ngOnInit(): void {
- }
+ ngOnInit(): void {}
public isFormValid() {
- return this.fullNameRef?.nativeElement.validity.valid && this.formData.type !== null;
+ return (
+ this.fullNameRef?.nativeElement.validity.valid &&
+ this.formData.type !== null
+ );
}
public async onSubmit() {
@@ -66,7 +70,9 @@ export class NewArchiveFormComponent implements OnInit {
}
try {
this.waiting = true;
- const response = await this.api.archive.create(new ArchiveVO(this.formData));
+ const response = await this.api.archive.create(
+ new ArchiveVO(this.formData)
+ );
const newArchive = response.getArchiveVO();
this.success.emit(newArchive);
} catch (err) {
@@ -75,5 +81,4 @@ export class NewArchiveFormComponent implements OnInit {
this.waiting = false;
}
}
-
}
From 4e36867c4da849aeea61331cc3a17fc2ffbd80d5 Mon Sep 17 00:00:00 2001
From: crisnicandrei <62384997+crisnicandrei@users.noreply.github.com>
Date: Fri, 1 Mar 2024 10:12:52 +0200
Subject: [PATCH 8/8] PER-8903-pass-group-instead-of-family
Make sure that all family archives are converted to group to display the dropdown correctly
---
.../components/public-settings/public-settings.component.ts | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/app/core/components/public-settings/public-settings.component.ts b/src/app/core/components/public-settings/public-settings.component.ts
index 74e89c8a1..f061682b9 100644
--- a/src/app/core/components/public-settings/public-settings.component.ts
+++ b/src/app/core/components/public-settings/public-settings.component.ts
@@ -41,7 +41,10 @@ export class PublicSettingsComponent implements OnInit {
ngOnInit(): void {
this.allowDownloadsToggle = +this.archive.allowPublicDownload;
- this.archiveType = this.archive.type;
+ this.archiveType =
+ this.archive.type === 'type.archive.family'
+ ? 'type.archive.group'
+ : this.archive.type;
}
public async onAllowDownloadsChange() {