Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 7, 2026

Players can now click message IDs directly from list views to open messages, and use clickable [Archive]/[Delete] buttons when viewing messages instead of typing commands manually.

Changes

Message List View (Mailbox.java)

  • Message IDs now render as clickable components that execute /m open <ID> on click
  • Added hover tooltip: "Click to open message"
  • Preserved existing formatting (bold for unread, 📎 attachment indicator)

Message Detail View (Message.java)

  • Added action button row after message content:
    • Green [Archive] button (hidden if already archived) → /m archive <ID>
    • Red [Delete] button (always visible) → /m delete <ID>
  • Both buttons include hover tooltips explaining their function

Implementation

Uses Spigot BungeeCord Chat API (TextComponent, ClickEvent, HoverEvent) to create interactive text components:

TextComponent idComponent = new TextComponent("ID: " + message.getID());
idComponent.setClickEvent(new ClickEvent(ClickEvent.Action.RUN_COMMAND, "/m open " + message.getID()));
idComponent.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, 
    new ComponentBuilder("Click to open message").create()));

All existing commands remain functional. Test coverage added in MessageInteractivityTest.java.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • hub.spigotmc.org
    • Triggering command: /usr/lib/jvm/temurin-17-jdk-amd64/bin/java /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --enable-native-access=ALL-UNNAMED -classpath /usr/share/apache-maven-3.9.11/boot/plexus-classworlds-2.9.0.jar -Dclassworlds.conf=/usr/share/apache-maven-3.9.11/bin/m2.conf -Dmaven.home=/usr/share/apache-maven-3.9.11 -Dlibrary.jansi.path=/usr/share/apache-maven-3.9.11/lib/jansi-native -Dmaven.multiModuleProjectDirectory=/home/REDACTED/work/Mailboxes/Mailboxes org.codehaus.plexus.classworlds.launcher.Launcher clean test -q (dns block)
    • Triggering command: /usr/lib/jvm/temurin-17-jdk-amd64/bin/java /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --enable-native-access=ALL-UNNAMED -classpath /usr/share/apache-maven-3.9.11/boot/plexus-classworlds-2.9.0.jar -Dclassworlds.conf=/usr/share/apache-maven-3.9.11/bin/m2.conf -Dmaven.home=/usr/share/apache-maven-3.9.11 -Dlibrary.jansi.path=/usr/share/apache-maven-3.9.11/lib/jansi-native -Dmaven.multiModuleProjectDirectory=/home/REDACTED/work/Mailboxes/Mailboxes org.codehaus.plexus.classworlds.launcher.Launcher compile -q (dns block)
    • Triggering command: /usr/lib/jvm/temurin-17-jdk-amd64/bin/java /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --enable-native-access=ALL-UNNAMED -classpath /usr/share/apache-maven-3.9.11/boot/plexus-classworlds-2.9.0.jar -Dclassworlds.conf=/usr/share/apache-maven-3.9.11/bin/m2.conf -Dmaven.home=/usr/share/apache-maven-3.9.11 -Dlibrary.jansi.path=/usr/share/apache-maven-3.9.11/lib/jansi-native -Dmaven.multiModuleProjectDirectory=/home/REDACTED/work/Mailboxes/Mailboxes org.codehaus.plexus.classworlds.launcher.Launcher -f pom.xml -B -V -e -Dfindbugs.skip -Dcheckstyle.skip -Dpmd.skip=true -Dspotbugs.skip -Denforcer.skip -Dmaven.javadoc.skip (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Enable Message List and Message View Interactions with Archive and Delete Actions</issue_title>
<issue_description>As a player, I want to open messages by clicking on them directly from the message list view, so that I can quickly read individual messages. When viewing a message, I want the ability to archive or delete it using clearly available actions, allowing me to efficiently manage my messages.</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits January 7, 2026 05:37
Co-authored-by: dmccoystephenson <21204351+dmccoystephenson@users.noreply.github.com>
Co-authored-by: dmccoystephenson <21204351+dmccoystephenson@users.noreply.github.com>
Copilot AI changed the title [WIP] Enable message list and view interactions with archive and delete actions Add clickable message IDs and action buttons to mailbox UI Jan 7, 2026
Copilot AI requested a review from dmccoystephenson January 7, 2026 05:42
@dmccoystephenson dmccoystephenson marked this pull request as ready for review January 8, 2026 00:46
@dmccoystephenson dmccoystephenson merged commit 026390a into main Jan 8, 2026
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.

Enable Message List and Message View Interactions with Archive and Delete Actions

2 participants