Skip to content

Conversation

@shreeyash07
Copy link
Collaborator

Summary

Provide a brief description of what this PR addresses and its purpose.

Addresses

  • Issue(s): List related issues or tickets.

Depends On

  • Other PRs or Dependencies: List PRs or dependencies this PR relies on.

Changes

  • Detailed list or prose of changes
  • Breaking changes
  • Changes to configurations

This PR Ensures:

  • No typos or grammatical errors
  • No conflict markers left in the code
  • No unwanted comments, temporary files, or auto-generated files
  • No inclusion of secret keys or sensitive data
  • No console.log statements meant for debugging
  • All CI checks have passed

Additional Notes

Optional: Add any other relevant context, screenshots, or details here.

@changeset-bot
Copy link

changeset-bot bot commented Dec 4, 2025

⚠️ No Changeset found

Latest commit: 1131875

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@shreeyash07 shreeyash07 changed the base branch from develop to project/early-action-protocols December 4, 2025 09:38
@frozenhelium frozenhelium force-pushed the project/early-action-protocols branch 3 times, most recently from d10a0db to 5ccc1bc Compare December 11, 2025 10:04
@shreeyash07 shreeyash07 force-pushed the feature/eap-full-form branch 2 times, most recently from 0adbb63 to c9c84d0 Compare December 12, 2025 05:10
@shreeyash07 shreeyash07 force-pushed the feature/eap-full-form branch from c9c84d0 to a172ce2 Compare December 12, 2025 05:33
Comment on lines 4 to 6
"eapFullFormActivationSourceInformationNameLabel": "Name",
"eapFullFormActivationSourceInformationLinkLabel": "Link",
"eapFullFormActivationSourceInformationDeleteButton": "Delete Source Information"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not prefix string key with the namespace

Comment on lines 62 to 85
const handleSourceFieldChange = useCallback(
(newValue: string | undefined) => {
if (
isNotDefined(newValue)
|| newValue.startsWith('http://')
|| newValue.startsWith('https://')
|| newValue === 'h'
|| newValue === 'ht'
|| newValue === 'htt'
|| newValue === 'http'
|| newValue === 'http:'
|| newValue === 'http:/'
|| newValue === 'https'
|| newValue === 'https:'
|| newValue === 'https:/'
) {
onFieldChange(newValue, 'source_link');
return;
}

onFieldChange(`https://${newValue}`, 'source_link');
},
[onFieldChange],
);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is copied from some other place, please add a utility function and reuse it


return (
<>
<NonFieldError error={error} />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please verify if the layout will work when there is an error

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its working fine

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not prefix string key with namespace


return (
<TabPage>
<Container>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this Container component serve any purpose?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not prefix string key with namespace, lets remove unused keys

Comment on lines 70 to 96
function getNextStep(current: TabKeys, direction: 1 | -1) {
if (direction === 1) {
const mapping: { [key in TabKeys]?: TabKeys } = {
overview: 'riskAnalysis',
riskAnalysis: 'triggerModel',
triggerModel: 'selectionActions',
selectionActions: 'eapActivation',
eapActivation: 'meal',
meal: 'nationalSocietyCapacity',
nationalSocietyCapacity: 'financeLogistics',
};
return mapping[current];
}
if (direction === -1) {
const mapping: { [key in TabKeys]?: TabKeys } = {
financeLogistics: 'nationalSocietyCapacity',
nationalSocietyCapacity: 'meal',
meal: 'eapActivation',
eapActivation: 'selectionActions',
selectionActions: 'triggerModel',
triggerModel: 'riskAnalysis',
riskAnalysis: 'overview',
};
return mapping[current];
}
return undefined;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Create a utility function and reuse it

Comment on lines 479 to 488
type ExtractContactPrefix<KEY extends FieldKeys> =
KEY extends `${infer PREFIX}_name`
? `${PREFIX}_title` extends FieldKeys
? `${PREFIX}_email` extends FieldKeys
? `${PREFIX}_phone_number` extends FieldKeys
? PREFIX
: never
: never
: never
: never;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix indentation

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not use custom styling

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this change needed? This might cause unnecessary conflicts when doing the rebase

@frozenhelium frozenhelium force-pushed the project/early-action-protocols branch from 4c88096 to 84b47e5 Compare December 24, 2025 04:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants