From 5376e784c6a835fd6b17473282aa5f9cb6dd83f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20TR=C3=89BEL=20=28Perso=29?= Date: Fri, 22 May 2026 14:40:07 +0200 Subject: [PATCH 1/2] chore: forbid commit message body not leading with a blank line Commit messages display looks weird because of that. --- commitlint.config.cjs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/commitlint.config.cjs b/commitlint.config.cjs index 2a0f573c0e..070c7b1c34 100644 --- a/commitlint.config.cjs +++ b/commitlint.config.cjs @@ -1,5 +1,9 @@ module.exports = { - extends: [ - '@commitlint/config-conventional', - ], -} + extends: ['@commitlint/config-conventional'], + rules: { + 'body-leading-blank': [ + 2, // error + 'always', + ], + }, +}; From 231d06e9b248cd3aa4468a7aeecab73fbaa5a2da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20TR=C3=89BEL=20=28Perso=29?= Date: Fri, 22 May 2026 15:05:32 +0200 Subject: [PATCH 2/2] fix(client): fix admin user list table headers not being aligned with its content --- apps/client/src/views/admin/ListUser.vue | 168 ++++++++++++----------- 1 file changed, 87 insertions(+), 81 deletions(-) diff --git a/apps/client/src/views/admin/ListUser.vue b/apps/client/src/views/admin/ListUser.vue index de94833901..6fd88db2d3 100644 --- a/apps/client/src/views/admin/ListUser.vue +++ b/apps/client/src/views/admin/ListUser.vue @@ -21,34 +21,45 @@ const sort = ref<{ method: string, desc: boolean }>({ desc: true, }) -const sortOptions: { text: string, value: string, selected?: true }[] = [{ - text: 'Date de création \u2B06\uFE0F', - value: 'createdAt', -}, { - text: 'Date de création \u2B07\uFE0F', - value: 'createdAt:D', - selected: true, -}, { - text: 'Prénom, alphabétique \u2B06\uFE0F', - value: 'firstName', -}, { - text: 'Prénom, alphabétique \u2B07\uFE0F', - value: 'firstName:D', -}, { - text: 'Nom, alphabétique \u2B06\uFE0F', - value: 'lastName', -}, { - text: 'Nom, alphabétique \u2B07\uFE0F', - value: 'lastName:D', -}, { - text: 'Email, alphabétique \u2B06\uFE0F', - value: 'email', -}, { - text: 'Email, alphabétique \u2B07\uFE0F', - value: 'email:D', -}] +const sortOptions: { text: string, value: string, selected?: true }[] = [ + { + text: 'Date de création \u2B06\uFE0F', + value: 'createdAt', + }, + { + text: 'Date de création \u2B07\uFE0F', + value: 'createdAt:D', + selected: true, + }, + { + text: 'Prénom, alphabétique \u2B06\uFE0F', + value: 'firstName', + }, + { + text: 'Prénom, alphabétique \u2B07\uFE0F', + value: 'firstName:D', + }, + { + text: 'Nom, alphabétique \u2B06\uFE0F', + value: 'lastName', + }, + { + text: 'Nom, alphabétique \u2B07\uFE0F', + value: 'lastName:D', + }, + { + text: 'Email, alphabétique \u2B06\uFE0F', + value: 'email', + }, + { + text: 'Email, alphabétique \u2B07\uFE0F', + value: 'email:D', + }, +] -const sortKey = computed<'email' | 'lastName' | 'firstName'>(() => sort.value.method.split(':')[0] as 'email' | 'lastName' | 'firstName') +const sortKey = computed<'email' | 'lastName' | 'firstName'>( + () => sort.value.method.split(':')[0] as 'email' | 'lastName' | 'firstName', +) function selectSort(value: string | number | undefined) { const v = value as string sort.value = { @@ -65,16 +76,17 @@ const userRows = computed(() => { if (hideBots.value) { users = users.filter(user => user.type === 'human') } - let userRows = users - .map((user) => { - const fullName = `${user.firstName} ${user.lastName}` - return { - ...user, - fullName, - roleNames: adminRoleStore.roles.filter(({ id }) => user.adminRoleIds.includes(id)).map(({ name }) => name), - bgColor: textToHSL(fullName), - } - }) + let userRows = users.map((user) => { + const fullName = `${user.firstName} ${user.lastName}` + return { + ...user, + fullName, + roleNames: adminRoleStore.roles + .filter(({ id }) => user.adminRoleIds.includes(id)) + .map(({ name }) => name), + bgColor: textToHSL(fullName), + } + }) if (!inputSearchText.value) return userRows const input = inputSearchText.value.toLowerCase() @@ -92,7 +104,11 @@ const userRows = computed(() => { }) function textToHSL(text: string): string { - const hue = (text.charCodeAt(Math.min(text.length - 1, 2)) * text.charCodeAt(Math.min(text.length - 1)) * text.charCodeAt(Math.min(text.length - 1, 5))) % 255 + const hue + = (text.charCodeAt(Math.min(text.length - 1, 2)) + * text.charCodeAt(Math.min(text.length - 1)) + * text.charCodeAt(Math.min(text.length - 1, 5))) + % 255 return `hsl(${hue} 80% 40%)` } @@ -108,12 +124,8 @@ onBeforeMount(async () => {