Skip to content

Commit 8eb8647

Browse files
committed
Polish transition names
1 parent 4457734 commit 8eb8647

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

src/components/authorization/policies/by-role/controller.policy.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ import { Policy, Role } from '../util';
44
@Policy(Role.Controller, (r) => [
55
// keep multiline format
66
r.EngagementWorkflowEvent.read.transitions(
7-
'Reject',
8-
'End Development',
9-
'Approve to Active',
10-
'Approve Change to Plan',
11-
'Will Not Change Plan',
12-
'Discussing Change to Plan -> Discussing Suspension',
7+
'Reject Proposal',
8+
'End Proposal',
9+
'Approve Proposal',
10+
'Approve Change To Plan',
11+
'End Change To Plan Discussion',
12+
'Discuss Suspension out of Change to Plan Discussion',
1313
).execute,
1414
r.Organization.delete,
1515
r.Partner.delete,

src/components/authorization/policies/by-role/project-manager.policy.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ export const momentumProjectsTransitions = () =>
8787
'Discuss Suspension',
8888
'Discuss Termination',
8989
'Finalize Completion',
90-
'Approve Change to Plan',
91-
'Will Not Change Plan',
92-
'Discussing Change to Plan -> Discussing Suspension',
93-
'Will Not Suspend',
90+
'Approve Change To Plan',
91+
'End Change To Plan Discussion',
92+
'Discuss Suspension out of Change to Plan Discussion',
93+
'End Suspension Discussion',
9494
'Approve Suspension',
9595
'Approve Reactivation',
9696
'Discuss Reactivation',

src/components/engagement/workflow/engagement-workflow.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,21 @@ export const EngagementWorkflow = defineWorkflow({
1616
event: EngagementWorkflowEvent,
1717
context: defineContext<EngagementWorkflowContext>,
1818
})({
19-
Reject: {
19+
'Reject Proposal': {
2020
from: Status.InDevelopment,
2121
to: Status.Rejected,
2222
label: 'Reject',
2323
type: Type.Reject,
2424
conditions: ProjectStep('Rejected'),
2525
},
26-
'End Development': {
26+
'End Proposal': {
2727
from: Status.InDevelopment,
2828
to: Status.DidNotDevelop,
2929
label: 'End Development',
3030
type: Type.Reject,
3131
conditions: ProjectStep('DidNotDevelop'),
3232
},
33-
'Approve to Active': {
33+
'Approve Proposal': {
3434
from: Status.InDevelopment,
3535
to: Status.Active,
3636
label: 'Approve',
@@ -46,7 +46,7 @@ export const EngagementWorkflow = defineWorkflow({
4646
'Discuss Suspension': {
4747
from: [Status.Active, Status.ActiveChangedPlan],
4848
to: Status.DiscussingSuspension,
49-
label: 'Discuss Susupension',
49+
label: 'Discuss Suspension',
5050
type: Type.Neutral,
5151
},
5252
'Discuss Termination': {
@@ -67,22 +67,22 @@ export const EngagementWorkflow = defineWorkflow({
6767
label: 'Finalize Completion',
6868
type: Type.Approve,
6969
},
70-
'Approve Change to Plan': {
70+
'Approve Change To Plan': {
7171
from: Status.DiscussingChangeToPlan,
7272
to: Status.ActiveChangedPlan,
7373
label: 'Approve Change to Plan',
7474
type: Type.Approve,
7575
},
76-
'Will Not Change Plan': {
76+
'End Change To Plan Discussion': {
7777
from: Status.DiscussingChangeToPlan,
7878
to: BackToActive,
7979
label: 'Will Not Change Plan',
8080
type: Type.Neutral,
8181
},
82-
'Discussing Change to Plan -> Discussing Suspension': {
82+
'Discuss Suspension out of Change to Plan Discussion': {
8383
from: [Status.DiscussingChangeToPlan],
8484
to: Status.DiscussingSuspension,
85-
label: 'Discuss Susupension',
85+
label: 'Discuss Suspension',
8686
type: Type.Neutral,
8787
},
8888
'Approve Suspension': {
@@ -91,7 +91,7 @@ export const EngagementWorkflow = defineWorkflow({
9191
label: 'Approve Suspension',
9292
type: Type.Approve,
9393
},
94-
'Will Not Suspend': {
94+
'End Suspension Discussion': {
9595
from: Status.DiscussingSuspension,
9696
to: BackToActive,
9797
label: 'Will Not Suspend',

0 commit comments

Comments
 (0)