Develop onboarding logging - #17
Merged
Merged
Conversation
- Add `formatToEnabledOrDisabled` method to `BooleanFormatter.java`. - Format `Boolean.TRUE` to "Enabled", `Boolean.FALSE` or other non-null to "Disabled", and `null` to "N/A". Signed-off-by: Egg-03 <111327101+eggy03@users.noreply.github.com>
- Add handling for `prompts` updates in `OnboardingUpdateEventHelper.java`. - Introduce `ONBOARDING_PROMPT_CREATE`, `ONBOARDING_PROMPT_UPDATE`, and `ONBOARDING_PROMPT_DELETE` event types. - Reformat `case` statements and update event comments in `AuditLogEventListener.java`. Signed-off-by: Egg-03 <111327101+eggy03@users.noreply.github.com> feat(audit): add support for onboarding update audit events - Introduce `OnboardingUpdateEventHelper.java` to format `ONBOARDING_UPDATE` audit log events. - Integrate the new helper into `AuditLogEventListener.java` to process these events. - This allows the bot to log changes made to Discord's onboarding feature. Signed-off-by: Egg-03 <111327101+eggy03@users.noreply.github.com> feat(onboarding): display onboarding mode changes in audit logs - Add `OnboardingFormatter` utility to convert onboarding mode values (`"0"`, `"1"`) to human-readable strings. - Update `OnboardingUpdateEventHelper` to use `OnboardingFormatter` for displaying onboarding mode changes in audit log embeds. - This provides specific context for onboarding mode changes, instead of generic "from: X to: Y". Signed-off-by: Egg-03 <111327101+eggy03@users.noreply.github.com> refactor(onboarding): rename utility and enhance audit log details - rename `OnboardingFormatter` to `OnboardingUtils` - enhance `OnboardingUpdateEventHelper` to display old and new values for `enabled`, `mode`, and `default_channel_ids` - add `formatStatus` and `resolveChannelsFromList` methods to `OnboardingUtils` - update `AuditLogEventListener` call for `ONBOARDING_UPDATE` event - add placeholder cases for `HOME_SETTINGS_CREATE` and `HOME_SETTINGS_UPDATE` events Signed-off-by: Egg-03 <111327101+eggy03@users.noreply.github.com>
- Replaced `System.lineSeparator()` and `", "` with a single space in utility string builders. - Removed redundant trailing comma-space deletion in `OnboardingUtils.java`. - Ensures consistent output formatting across utilities. Signed-off-by: Egg-03 <111327101+eggy03@users.noreply.github.com>
- Implement dedicated helper classes for `ONBOARDING_PROMPT_CREATE`, `ONBOARDING_PROMPT_UPDATE`, and `ONBOARDING_PROMPT_DELETE` events. - Integrate these helpers into `AuditLogEventListener` to provide detailed audit log messages for onboarding prompt changes. Signed-off-by: Egg-03 <111327101+eggy03@users.noreply.github.com>
- update project version from `2.4.0` to `2.5.0` in `pom.xml` - update `VERSION` constant from `"v2.4.0"` to `"v2.5.0"` in `src/main/java/org/papertrail/commons/constant/ProjectInfo.java` Signed-off-by: Egg-03 <111327101+eggy03@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.