Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Commit

Permalink
refactor: previous commit data tag
Browse files Browse the repository at this point in the history
  • Loading branch information
ZackarySantana committed Feb 27, 2024
1 parent 3edc9bd commit e0885c3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/analytics/task/useTaskAnalytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ type Action =
| { name: "Click Last Failing Stepback Task Link" }
| { name: "Click Previous Stepback Task Link" }
| { name: "Click Next Stepback Task Link" }
| { name: "Submit Previous Commit Selector"; type: CommitType };
| { name: "Submit Relevant Commit Selector"; type: CommitType };

export const useTaskAnalytics = () => {
const { id } = useParams<{ id: string }>();
Expand Down
8 changes: 4 additions & 4 deletions src/pages/task/actionButtons/RelevantCommits/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ export const RelevantCommits: React.FC<RelevantCommitsProps> = ({ taskId }) => {
disabled={parentLoading}
onClick={() =>
sendEvent({
name: "Submit Previous Commit Selector",
name: "Submit Relevant Commit Selector",
type: CommitType.Base,
})
}
Expand All @@ -187,7 +187,7 @@ export const RelevantCommits: React.FC<RelevantCommitsProps> = ({ taskId }) => {
disabled={breakingLoading || breakingTask === undefined}
onClick={() =>
sendEvent({
name: "Submit Previous Commit Selector",
name: "Submit Relevant Commit Selector",
type: CommitType.Breaking,
})
}
Expand All @@ -200,7 +200,7 @@ export const RelevantCommits: React.FC<RelevantCommitsProps> = ({ taskId }) => {
disabled={passingLoading}
onClick={() =>
sendEvent({
name: "Submit Previous Commit Selector",
name: "Submit Relevant Commit Selector",
type: CommitType.LastPassing,
})
}
Expand All @@ -213,7 +213,7 @@ export const RelevantCommits: React.FC<RelevantCommitsProps> = ({ taskId }) => {
disabled={executedLoading}
onClick={() =>
sendEvent({
name: "Submit Previous Commit Selector",
name: "Submit Relevant Commit Selector",
type: CommitType.LastExecuted,
})
}
Expand Down
8 changes: 4 additions & 4 deletions src/pages/task/actionButtons/relevantCommits/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ export const RelevantCommits: React.FC<RelevantCommitsProps> = ({ taskId }) => {
disabled={parentLoading}
onClick={() =>
sendEvent({
name: "Submit Previous Commit Selector",
name: "Submit Relevant Commit Selector",
type: CommitType.Base,
})
}
Expand All @@ -187,7 +187,7 @@ export const RelevantCommits: React.FC<RelevantCommitsProps> = ({ taskId }) => {
disabled={breakingLoading || breakingTask === undefined}
onClick={() =>
sendEvent({
name: "Submit Previous Commit Selector",
name: "Submit Relevant Commit Selector",
type: CommitType.Breaking,
})
}
Expand All @@ -200,7 +200,7 @@ export const RelevantCommits: React.FC<RelevantCommitsProps> = ({ taskId }) => {
disabled={passingLoading}
onClick={() =>
sendEvent({
name: "Submit Previous Commit Selector",
name: "Submit Relevant Commit Selector",
type: CommitType.LastPassing,
})
}
Expand All @@ -213,7 +213,7 @@ export const RelevantCommits: React.FC<RelevantCommitsProps> = ({ taskId }) => {
disabled={executedLoading}
onClick={() =>
sendEvent({
name: "Submit Previous Commit Selector",
name: "Submit Relevant Commit Selector",
type: CommitType.LastExecuted,
})
}
Expand Down

0 comments on commit e0885c3

Please sign in to comment.