Skip to content

Commit

Permalink
Merge pull request #369 from ChildMindInstitute/dev2.5
Browse files Browse the repository at this point in the history
Merge changes into stage2.5 branch from the dev2.5
  • Loading branch information
vmkhitaryanscn authored Feb 8, 2024
2 parents 416d584 + 5a52c5b commit 7490e0d
Show file tree
Hide file tree
Showing 57 changed files with 1,005 additions and 338 deletions.
9 changes: 9 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
resolves: M2-####

### Objective

### Notes

### Follow up tasks

### Screenshots
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ import {
} from "date-fns"
import { vi } from "vitest"

import { Entity, EventEntity } from "./activityGroups.types"
import { ActivityGroupsBuilder, createActivityGroupsBuilder } from "./ActivityGroupsBuilder"
import { GroupsBuildContext } from "./GroupUtility"
import { ActivityListGroup, Entity, EventEntity } from "../../lib"
import { ActivityType, ActivityListItem, ActivityStatus, ActivityListGroup } from "./types"

import { ActivityPipelineType, FlowProgress, GroupProgressState } from "~/abstract/lib"
import { AvailabilityLabelType, EventAvailability } from "~/entities/event"
import { PeriodicityType } from "~/entities/event"
import { MIDNIGHT_DATE } from "~/shared/constants"
import { ActivityListItem, ActivityStatus, ActivityType } from "~/widgets/ActivityGroups/lib"

const getProgress = (startAt: Date, endAt: Date | null) => {
const result: GroupProgressState = {
Expand Down Expand Up @@ -194,7 +194,6 @@ describe("ActivityGroupsBuilder", () => {
const input: GroupsBuildContext = {
allAppletActivities: [],
progress,
appletId: "test-applet-id-1",
}

const builder = createActivityGroupsBuilder(input)
Expand Down Expand Up @@ -226,7 +225,6 @@ describe("ActivityGroupsBuilder", () => {
const input: GroupsBuildContext = {
allAppletActivities: [],
progress,
appletId: "test-applet-id-1",
}

const builder = createActivityGroupsBuilder(input)
Expand Down Expand Up @@ -254,7 +252,6 @@ describe("ActivityGroupsBuilder", () => {
const input: GroupsBuildContext = {
allAppletActivities: [],
progress,
appletId: "test-applet-id-1",
}

const builder = createActivityGroupsBuilder(input)
Expand Down Expand Up @@ -282,7 +279,6 @@ describe("ActivityGroupsBuilder", () => {
const input: GroupsBuildContext = {
allAppletActivities: [],
progress,
appletId: "test-applet-id-1",
}

const builder = createActivityGroupsBuilder(input)
Expand Down Expand Up @@ -331,7 +327,6 @@ describe("ActivityGroupsBuilder", () => {
const input: GroupsBuildContext = {
allAppletActivities: [],
progress,
appletId: "test-applet-id-1",
}

const builder = createActivityGroupsBuilder(input)
Expand Down Expand Up @@ -380,7 +375,6 @@ describe("ActivityGroupsBuilder", () => {
const input: GroupsBuildContext = {
allAppletActivities: [],
progress,
appletId: "test-applet-id-1",
}

const builder = createActivityGroupsBuilder(input)
Expand Down Expand Up @@ -429,7 +423,6 @@ describe("ActivityGroupsBuilder", () => {
const input: GroupsBuildContext = {
allAppletActivities: [],
progress,
appletId: "test-applet-id-1",
}

const builder = createActivityGroupsBuilder(input)
Expand Down Expand Up @@ -480,7 +473,6 @@ describe("ActivityGroupsBuilder", () => {
const input: GroupsBuildContext = {
allAppletActivities: [],
progress,
appletId: "test-applet-id-1",
}

const builder = createActivityGroupsBuilder(input)
Expand Down Expand Up @@ -518,7 +510,6 @@ describe("ActivityGroupsBuilder", () => {
const input: GroupsBuildContext = {
allAppletActivities: [],
progress,
appletId: "test-applet-id-1",
}

const builder = createActivityGroupsBuilder(input)
Expand Down Expand Up @@ -556,7 +547,6 @@ describe("ActivityGroupsBuilder", () => {
const input: GroupsBuildContext = {
allAppletActivities: [],
progress,
appletId: "test-applet-id-1",
}

const builder = createActivityGroupsBuilder(input)
Expand Down Expand Up @@ -596,7 +586,6 @@ describe("ActivityGroupsBuilder", () => {
const input: GroupsBuildContext = {
allAppletActivities: [],
progress,
appletId: "test-applet-id-1",
}

const builder = createActivityGroupsBuilder(input)
Expand Down Expand Up @@ -644,7 +633,6 @@ describe("ActivityGroupsBuilder", () => {
const input: GroupsBuildContext = {
allAppletActivities: [],
progress,
appletId: "test-applet-id-1",
}

const builder = createActivityGroupsBuilder(input)
Expand Down Expand Up @@ -692,7 +680,6 @@ describe("ActivityGroupsBuilder", () => {
const input: GroupsBuildContext = {
allAppletActivities: [],
progress,
appletId: "test-applet-id-1",
}

const builder = createActivityGroupsBuilder(input)
Expand Down Expand Up @@ -738,7 +725,6 @@ describe("ActivityGroupsBuilder", () => {
const input = {
allAppletActivities: [],
progress,
appletId: "test-applet-id-1",
}

const builder = createActivityGroupsBuilder(input)
Expand Down Expand Up @@ -787,7 +773,6 @@ describe("ActivityGroupsBuilder", () => {
const input: GroupsBuildContext = {
allAppletActivities: [],
progress,
appletId: "test-applet-id-1",
}

const builder = createActivityGroupsBuilder(input)
Expand Down Expand Up @@ -826,7 +811,6 @@ describe("ActivityGroupsBuilder", () => {
const input: GroupsBuildContext = {
allAppletActivities: [],
progress,
appletId: "test-applet-id-1",
}

const builder = createActivityGroupsBuilder(input)
Expand Down Expand Up @@ -864,7 +848,6 @@ describe("ActivityGroupsBuilder", () => {
const input: GroupsBuildContext = {
allAppletActivities: [],
progress,
appletId: "test-applet-id-1",
}

const builder = createActivityGroupsBuilder(input)
Expand Down Expand Up @@ -905,7 +888,6 @@ describe("ActivityGroupsBuilder", () => {
let input: GroupsBuildContext = {
allAppletActivities: [],
progress,
appletId: "test-applet-id-1",
}

let builder = createActivityGroupsBuilder(input)
Expand All @@ -932,7 +914,6 @@ describe("ActivityGroupsBuilder", () => {
input = {
allAppletActivities: [],
progress,
appletId: "test-applet-id-1",
}

builder = createActivityGroupsBuilder(input)
Expand All @@ -953,7 +934,6 @@ describe("ActivityGroupsBuilder", () => {
let input: GroupsBuildContext = {
allAppletActivities: [],
progress,
appletId: "test-applet-id-1",
}

let builder = createActivityGroupsBuilder(input)
Expand All @@ -980,7 +960,6 @@ describe("ActivityGroupsBuilder", () => {
input = {
allAppletActivities: [],
progress,
appletId: "test-applet-id-1",
}

builder = createActivityGroupsBuilder(input)
Expand All @@ -1007,7 +986,6 @@ describe("ActivityGroupsBuilder", () => {
const input: GroupsBuildContext = {
allAppletActivities: [],
progress,
appletId: "test-applet-id-1",
}

const builder = createActivityGroupsBuilder(input)
Expand Down Expand Up @@ -1055,7 +1033,6 @@ describe("ActivityGroupsBuilder", () => {
const input: GroupsBuildContext = {
allAppletActivities: [],
progress,
appletId: "test-applet-id-1",
}

const builder = createActivityGroupsBuilder(input)
Expand Down Expand Up @@ -1097,7 +1074,6 @@ describe("ActivityGroupsBuilder", () => {
const input: GroupsBuildContext = {
allAppletActivities: [],
progress,
appletId: "test-applet-id-1",
}

const builder = createActivityGroupsBuilder(input)
Expand Down Expand Up @@ -1144,7 +1120,6 @@ describe("ActivityGroupsBuilder", () => {
const input = {
allAppletActivities: [],
progress,
appletId: "test-applet-id-1",
}

const builder = createActivityGroupsBuilder(input)
Expand Down Expand Up @@ -1195,7 +1170,6 @@ describe("ActivityGroupsBuilder", () => {
const input: GroupsBuildContext = {
allAppletActivities: [],
progress,
appletId: "test-applet-id-1",
}

const builder = createActivityGroupsBuilder(input)
Expand Down Expand Up @@ -1234,7 +1208,6 @@ describe("ActivityGroupsBuilder", () => {
const input = {
allAppletActivities: [],
progress,
appletId: "test-applet-id-1",
}

const builder = createActivityGroupsBuilder(input)
Expand Down Expand Up @@ -1273,7 +1246,6 @@ describe("ActivityGroupsBuilder", () => {
const input = {
allAppletActivities: [],
progress,
appletId: "test-applet-id-1",
}

const builder = createActivityGroupsBuilder(input)
Expand Down Expand Up @@ -1323,7 +1295,6 @@ describe("ActivityGroupsBuilder", () => {
const input: GroupsBuildContext = {
allAppletActivities: [],
progress,
appletId: "test-applet-id-1",
}

const builder = createActivityGroupsBuilder(input)
Expand Down Expand Up @@ -1370,7 +1341,6 @@ describe("ActivityGroupsBuilder", () => {
const input: GroupsBuildContext = {
allAppletActivities: [],
progress,
appletId: "test-applet-id-1",
}

const builder = createActivityGroupsBuilder(input)
Expand Down Expand Up @@ -1420,7 +1390,6 @@ describe("ActivityGroupsBuilder", () => {
const input: GroupsBuildContext = {
allAppletActivities: [],
progress,
appletId: "test-applet-id-1",
}

const builder = createActivityGroupsBuilder(input)
Expand Down Expand Up @@ -1470,7 +1439,6 @@ describe("ActivityGroupsBuilder", () => {
let input: GroupsBuildContext = {
allAppletActivities: [],
progress,
appletId: "test-applet-id-1",
}

let builder = createActivityGroupsBuilder(input)
Expand Down Expand Up @@ -1510,7 +1478,6 @@ describe("ActivityGroupsBuilder", () => {
input = {
allAppletActivities: [],
progress,
appletId: "test-applet-id-1",
}

builder = createActivityGroupsBuilder(input)
Expand All @@ -1532,7 +1499,6 @@ describe("ActivityGroupsBuilder", () => {
const input: GroupsBuildContext = {
allAppletActivities: [],
progress,
appletId: "test-applet-id-1",
}

const builder = createActivityGroupsBuilder(input)
Expand Down Expand Up @@ -1571,7 +1537,6 @@ describe("ActivityGroupsBuilder", () => {
const input = {
allAppletActivities: [],
progress,
appletId: "test-applet-id-1",
}

const builder = createActivityGroupsBuilder(input)
Expand Down Expand Up @@ -1643,7 +1608,6 @@ describe("ActivityGroupsBuilder", () => {
},
],
progress,
appletId: "test-applet-id-1",
}

const builder = createActivityGroupsBuilder(input)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { EventEntity } from "./activityGroups.types"
import { AvailableGroupEvaluator } from "./AvailableGroupEvaluator"
import { GroupsBuildContext, GroupUtility } from "./GroupUtility"
import { ListItemsFactory } from "./ListItemsFactory"
import { ScheduledGroupEvaluator } from "./ScheduledGroupEvaluator"
import { ActivityGroupType, ActivityGroupTypeNames, ActivityListGroup, ActivityListItem, EventEntity } from "../../lib"
import { ActivityGroupType, ActivityGroupTypeNames, ActivityListGroup, ActivityListItem } from "./types"

export interface IActivityGroupsBuilder {
buildInProgress: (eventsActivities: Array<EventEntity>) => ActivityListGroup
Expand Down
Loading

0 comments on commit 7490e0d

Please sign in to comment.