Skip to content

Commit 79a0bd5

Browse files
Merge branch 'auto-develop' into develop-G7
2 parents 0b319a2 + 4b94982 commit 79a0bd5

44 files changed

Lines changed: 2097 additions & 197 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

back-end/src/base/users/dto/users.dto.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ class UserProfileDTO {
5757

5858
@IsOptional()
5959
@IsString({ message: 'Invalid type format' })
60-
@Length(0, 80, { message: 'Profile picture link must be between 0 and 80 characters' })
60+
@Length(0, 120, { message: 'Profile picture link must be between 0 and 120 characters' })
6161
@Matches(STRICT_API_URL, { message: 'Your profile picture must be a valid url' })
6262
picture: string;
6363

6464
@IsOptional()
6565
@IsString({ message: 'Invalid type format' })
66-
@Length(0, 80, { message: 'Profile background link be between 0 and 80 characters' })
66+
@Length(0, 120, { message: 'Profile background link be between 0 and 120 characters' })
6767
@Matches(STRICT_API_URL, { message: 'Your profile background must be a valid url' })
6868
background: string;
6969

@@ -118,7 +118,7 @@ class UserBusinessProfileDTO {
118118
@IsOptional()
119119
@IsString({ message: 'Invalid type format' })
120120
@Matches(STRICT_API_URL, { message: 'Your company logo must be a valid url' })
121-
@Length(0, 80, { message: 'Company logo link be between 0 and 80 characters' })
121+
@Length(0, 120, { message: 'Company logo link be between 0 and 120 characters' })
122122
companyLogo: string;
123123

124124
@IsOptional()
65.4 KB
Loading

front-end/public/empathy_map.webp

202 KB
Loading
53.6 KB
Loading

front-end/public/persona.webp

668 KB
Loading
260 KB
Loading

front-end/src/api/agility-req.ts

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { AgilityTemplateMeta } from '@/store/interfaces/agility.interface';
66
import { Status } from '@/store/interfaces/axios.interface';
77
import { AxiosResponse } from 'axios';
88
import { UserCanvasList } from '@/store/interfaces/user.interface';
9+
import { BlueprintKey } from '@/lib/pixi-tools-v2/types/pixi-enums';
910

1011
export const apiTryGetTemplatesMeta = () => {
1112
// Call
@@ -15,40 +16,40 @@ export const apiTryGetTemplatesMeta = () => {
1516
status: 'ok',
1617
metaTemplates: [
1718
{
18-
key: 'something',
19-
url: 'https://bluemelondesign.com/wp-content/uploads/2020/11/Body-Image-1-1024x597.png',
20-
name: 'empathy map',
21-
isNew: false,
22-
type: 'empathymap',
23-
},
24-
{
25-
key: 'something',
26-
url: 'https://slidemodel.com/wp-content/uploads/01-preparing-an-elevator-pitch-cover.png',
27-
name: 'elevator pitch',
19+
key: BlueprintKey.IMPACT_MAPPING,
20+
url: '/impact_mapping.webp',
21+
name: 'impact mapping',
2822
isNew: true,
29-
type: 'elevatorpitch',
23+
type: 'impactmapping',
3024
},
3125
{
32-
key: 'something',
33-
url: 'https://draft.io/assets/site/examples/light/en/1200/example-impact-mapping-3e12e17fb4ab1cdd63cd08c3561c3cda.webp',
34-
name: 'impact mapping',
26+
key: BlueprintKey.EMPATHY_MAP,
27+
url: '/empathy_map.webp',
28+
name: 'empathy map',
3529
isNew: true,
36-
type: 'impactmapping',
30+
type: 'empathymap',
3731
},
3832
{
39-
key: 'something',
40-
url: 'https://www.imagescreations.fr/wp-content/uploads/persona_emma-1200x800.jpg',
33+
key: BlueprintKey.PERSONA,
34+
url: '/persona.webp',
4135
name: 'personas',
4236
isNew: true,
4337
type: 'personas',
4438
},
4539
{
46-
key: 'something',
47-
url: 'https://www.imagescreations.fr/wp-content/uploads/persona_emma-1200x800.jpg',
40+
key: BlueprintKey.PRUNE_THE_PROJECT_TREE,
41+
url: '/prune_the_project_tree.webp',
4842
name: 'prune the project tree',
4943
isNew: true,
5044
type: 'prunetheprojecttree',
5145
},
46+
{
47+
key: BlueprintKey.ELEVATOR_PITCH,
48+
url: '/elevator_pitch.webp',
49+
name: 'elevator pitch',
50+
isNew: true,
51+
type: 'elevatorpitch',
52+
},
5253
],
5354
},
5455
});

front-end/src/components/agility/AgilityCanvas.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ const projectLoading = computed(() => agilityStore.projectLoading);
3636
const project = computed(() => agilityStore.currentProject);
3737
3838
const canvas = ref<HTMLCanvasElement>();
39-
const roomId = ref(route.path.match(/[^/]+$/)[0]);
40-
const loading = ref(projectLoading.value || project.value.length > 0);
39+
const roomId = ref(route.path.match(/[^/]+(?=\?)|[^/]+$/)[0]);
40+
const loading = computed(() => projectLoading.value || projectStore.internalLoading);
4141
let timeout: NodeJS.Timeout = null;
4242
let rawScene: Scene = null;
4343
@@ -98,7 +98,7 @@ const autoFillProject = async () => {
9898
9999
await processBatchesWithDelay();
100100
linkLines();
101-
loading.value = false;
101+
projectStore.internalLoading = false;
102102
}
103103
}
104104
@@ -128,6 +128,7 @@ const linkLines = () => {
128128
129129
watch(projectLoading, val => {
130130
if(!val) {
131+
projectStore.internalLoading = true;
131132
autoFillProject();
132133
}
133134
}, { immediate: true })

front-end/src/components/agility/AgilityTemplateDisplay.vue

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
>
66
<h3 class="text-sm text-[#5c5f73] dark:text-dark-font font-bold">Available blueprints</h3>
77
<div class="w-full h-fit flex gap-4 overflow-x-scroll pt-3">
8-
<AgilityTemplateCard name="New project" @click="startNewProject('default')" />
8+
<AgilityTemplateCard name="New project" @click="startNewProject(BlueprintKey.DEFAULT)" />
99
<AgilityTemplateCard
1010
v-for="(template, key) in metaTemplates"
1111
:name="`+ ${template.name}`"
@@ -25,15 +25,20 @@ import { useRouter } from 'vue-router';
2525
2626
import { useAgilityStore } from '@/store/modules/agility.store';
2727
import AgilityTemplateCard from '@/components/agility/cards/AgilityTemplateCard.vue';
28+
import { BlueprintKey } from '@/lib/pixi-tools-v2/types/pixi-enums';
29+
import { useProjectStore } from '@/store/modules/project.store';
2830
2931
const router = useRouter();
3032
const agilityStore = useAgilityStore();
33+
const projectStore = useProjectStore();
3134
const metaTemplates = computed(() => agilityStore.metaTemplates);
3235
33-
const startNewProject = async (key: string) => {
36+
const startNewProject = async (key: BlueprintKey) => {
3437
const roomId = await agilityStore.tryCreateNewProject();
3538
if(!roomId) return;
3639
40+
if(key !== BlueprintKey.DEFAULT)
41+
projectStore.baseTemplate = key;
3742
router.push(`/app/agility/project/${roomId}`);
3843
};
3944
</script>

front-end/src/components/agility/UI/ManageUser.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import AccessUser from '@/components/agility/cards/AccessUser.vue';
3434
3535
const route = useRoute();
3636
const accessUsers = ref<Array<UserCanvasList>>([]);
37-
const roomId = ref(route.path.match(/[^/]+$/)[0]);
37+
const roomId = ref(route.path.match(/[^/]+(?=\?)|[^/]+$/)[0]);
3838
3939
const emit = defineEmits(['close']);
4040

0 commit comments

Comments
 (0)