From c51e94ccd33913d6e92a453af72e443d581f516b Mon Sep 17 00:00:00 2001 From: The Doom Lab Date: Fri, 14 Nov 2025 12:08:09 -0600 Subject: [PATCH 01/38] Update CITATION.cff --- CITATION.cff | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CITATION.cff b/CITATION.cff index e7ae096c..673a19eb 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -30,7 +30,7 @@ preferred-citation: - family-names: "Yedra" given-names: "Engerst" orcid: "https://orcid.org/0000-0002-9555-7148" - url: "https://github.com/STAPLE/STAPLE" + url: "https://github.com/STAPLE-verse/STAPLE" contributors: - family-names: "Hartgerink" From 604e877bba3df874b5651eaaec43d028ac852501 Mon Sep 17 00:00:00 2001 From: The Doom Lab Date: Sat, 13 Dec 2025 20:14:21 -0600 Subject: [PATCH 02/38] add notification marker to deleted users --- .../mutations/deleteProjectMember.ts | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/src/projectmembers/mutations/deleteProjectMember.ts b/src/projectmembers/mutations/deleteProjectMember.ts index af5ea1a8..ffbf87f1 100644 --- a/src/projectmembers/mutations/deleteProjectMember.ts +++ b/src/projectmembers/mutations/deleteProjectMember.ts @@ -26,6 +26,20 @@ export default resolver.pipe( // Get the userId from the associated users array const userId = projectMemberToDelete.users[0]!.id + // Reconstruct possible display names used in notification messages + const user = projectMemberToDelete.users[0] + const possibleDisplayNames: string[] = [] + + if (user!.firstName && user!.lastName) { + possibleDisplayNames.push(`${user!.firstName} ${user!.lastName}`) + } + + if (user!.username) { + possibleDisplayNames.push(user!.username) + } + + const notificationMarker = " (former contributor)" + // Check if the project member has any privileges related to the project const projectPrivilege = await db.projectPrivilege.findFirst({ where: { @@ -64,6 +78,33 @@ export default resolver.pipe( where: { id: projectPrivilege.id }, }) + // Annotate existing notifications that reference this contributor by name + if (possibleDisplayNames.length > 0) { + const notifications = await db.notification.findMany({ + where: { + projectId: projectMemberToDelete.projectId, + announcement: false, + }, + }) + + await Promise.all( + notifications + .filter( + (n) => + !n.message.includes(notificationMarker) && + possibleDisplayNames.some((name) => n.message.includes(name)) + ) + .map((n) => + db.notification.update({ + where: { id: n.id }, + data: { + message: `${n.message}${notificationMarker}`, + }, + }) + ) + ) + } + // Delete the project member const projectMember = await db.projectMember.update({ where: { id: projectMemberToDelete.id }, From 88652c91699e7bca2482290d9be0ece78082319f Mon Sep 17 00:00:00 2001 From: The Doom Lab Date: Sat, 13 Dec 2025 20:46:28 -0600 Subject: [PATCH 03/38] fix double tooltip issue --- src/core/components/sidebar/Sidebar.tsx | 2 +- src/core/components/sidebar/SidebarTooltips.tsx | 2 ++ src/pages/projects/[projectId]/notes/index.tsx | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/core/components/sidebar/Sidebar.tsx b/src/core/components/sidebar/Sidebar.tsx index 69bda728..6e137923 100644 --- a/src/core/components/sidebar/Sidebar.tsx +++ b/src/core/components/sidebar/Sidebar.tsx @@ -104,7 +104,7 @@ export function SidebarItem({ /> )} - {!expanded && ( + {!expanded && !tooltipId && (
diff --git a/src/core/components/sidebar/SidebarTooltips.tsx b/src/core/components/sidebar/SidebarTooltips.tsx index c079cad9..8a932130 100644 --- a/src/core/components/sidebar/SidebarTooltips.tsx +++ b/src/core/components/sidebar/SidebarTooltips.tsx @@ -32,6 +32,8 @@ const SidebarTooltips = () => { { id: "help-tooltip", content: "Get help" }, { id: "project-notification-tooltip", content: "Project notifications" }, { id: "invite-tooltip", content: "Project invitations" }, + { id: "project-notes-tooltip", content: "View notes" }, + { id: "project-tags-tooltip", content: "View tag dashboard" }, ] return ( diff --git a/src/pages/projects/[projectId]/notes/index.tsx b/src/pages/projects/[projectId]/notes/index.tsx index 8162a151..860db6ed 100644 --- a/src/pages/projects/[projectId]/notes/index.tsx +++ b/src/pages/projects/[projectId]/notes/index.tsx @@ -22,10 +22,10 @@ const NotesPage = () => {

Notes

From 5e8d1cd52b94eaff669cf60189f11dd459fe99b1 Mon Sep 17 00:00:00 2001 From: The Doom Lab Date: Sat, 13 Dec 2025 20:50:41 -0600 Subject: [PATCH 04/38] fix scrolling in the table --- src/tasks/components/AllTaskList.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/tasks/components/AllTaskList.tsx b/src/tasks/components/AllTaskList.tsx index 9bd873ca..6f6a44eb 100644 --- a/src/tasks/components/AllTaskList.tsx +++ b/src/tasks/components/AllTaskList.tsx @@ -55,8 +55,10 @@ export const AllTasksList = () => { const processedTasks = processAllTasks(latestLogs, taskLogs) return ( - - + +
+
+ ) } From e40a12b5c229b309b9a6f4025bb519b892788f72 Mon Sep 17 00:00:00 2001 From: The Doom Lab Date: Sun, 14 Dec 2025 18:41:43 -0600 Subject: [PATCH 05/38] form data problem solved! --- summary-viewer/Form_Data.html | 6 ------ 1 file changed, 6 deletions(-) diff --git a/summary-viewer/Form_Data.html b/summary-viewer/Form_Data.html index 152df4e4..240c3bc0 100644 --- a/summary-viewer/Form_Data.html +++ b/summary-viewer/Form_Data.html @@ -47,12 +47,6 @@