Skip to content
New issue

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

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

Already on GitHub? # to your account

feat: Allow specifying the placeholder text of workspace comments. #8608

Merged
merged 1 commit into from
Oct 2, 2024

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
Contributor

@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 google:rc/v12.0.0 Oct 2, 2024
7 checks passed
@gonfunko gonfunko deleted the comment-placeholders branch October 2, 2024 17:32
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
PR: feature Adds a feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants