From b209259893e3baaef2ee7e387224d237bdba9b6b Mon Sep 17 00:00:00 2001 From: Nick <81814644+nickjjang@users.noreply.github.com> Date: Mon, 29 Nov 2021 11:53:25 -0500 Subject: [PATCH] Feat(Timestamp): Add timestamp to Message Actions (AP-106) (#318) * Feat(Timestamp): Add timestamp to Message Actions (AP-106) * fix(chat reaction): Fix 'Emoji reactions will increase if user navigates to a different page and back to chat again' (#306) * fix(chat reaction): Fix 'Emoji reactions will increase if user navigates to a different page and back to chat again' * put space after if * fix(message): update timestamp message every minute (#300) * chore: rebase dev * chore(message): changes in response to pr review Co-authored-by: Samir Vimercati * implements lazy loading for glyphs - AP-101 (#311) * (update)glyphs: add vuetify import * update(lazy load glyphs): update implemintation of glyphs to allow lazy loading brought in from vuetify. * Nuke old code * nuke old code * fix - Duplicate friends are being added when page is re-rendered - AP-64 (#308) * fixed duplicated friends issue = AP-64 * Update actions.ts Co-authored-by: Matt Wisniewski * chore(readme): doc update (#319) Updating readme Adding .env.example file Updated satellite-lucide-icons to not need ssh key uploaded to github closes no tickets * fix merge conflict * Fix messageOwner in Action html * fix(Timestamp): removed messageOwner in Action components * fix(timestamp): add comma dangle Co-authored-by: Eric Lee Co-authored-by: vimercati-samir <52865716+vimercati-samir@users.noreply.github.com> Co-authored-by: Samir Vimercati Co-authored-by: Jeff Kristian Co-authored-by: David Chan <57536961+davidchan1219@users.noreply.github.com> Co-authored-by: Matt Wisniewski Co-authored-by: Chris Hogan --- .vscode/settings.json | 5 ++++- components/tailored/messaging/message/Message.html | 14 +++----------- .../messaging/message/actions/Actions.html | 5 +++-- .../messaging/message/actions/Actions.less | 8 +++++++- .../tailored/messaging/message/actions/Actions.vue | 12 +++++++++--- 5 files changed, 26 insertions(+), 18 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 1f477646f5..dbabbebadf 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,3 +1,6 @@ { - "editor.defaultFormatter": "esbenp.prettier-vscode" + "editor.defaultFormatter": "esbenp.prettier-vscode", + "[vue]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + } } \ No newline at end of file diff --git a/components/tailored/messaging/message/Message.html b/components/tailored/messaging/message/Message.html index bf9d902397..8838012417 100644 --- a/components/tailored/messaging/message/Message.html +++ b/components/tailored/messaging/message/Message.html @@ -27,18 +27,10 @@ :setReplyChatbarContent="setReplyChatbarContent" :emojiReaction="emojiReaction" :editMessage="editMessage" - :messageOwner="this.$props.message.from" - /> - - + + +
{{$dayjs(message.at).from()}}
@@ -37,4 +38,4 @@ >
- \ No newline at end of file + diff --git a/components/tailored/messaging/message/actions/Actions.less b/components/tailored/messaging/message/actions/Actions.less index ca78d46475..ed100384b0 100644 --- a/components/tailored/messaging/message/actions/Actions.less +++ b/components/tailored/messaging/message/actions/Actions.less @@ -10,6 +10,12 @@ display: flex; box-sizing: border-box; height: 36px; + font-size: 14px; + align-items: center; + padding: 0 0.25rem; + .reply-text { + padding: 0 0.25rem; + } .reply-command { width: 35px; // height: 35px; @@ -32,4 +38,4 @@ color: @text; } } -} \ No newline at end of file +} diff --git a/components/tailored/messaging/message/actions/Actions.vue b/components/tailored/messaging/message/actions/Actions.vue index c396806782..6130cd4b2a 100644 --- a/components/tailored/messaging/message/actions/Actions.vue +++ b/components/tailored/messaging/message/actions/Actions.vue @@ -37,9 +37,15 @@ export default Vue.extend({ type: Function, default: () => () => {}, }, - messageOwner: { - type: String, - required: true, + message: { + type: Object as PropType, + default: { + id: '0', + at: 1620515543000, + type: 'text', + from: 'group', + payload: 'Invalid Message', + }, }, }, computed: {