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

Implemented separate 'Moderator Event' tab as per Issue #200 #201

Merged
merged 8 commits into from
Mar 26, 2024

Conversation

magge-faf
Copy link
Contributor

This PR addresses Issue #200 by adding a separate 'Moderator Event' tab next to the 'Chat log'.

Changes include:

  • Upgrade 'sourceCompatibility' from Java 17 to Java 21
  • Upgrade 'commonsVersion' dependency to a new commit from faf-java-commons from commit deb598d to 6e46109
  • Added a separate 'Moderator Event' tab next to 'Chat Log'
  • Populating the tab 'Moderator Event' with its data
  • Update readme for Java 21
  • Refactor time formatting method for chat messages

These changes allow moderators to view moderator-specific events entirely separate from the chat log. Currently, it is very basic and more a "proof of concept", but it is a great start to be extended in the future.

Thanks for the detailed issue description @Garanas
Thanks in advance for your code review @Brutus5000 or @Sheikah45

Fixes #200

Note: Player name is currently the raw represented focus army. I assume further changes to 'parseModeratorEvent' at faf-java-commons are needed to reference it to a player name. If the name can already be obtained from the current data, then please correct me.


Result in UI:

image

@Garanas
Copy link
Member

Garanas commented Mar 25, 2024

Note: Player name is currently the raw represented focus army. I assume further changes to 'parseModeratorEvent' at faf-java-commons are needed to reference it to a player name. If the name can already be obtained from the current data, then please correct me.

This is possible, we'll do that in the next iteration 😃 !

sourceCompatibility = '17'
sourceCompatibility = '21'
Copy link
Member

Choose a reason for hiding this comment

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

If the source compatibility is updated then we need to update the github action as well. This may also require updating gradle

@@ -60,6 +60,9 @@
<TextArea fx:id="chatLogTextArea" editable="false" prefHeight="200.0" prefWidth="200.0"/>
</content>
</Tab>
<Tab text="Moderator Event">
<TextArea fx:id="moderatorEventTextArea" editable="false" prefHeight="200.0" prefWidth="200.0"/>
Copy link
Member

Choose a reason for hiding this comment

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

Do we want this to just be a text area or should it be a list box?

Copy link
Member

Choose a reason for hiding this comment

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

Text area allows moderators to copy/paste it into their AI assistants 😃

Copy link
Member

Choose a reason for hiding this comment

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

yep good point. I always forget about that weakness of javafx

@Sheikah45 Sheikah45 merged commit d06c7e8 into FAForever:develop Mar 26, 2024
1 check passed
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.

Add a separate 'Moderator Event' tab next to 'Chat log'
3 participants