Extract literal strings from complex modals to notification constants

Replace hardcoded text in raw $notify calls with centralized constants:
- MembersList.vue: 2 complex modals (contact admission workflow)
- ContactsView.vue: 2 complex modals (registration, onboarding meeting)
- ProjectViewView.vue: 1 complex modal (claim confirmation)

Preserves advanced modal features (promptToStopAsking, custom buttons,
nested workflows) while standardizing text through constants for
maintainability and future localization support.
This commit is contained in:
Matthew Raymer
2025-07-07 07:22:06 +00:00
parent ba15b500c4
commit f9a1be81b4
6 changed files with 363 additions and 68 deletions

View File

@@ -610,6 +610,7 @@ import { useClipboard } from "@vueuse/core";
import { transformImageUrlForCors } from "../libs/util";
import { PlatformServiceMixin } from "@/utils/PlatformServiceMixin";
import { createNotifyHelpers, TIMEOUTS } from "@/utils/notify";
import { NOTIFY_CONFIRM_CLAIM } from "@/constants/notifications";
/**
* Project View Component
* @author Matthew Raymer
@@ -1339,8 +1340,8 @@ export default class ProjectViewView extends Vue {
{
group: "modal",
type: "confirm",
title: "Confirm",
text: "Do you personally confirm that this is true?",
title: NOTIFY_CONFIRM_CLAIM.title,
text: NOTIFY_CONFIRM_CLAIM.text,
onYes: async () => {
await this.confirmClaim(give);
},