Skip to content

Conversation

@chippison
Copy link
Contributor

Description

UX-333
Currently, when a Goal is edited and saved, no feedback is shown to the user.

After a Goal is successfully updated, display a success message at the top of the page.

Acceptance criteria:

Show a confirmation message like:

“Goal successfully updated. [View Goal Report]”

The “View Goal Report” link should direct to the corresponding Goal report page.

Checklist

  • [NA] I have understood, reviewed, and tested all AI outputs before use
  • [NA] All AI instructions respect security, IP, and privacy rules

Review

…f adding the segment into the store to finish before we 'mark' icons as 'compared'
…of 'data_comparison_segment_limit' to include the count for the first segment to compare (Usually 'All Visits').
…se this does not allow us to show the notifications.

We now just load the new goals by calling via api and updating the view
…. This makes it faster as well as being able to show the notification
@chippison chippison marked this pull request as ready for review November 23, 2025 21:52
@chippison chippison requested a review from a team November 23, 2025 21:52
editGoal(goalId: string|number) {
this.showAddEditForm();
const goal = this.goals[`${goalId}`] as Goal;
const goal = (this.goalsList[`${goalId}`] || this.goals[`${goalId}`]) as Goal;
Copy link
Contributor

Choose a reason for hiding this comment

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

I understand now that goals is a prop value and goalsList a mutable variable. But, why do we have to go through both goalsList and goals?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

that is just incase 'this.goalsList' is null at some point. Just making sure that we always fallback to the default passed goals

@chippison chippison requested a review from tzi November 24, 2025 22:26
Copy link
Contributor

@nathangavin nathangavin left a comment

Choose a reason for hiding this comment

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

Looks good to me, nice cleanup on the refresh of the goals list on goal creation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants