Skip to content

Conversation

@gonfunko
Copy link
Contributor

@gonfunko gonfunko commented Oct 1, 2024

The basics

The details

This PR adds a setPlaceholderText() method to CommentView and RenderedWorkspaceComment that allows specifying the placeholder text for a comment. It also updates the workspace comment creation contextual menu item to set the default text as a placeholder instead of literal text so that users don't have to manually delete/type over it to write their comment.

@gonfunko gonfunko requested a review from a team as a code owner October 1, 2024 17:59
@gonfunko gonfunko requested a review from cpcallen October 1, 2024 17:59
@github-actions github-actions bot added the PR: feature Adds a feature label Oct 1, 2024
@gonfunko gonfunko force-pushed the comment-placeholders branch from fa9ebf1 to 713f23c Compare October 2, 2024 16:49
Copy link
Collaborator

@cpcallen cpcallen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like a good change. The only thing I wonder is if we should rename WORKSPACE_COMMENT_DEFAULT_TEXT to WORKSPACE_COMMENT_PLACEHOLDER_TEXT (and tweak its description in msg/messages.js) for clarity. But doing that should probably be held until we have a two-way connection with Translatewiki again, so could you file a bug about it?

@gonfunko
Copy link
Contributor Author

gonfunko commented Oct 2, 2024

Sure, filed #8609.

@gonfunko gonfunko merged commit 2dfd8c3 into RaspberryPiFoundation:rc/v12.0.0 Oct 2, 2024
@gonfunko gonfunko deleted the comment-placeholders branch October 2, 2024 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: feature Adds a feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants