-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support DDD/BDD workshop activities
## Added - new types, `rules`, and `examples` fields to support design activities such example mapping, event storming etc.
- Loading branch information
Showing
12 changed files
with
168 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import {CastProfiles} from "@src/stories/interfaces.ts"; | ||
import {loadCast, loadScript} from "@src/entrance.ts"; | ||
import {StoryScript} from "@src/stories/story-types.ts"; | ||
import {StoryTypes} from "@src/stories/story-kinds.ts"; | ||
|
||
const exampleMappingProfiles = { | ||
AI: { | ||
role: "AI" | ||
}, | ||
User: { | ||
role: "User" | ||
}, | ||
} satisfies CastProfiles; | ||
|
||
const exampleMappingCast = loadCast(exampleMappingProfiles); | ||
|
||
|
||
const exampleMappingScript = { | ||
type: StoryTypes.EXAMPLE_MAPPING, | ||
story: "Chat App", | ||
cast: exampleMappingCast, | ||
rules: { | ||
userMessageCannotBeTooLong: { | ||
story: "User message cannot exceed 100 characters", | ||
examples: { | ||
userSendsMessageTooLong: { | ||
story: "User sends message with 200 characters", | ||
}, | ||
userSendsMessageWithinLimit: { | ||
story: "User sends message with 100 characters", | ||
rules: { | ||
somethingElse: { | ||
story : "Something else", | ||
} | ||
} | ||
}, | ||
} | ||
} | ||
}, | ||
} satisfies StoryScript<typeof exampleMappingCast>; | ||
|
||
export const exampleMappingStory = loadScript(exampleMappingScript); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.