Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

fix(posts): Post Button interactions (Like, Boost, Respond, Share, Report) [MOSOWEB-44] #75

Merged
merged 24 commits into from
Nov 8, 2023
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
d0b303d
fix(posts): analytics for home.feed.post.reply, good starting point
jpezninjo Oct 30, 2023
7aecd40
fix(posts): setup for standalone posts
jpezninjo Oct 30, 2023
034c76a
fix(posts): reblog
jpezninjo Oct 30, 2023
171056d
fix(posts): recordEngagement function
jpezninjo Oct 30, 2023
4ab3c49
fix(posts): favorite
jpezninjo Oct 30, 2023
32bb7b2
fix(posts): favorite
jpezninjo Oct 30, 2023
3472e20
fix(posts): mastodon_status_id
jpezninjo Oct 30, 2023
b44088e
fix(posts): engagement types for the 8 events so far, set up postEven…
jpezninjo Oct 30, 2023
82d4989
fix(posts): report
jpezninjo Oct 30, 2023
df64fbb
fix(posts): favorites feed
jpezninjo Oct 30, 2023
cc37101
fix(posts): bookmarks feed
jpezninjo Oct 31, 2023
86c6a98
fix(posts): local and federated feeds
jpezninjo Oct 31, 2023
e8a6aa1
fix(posts): whoops, missed engagement_type on bookmarks feed, favorit…
jpezninjo Oct 31, 2023
8538808
fix(posts): rename 'thing' to something actually appropriate
jpezninjo Oct 31, 2023
333b6fd
fix(posts): make feedName optional in StatusActionsMore
jpezninjo Oct 31, 2023
a77f933
fix(posts): update reply ui_identifier to avoid conflicting to actual…
jpezninjo Nov 2, 2023
e0b5ea7
fix(posts): make feedName for StatusCards option
jpezninjo Nov 7, 2023
4f190f3
fix(posts): feedname for account feed, make prop in TimelinePaginator…
jpezninjo Nov 7, 2023
39e3647
fix(posts): change post reply 'reply' to 'open-reply'
jpezninjo Nov 7, 2023
503c6ba
fix(posts): account feed events engagement_type's
jpezninjo Nov 7, 2023
ac60309
Merge branch 'main' into fix/posts-buttons-engagement-events
jpezninjo Nov 7, 2023
1b49549
fix(posts): do separate events for undo actions
jpezninjo Nov 7, 2023
f5e732d
fix(posts): bad merge
jpezninjo Nov 7, 2023
90acbfb
Merge branch 'main' into fix/posts-buttons-engagement-events
jpezninjo Nov 8, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(posts): reblog
jpezninjo committed Oct 30, 2023
commit 034c76aad34fa0f5df2844579462be3d6076fb47
9 changes: 8 additions & 1 deletion components/status/StatusActions.vue
Original file line number Diff line number Diff line change
@@ -37,6 +37,13 @@ function reply() {
else
navigateToStatus({ status, focusReply: true })
}

function reblog() {
const analyticsId = thing ? `${thing}.post.reblog` : 'post.reblog'
engagement.record({ ui_identifier: analyticsId, ...engagementDetails[analyticsId] })

toggleReblog()
}
</script>

<template>
@@ -69,7 +76,7 @@ function reply() {
:active="!!status.reblogged"
:disabled="isLoading.reblogged || !canReblog"
:command="command"
@click="toggleReblog()"
@click="reblog"
>
<template v-if="status.reblogsCount && !getPreferences(userSettings, 'hideBoostCount')" #text>
<CommonLocalizedNumber