Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scratch-www
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
scratch-www
Commits
62858d05
Unverified
Commit
62858d05
authored
Aug 18, 2021
by
Sarah Otts
Committed by
GitHub
Aug 18, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5935 from seotts/becomehost-activity-feed
Add studio host transfer notification to the activity feed
parents
c3e4868d
f635e14a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
0 deletions
+40
-0
src/views/studio/l10n.json
src/views/studio/l10n.json
+2
-0
src/views/studio/studio-activity.jsx
src/views/studio/studio-activity.jsx
+38
-0
No files found.
src/views/studio/l10n.json
View file @
62858d05
...
@@ -112,6 +112,8 @@
...
@@ -112,6 +112,8 @@
"studio.activityBecomeCurator"
:
"{newCuratorProfileLink} accepted an invitation from {inviterProfileLink} to curate this studio"
,
"studio.activityBecomeCurator"
:
"{newCuratorProfileLink} accepted an invitation from {inviterProfileLink} to curate this studio"
,
"studio.activityRemoveCurator"
:
"{removerProfileLink} removed the curator {removedProfileLink}"
,
"studio.activityRemoveCurator"
:
"{removerProfileLink} removed the curator {removedProfileLink}"
,
"studio.activityBecomeOwner"
:
"{promotedProfileLink} was promoted to manager by {promotorProfileLink}"
,
"studio.activityBecomeOwner"
:
"{promotedProfileLink} was promoted to manager by {promotorProfileLink}"
,
"studio.activityBecomeHost"
:
"{newHostProfileLink} was made the studio host by {actorProfileLink}"
,
"studio.activityBecomeHostAdminActor"
:
"{newHostProfileLink} was made the studio host by a Scratch Team member"
,
"studio.lastUpdated"
:
"Updated {lastUpdatedDate, date, medium}"
,
"studio.lastUpdated"
:
"Updated {lastUpdatedDate, date, medium}"
,
"studio.followerCount"
:
"{followerCount} followers"
,
"studio.followerCount"
:
"{followerCount} followers"
,
...
...
src/views/studio/studio-activity.jsx
View file @
62858d05
...
@@ -166,6 +166,44 @@ const getComponentForItem = item => {
...
@@ -166,6 +166,44 @@ const getComponentForItem = item => {
/>
/>
</
SocialMessage
>
</
SocialMessage
>
);
);
case
'
becomehoststudio
'
:
return
(
<
SocialMessage
datetime=
{
item
.
datetime_created
}
iconSrc=
"/svgs/studio/activity-curator.svg"
iconAlt=
"curator activity icon"
imgClassName=
"studio-activity-icon"
key=
{
item
.
id
}
>
{
item
.
admin_actor
?
<
FormattedMessage
id=
"studio.activityBecomeHostAdminActor"
values=
{
{
newHostProfileLink
:
(
<
a
href=
{
`/users/${item.recipient_username}`
}
>
{
item
.
recipient_username
}
</
a
>
)
}
}
/>
:
<
FormattedMessage
id=
"studio.activityBecomeHost"
values=
{
{
newHostProfileLink
:
(
<
a
href=
{
`/users/${item.recipient_username}`
}
>
{
item
.
recipient_username
}
</
a
>
),
actorProfileLink
:
(
<
a
href=
{
`/users/${item.recipient_username}`
}
>
{
item
.
actor_username
}
</
a
>
)
}
}
/>
}
</
SocialMessage
>
);
}
}
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment