Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Starred messages #294

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from
Draft

Starred messages #294

wants to merge 12 commits into from

Conversation

frederickobrien
Copy link
Member

@frederickobrien frederickobrien commented Aug 18, 2023

Sister PR: https://github.com/guardian/flexible-content/pull/4400

Co-Authored-By: @twrichards

It's common to see notes used in body copy of Composer for important messages between editorial colleagues that aren't supposed to be published, but with un-noting being a single click they sometimes are.

An ambition of Pinboard has long been to centralise discussions around single pieces of content, not least because of this potentially problematic use of notes.

What does this change?

This adds a new isStarred column to the item table with corresponding GraphQL schema change, updated queries, and a mutation for toggling the new flag on a given item (which triggers the existing onMutateItem subscription).

Introduced a new star icon toggle button beneath the user's avatar to indicate the starred status of messages and on toggle present a confirmation modal (similar to the delete item modal).

Takes over the rendering of the placeholders added in https://github.com/guardian/flexible-content/pull/4400 and lists all starred messages (with timestamp and author) alongside an explainer of the feature.

The result looks a bit like this:

Kapture 2023-12-08 at 15 48 24

How to test

Deploy this and https://github.com/guardian/flexible-content/pull/4400 to their respective CODE environments and create some starred message in CODE Composer (on any article tracked in Workflow CODE, otherwise you won't get starred messages).

How can we measure success?

Ultimately fewer notes published accidentally, and starred messages can connect to larger ongoing conversations around pieces of content.

Have we considered potential risks?

Decoupling editorial notes from body copy does create an opportunity to see one but not the other. If Pinboard were to stop working as expected these important messages may stop being visible to those who most need to see them.

However in the vast majority of cases the sticky positioning and starred background of starred messages makes it more likely that they'll be seen than notes that slip out of the viewport.

Accessibility

Co-Authored-By: Tom Richards <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants