PHANTOM
🇮🇳 IN
Skip to content

Popup: remove Delete button and add Report button#8824

Open
DNin01 wants to merge 3 commits intoScratchAddons:masterfrom
DNin01:report-instead-of-delete
Open

Popup: remove Delete button and add Report button#8824
DNin01 wants to merge 3 commits intoScratchAddons:masterfrom
DNin01:report-instead-of-delete

Conversation

@DNin01
Copy link
Member

@DNin01 DNin01 commented Feb 1, 2026

Resolves #477

Changes

  • Replaces the Delete button with a Report button.
  • Clicking the Report button takes you to the selected comment on Scratch and then opens the Report confirmation dialog.

Reason for changes

  • Reporting comments is a more valuable action than deleting comments.
  • Not all comments can be deleted, so never showing the option to delete comments (which would expand into an even longer "click to confirm deletion" button) maintains consistency and space for other UI elements.
  • The majority of comments are never deleted.
  • It's easier to repurpose an existing element (lol).

Tests

Tested with profile and project comments (no comments were reported).

DNin01 and others added 3 commits February 1, 2026 14:11
Does not remove the Dismiss button from alerts (or at least it should not)
@DNin01 DNin01 added type: enhancement New feature for the project scope: addon Related to one or multiple addons scope: webpages Related to the web pages (settings page, pop-up, etc) labels Feb 1, 2026
v-if="canDeleteComment"
>{{ deleteStep === 0 ? messages.deleteMsg : messages.deleteConfirmMsg }}
</a>
<a class="delete-btn" rel="noopener noreferrer" target="_blank" :href="reportURL">{{ messages.reportMsg }} </a>
Copy link
Member

Choose a reason for hiding this comment

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

Could this class be renamed to match its new purpose?

Suggested change
<a class="delete-btn" rel="noopener noreferrer" target="_blank" :href="reportURL">{{ messages.reportMsg }} </a>
<a class="report-btn" rel="noopener noreferrer" target="_blank" :href="reportURL">{{ messages.reportMsg }} </a>

<span v-show="deleting">{{ messages.deletingMsg }}</span>
<span v-show="deleted && !deleting">{{ messages.deletedMsg }}</span>
<dom-element-renderer :element="thisComment.content" v-show="!deleted"></dom-element-renderer>
<dom-element-renderer :element="thisComment.content"></dom-element-renderer>
Copy link
Member

Choose a reason for hiding this comment

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

I haven't looked into it yet but is re-rendering still necessary?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: addon Related to one or multiple addons scope: webpages Related to the web pages (settings page, pop-up, etc) type: enhancement New feature for the project

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ability to report comments from within the messaging addon

2 participants