[AE-11486] remove unused comment services and improve doc (#8092)

* remove unused comment services and improve doc

* fix after review

* fix unit test

* fix stories
This commit is contained in:
Eugenio Romano
2023-01-04 15:52:32 +01:00
committed by GitHub
parent aa37cad995
commit 6f6af8cd4e
20 changed files with 110 additions and 692 deletions

View File

@@ -19,7 +19,7 @@ import { Meta, moduleMetadata, Story } from '@storybook/angular';
import { CoreStoryModule } from '../testing/core.story.module';
import { CommentListComponent } from './comment-list.component';
import { CommentsModule } from './comments.module';
import { commentsTaskData, commentsNodeData } from '../mock/comment-content.mock';
import { commentsTaskData, commentsNodeData } from './mocks/comments.stories.mock';
import { EcmUserService } from '../services';
export default {

View File

@@ -103,3 +103,65 @@ export const commentsStoriesData: CommentModel[] = [
isSelected: false
}
];
export const commentsNodeData: CommentModel[] = [
{
id: 1,
message: `I've done this component, is it cool?`,
created: getDateXMinutesAgo(30),
createdBy: johnDoe,
isSelected: false
},
{
id: 2,
message: 'Yeah',
created: getDateXMinutesAgo(15),
createdBy: janeEod,
isSelected: false
},
{
id: 3,
message: '+1',
created: getDateXMinutesAgo(12),
createdBy: robertSmith,
isSelected: false
},
{
id: 4,
message: 'ty',
created: new Date(),
createdBy: johnDoe,
isSelected: false
}
];
export const commentsTaskData: CommentModel[] = [
{
id: 1,
message: `I've done this task, what's next?`,
created: getDateXMinutesAgo(30),
createdBy: johnDoe,
isSelected: false
},
{
id: 2,
message: `I've assigned you another one 🤠`,
created: getDateXMinutesAgo(15),
createdBy: janeEod,
isSelected: false
},
{
id: 3,
message: '+1',
created: getDateXMinutesAgo(12),
createdBy: robertSmith,
isSelected: false
},
{
id: 4,
message: 'Cheers',
created: new Date(),
createdBy: johnDoe,
isSelected: false
}
];