diff --git a/web/components/states/create-update-state-inline.tsx b/web/components/states/create-update-state-inline.tsx index 037cd483d..4229ad783 100644 --- a/web/components/states/create-update-state-inline.tsx +++ b/web/components/states/create-update-state-inline.tsx @@ -44,7 +44,7 @@ export const CreateUpdateStateInline: React.FC = observer((props) => { // form info const { handleSubmit, - formState: { errors, isSubmitting }, + formState: { errors, isSubmitting, dirtyFields}, watch, reset, control, @@ -131,6 +131,7 @@ export const CreateUpdateStateInline: React.FC = observer((props) => { eventName: STATE_UPDATED, payload: { ...res, + change_details: Object.keys(dirtyFields), state: "SUCCESS", element: "Project settings states page", }, diff --git a/web/components/states/project-setting-state-list-item.tsx b/web/components/states/project-setting-state-list-item.tsx index 401c482f3..f5ff53315 100644 --- a/web/components/states/project-setting-state-list-item.tsx +++ b/web/components/states/project-setting-state-list-item.tsx @@ -103,7 +103,7 @@ export const StatesListItem: React.FC = observer((props) => { state.default || groupLength === 1 ? "cursor-not-allowed" : "" } grid place-items-center`} onClick={() => { - setTrackElement("PROJECT_SETTINGS_STATE_PAGE"); + setTrackElement("Project settings states page"); handleDeleteState(); }} disabled={state.default || groupLength === 1} diff --git a/web/constants/event-tracker.ts b/web/constants/event-tracker.ts index 2f5d61aa3..8f86d8d7a 100644 --- a/web/constants/event-tracker.ts +++ b/web/constants/event-tracker.ts @@ -120,6 +120,7 @@ export const getProjectStateEventPayload = (payload: any) => { default: payload.default, state: payload.state, element: payload.element, + change_details: payload.change_details, }; };