From db327378fac990d61f1420b4085e92793b26d8d6 Mon Sep 17 00:00:00 2001 From: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> Date: Fri, 8 Nov 2024 10:00:56 +0530 Subject: [PATCH] feat(v4): Add new conversation card component (#10392) --- .../ConversationCard/CardLabels.vue | 95 ++++ .../ConversationCard/CardMessagePreview.vue | 59 +++ .../CardMessagePreviewWithMeta.vue | 86 ++++ .../ConversationCard/CardPriorityIcon.vue | 207 ++++++++ .../ConversationCard.story.vue | 477 ++++++++++++++++++ .../ConversationCard/ConversationCard.vue | 102 ++++ .../ConversationCard/SLACardLabel.vue | 90 ++++ .../components-next/avatar/Avatar.vue | 195 +++++-- app/javascript/histoire.setup.ts | 2 + 9 files changed, 1264 insertions(+), 49 deletions(-) create mode 100644 app/javascript/dashboard/components-next/Conversation/ConversationCard/CardLabels.vue create mode 100644 app/javascript/dashboard/components-next/Conversation/ConversationCard/CardMessagePreview.vue create mode 100644 app/javascript/dashboard/components-next/Conversation/ConversationCard/CardMessagePreviewWithMeta.vue create mode 100644 app/javascript/dashboard/components-next/Conversation/ConversationCard/CardPriorityIcon.vue create mode 100644 app/javascript/dashboard/components-next/Conversation/ConversationCard/ConversationCard.story.vue create mode 100644 app/javascript/dashboard/components-next/Conversation/ConversationCard/ConversationCard.vue create mode 100644 app/javascript/dashboard/components-next/Conversation/ConversationCard/SLACardLabel.vue diff --git a/app/javascript/dashboard/components-next/Conversation/ConversationCard/CardLabels.vue b/app/javascript/dashboard/components-next/Conversation/ConversationCard/CardLabels.vue new file mode 100644 index 000000000..dfd4115e8 --- /dev/null +++ b/app/javascript/dashboard/components-next/Conversation/ConversationCard/CardLabels.vue @@ -0,0 +1,95 @@ + + + diff --git a/app/javascript/dashboard/components-next/Conversation/ConversationCard/CardMessagePreview.vue b/app/javascript/dashboard/components-next/Conversation/ConversationCard/CardMessagePreview.vue new file mode 100644 index 000000000..dfa31e100 --- /dev/null +++ b/app/javascript/dashboard/components-next/Conversation/ConversationCard/CardMessagePreview.vue @@ -0,0 +1,59 @@ + + + diff --git a/app/javascript/dashboard/components-next/Conversation/ConversationCard/CardMessagePreviewWithMeta.vue b/app/javascript/dashboard/components-next/Conversation/ConversationCard/CardMessagePreviewWithMeta.vue new file mode 100644 index 000000000..374da1f88 --- /dev/null +++ b/app/javascript/dashboard/components-next/Conversation/ConversationCard/CardMessagePreviewWithMeta.vue @@ -0,0 +1,86 @@ + + + diff --git a/app/javascript/dashboard/components-next/Conversation/ConversationCard/CardPriorityIcon.vue b/app/javascript/dashboard/components-next/Conversation/ConversationCard/CardPriorityIcon.vue new file mode 100644 index 000000000..d51764ef5 --- /dev/null +++ b/app/javascript/dashboard/components-next/Conversation/ConversationCard/CardPriorityIcon.vue @@ -0,0 +1,207 @@ + + + + diff --git a/app/javascript/dashboard/components-next/Conversation/ConversationCard/ConversationCard.story.vue b/app/javascript/dashboard/components-next/Conversation/ConversationCard/ConversationCard.story.vue new file mode 100644 index 000000000..a71ab24d7 --- /dev/null +++ b/app/javascript/dashboard/components-next/Conversation/ConversationCard/ConversationCard.story.vue @@ -0,0 +1,477 @@ + + + diff --git a/app/javascript/dashboard/components-next/Conversation/ConversationCard/ConversationCard.vue b/app/javascript/dashboard/components-next/Conversation/ConversationCard/ConversationCard.vue new file mode 100644 index 000000000..d99234a27 --- /dev/null +++ b/app/javascript/dashboard/components-next/Conversation/ConversationCard/ConversationCard.vue @@ -0,0 +1,102 @@ + + + diff --git a/app/javascript/dashboard/components-next/Conversation/ConversationCard/SLACardLabel.vue b/app/javascript/dashboard/components-next/Conversation/ConversationCard/SLACardLabel.vue new file mode 100644 index 000000000..a9db5d99b --- /dev/null +++ b/app/javascript/dashboard/components-next/Conversation/ConversationCard/SLACardLabel.vue @@ -0,0 +1,90 @@ + + + diff --git a/app/javascript/dashboard/components-next/avatar/Avatar.vue b/app/javascript/dashboard/components-next/avatar/Avatar.vue index d558f030a..39614f6b3 100644 --- a/app/javascript/dashboard/components-next/avatar/Avatar.vue +++ b/app/javascript/dashboard/components-next/avatar/Avatar.vue @@ -1,6 +1,9 @@