Skip to content

Commit

Permalink
test(storybook): group entity property stories according to datatype
Browse files Browse the repository at this point in the history
  • Loading branch information
sleidig committed Sep 14, 2023
1 parent 1f9cc78 commit c279d57
Show file tree
Hide file tree
Showing 21 changed files with 21 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { DisplayCheckmarkComponent } from "./display-checkmark.component";
import { importProvidersFrom } from "@angular/core";

export default {
title: "Core/Entities/Display Properties/DisplayCheckmark",
title: "Core/Entities/Properties/boolean/DisplayCheckmark",
component: DisplayCheckmarkComponent,
decorators: [
applicationConfig({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { generateFormFieldStory } from "../../../entity/default-datatype/edit-co
const formFieldStory = generateFormFieldStory("EditBoolean", true);

export default {
title: "Core/Entities/Edit Properties/EditBoolean",
title: "Core/Entities/Properties/boolean/EditBoolean",
...formFieldStory.meta,
};
const Template: StoryFn = (args) => ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const formFieldStory = generateFormFieldStory(
);

export default {
title: "Core/Entities/Edit Properties/EditConfigurableEnum",
title: "Core/Entities/Properties/configurable-enum/EditConfigurableEnum",
...formFieldStory.meta,
};
const Template: StoryFn = (args) => ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { DateWithAge } from "../../../../child-dev-project/children/model/dateWi
import { importProvidersFrom } from "@angular/core";

export default {
title: "Core/Entities/Display Properties/DisplayAge",
title: "Core/Entities/Properties/date/DisplayAge",
component: DisplayAgeComponent,
decorators: [
applicationConfig({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const formFieldStory = generateFormFieldStory(
);

export default {
title: "Core/Entities/Edit Properties/EditAge",
title: "Core/Entities/Properties/date/EditAge",
...formFieldStory.meta,
};
const Template: StoryFn = (args) => ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { DisplayDateComponent } from "./display-date.component";
import { importProvidersFrom } from "@angular/core";

export default {
title: "Core/Entities/Display Properties/DisplayDate",
title: "Core/Entities/Properties/date/DisplayDate",
component: DisplayDateComponent,
decorators: [
applicationConfig({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const formFieldStory = generateFormFieldStory(
);

export default {
title: "Core/Entities/Edit Properties/EditDate",
title: "Core/Entities/Properties/date/EditDate",
...formFieldStory.meta,
};
const Template: StoryFn = (args) => ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ child5.name = "Fifth Name";
child5.projectNumber = "5";

export default {
title: "Core/Entities/Display Properties/DisplayEntityArray",
title: "Core/Entities/Properties/entity-array/DisplayEntityArray",
component: DisplayEntityArrayComponent,
decorators: [
applicationConfig({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const user2 = new User("2");
user2.name = "other entity";

export default {
title: "Core/Entities/Edit Properties/Entity Reference Array",
title: "Core/Entities/Properties/entity-array/Entity Reference Array",
component: FormComponent,
decorators: [
applicationConfig({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { StorybookBaseModule } from "../../../../utils/storybook-base.module";
import { importProvidersFrom } from "@angular/core";

export default {
title: "Core/Entities/Display Properties/DisplayEntity",
title: "Core/Entities/Properties/entity/DisplayEntity",
component: DisplayEntityComponent,
decorators: [
applicationConfig({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const child1 = new Child("1");
child1.name = "test child";

export default {
title: "Core/Entities/Edit Properties/Entity Reference",
title: "Core/Entities/Properties/entity/Entity Reference",
component: FormComponent,
decorators: [
applicationConfig({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { DisplayMonthComponent } from "./display-month.component";
import { importProvidersFrom } from "@angular/core";

export default {
title: "Core/Entities/Display Properties/DisplayMonth",
title: "Core/Entities/Properties/date/DisplayMonth",
component: DisplayMonthComponent,
decorators: [
applicationConfig({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const formFieldStory = generateFormFieldStory(
);

export default {
title: "Core/Entities/Edit Properties/EditMonth",
title: "Core/Entities/Properties/date/EditMonth",
...formFieldStory.meta,
};
const Template: StoryFn = (args) => ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { StorybookBaseModule } from "../../../../utils/storybook-base.module";
import { importProvidersFrom } from "@angular/core";

export default {
title: "Core/Entities/Display Properties/DisplayPercentage",
title: "Core/Entities/Properties/number/DisplayPercentage",
component: DisplayPercentageComponent,
decorators: [
applicationConfig({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { DisplayUnitComponent } from "./display-unit.component";
import { importProvidersFrom } from "@angular/core";

export default {
title: "Core/Entities/Display Properties/DisplayUnit",
title: "Core/Entities/Properties/number/DisplayUnit",
component: DisplayUnitComponent,
decorators: [
applicationConfig({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { generateFormFieldStory } from "../../../entity/default-datatype/edit-co
const formFieldStory = generateFormFieldStory("EditNumber", 123);

export default {
title: "Core/Entities/Edit Properties/EditNumber",
title: "Core/Entities/Properties/number/EditNumber",
...formFieldStory.meta,
};
const Template: StoryFn = (args) => ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { DisplayTextComponent } from "./display-text.component";
import { importProvidersFrom } from "@angular/core";

export default {
title: "Core/Entities/Display Properties/DisplayText",
title: "Core/Entities/Properties/string/DisplayText",
component: DisplayTextComponent,
decorators: [
applicationConfig({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { generateFormFieldStory } from "../../../entity/default-datatype/edit-co
const formFieldStory = generateFormFieldStory("EditLongText", "abcde\nxyz");

export default {
title: "Core/Entities/Edit Properties/EditLongText",
title: "Core/Entities/Properties/string/EditLongText",
...formFieldStory.meta,
};
const Template: StoryFn = (args) => ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { generateFormFieldStory } from "../../../entity/default-datatype/edit-co
const formFieldStory = generateFormFieldStory("EditText", "some text");

export default {
title: "Core/Entities/Edit Properties/EditText",
title: "Core/Entities/Properties/string/EditText",
...formFieldStory.meta,
};
const Template: StoryFn = (args) => ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const formFieldStory = generateFormFieldStory(
);

export default {
title: "Core/Entities/Edit Properties/EditDescriptionOnly",
title: "Core/Entities/Properties/EditDescriptionOnly",
...formFieldStory.meta,
};
const Template: StoryFn = (args) => ({
Expand Down
2 changes: 1 addition & 1 deletion src/app/features/file/edit-photo/edit-photo.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { generateFormFieldStory } from "../../../core/entity/default-datatype/ed
const formFieldStory = generateFormFieldStory("EditPhoto", undefined);

export default {
title: "Core/Entities/Edit Properties/EditPhoto",
title: "Core/Entities/Properties/photo/EditPhoto",
...formFieldStory.meta,
};
const Template: StoryFn = (args) => ({
Expand Down

0 comments on commit c279d57

Please sign in to comment.