Skip to content

Conversation

AlexD717
Copy link
Member

@AlexD717 AlexD717 commented Jun 30, 2025

Description

Implements and Expands Unit Tests for the Preference System.

Testing Done

  • All unit tests pass

JIRA Issue

@AlexD717 AlexD717 requested review from a team as code owners June 30, 2025 20:02
@AlexD717 AlexD717 self-assigned this Jun 30, 2025
Copy link
Collaborator

@Dhruv-0-Arora Dhruv-0-Arora left a comment

Choose a reason for hiding this comment

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

Can you remove the console.log("Cleared all preferences") in the PreferenceSystem.ts file

    /** Removes all preferences from local storage. */
    public static clearPreferences() {
        window.localStorage.removeItem(this._localStorageKey)
        this._preferences = {}
        console.log("Cleared all preferences")
    }

Makes sense to remove in this PR since it console logs when you are running the test.

@Dhruv-0-Arora
Copy link
Collaborator

Can you remove the console.log("Cleared all preferences") in the PreferenceSystem.ts file

    /** Removes all preferences from local storage. */
    public static clearPreferences() {
        window.localStorage.removeItem(this._localStorageKey)
        this._preferences = {}
        console.log("Cleared all preferences")
    }

Makes sense to remove in this PR since it console logs when you are running the test.

Might be worth creating like a UI popup later that notifies the user that they cleared their preferences.

@AlexD717 AlexD717 requested a review from Dhruv-0-Arora July 1, 2025 21:04
@AlexD717
Copy link
Member Author

AlexD717 commented Jul 2, 2025

Might be worth creating like a UI popup later that notifies the user that they cleared their preferences.

If you want, I could add a toast that appears, it would be fairly easy

Copy link
Member

@BrandonPacewic BrandonPacewic left a comment

Choose a reason for hiding this comment

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

If you want, I could add a toast that appears, it would be fairly easy.

Not really worth it for this PR I don't think. This covers what we want, I think removing the console log is just fine considering we would want to remove all these logs anyways at a later date.

@Dhruv-0-Arora Can you re-review?

* dev: (67 commits)
  formatting
  fix: remove toast when saving configuration of ejectable
  docs(swerve): update repo owner to `Autodesk`
  docs(swerve): create swerve detection doc file
  fix: normalize all sound effects to -12dB
  Removed Console.log
  Bug Fix: Collision detects outside of protected zone
  MatchMode supports endgame
  Better Function Naming
  Removed Unused Import
  Remove casting
  docs(pr): add jira ticket id to pr request template
  fix: avoid relying on UMD globals for 3js
  fix: properly upgrade to threejs 0.178.0
  fix: lock three.js to 0.165.0 to prevent crashing on import
  docs(exporter): revert link aard issue to new function
  docs(exporter): link aard issue to new function
  fix: update NOTICE.txt, remove external uses of SoundPlayer.play
  feat: check in new click sounds
  fix: reduce pitch on clickup sound
  ...
@BrandonPacewic BrandonPacewic dismissed Dhruv-0-Arora’s stale review July 8, 2025 23:20

Requested changes will not be a part of this PR.

@BrandonPacewic BrandonPacewic mentioned this pull request Jul 8, 2025
@BrandonPacewic BrandonPacewic merged commit caacf37 into dev Jul 8, 2025
15 checks passed
@BrandonPacewic BrandonPacewic deleted the alexey/1936/preference-system-testing branch July 8, 2025 23:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants