Skip to content

Conversation

@pwgit-create
Copy link
Contributor

@pwgit-create pwgit-create commented Oct 9, 2025

🎉 Configuration Joyride: Options Folder & ConfigLoader Class 🎉

  1. New Neighborhood: Created a snazzy options folder that now houses our shiny new .config file! This will
    be the cozy home for all your frontend app settings.

  2. Meet ConfigLoader - Your Configuration Concierge: Developed a Java class (ConfigLoader) with some fancy
    features:

    • 📖 Reader Extraordinaire: Kicks off by reading configuration values from our properties file on startup.
    • 🔑 Access Passport: Offers getter methods to retrieve these values throughout the application's
      lifecycle. Think of it as your VIP pass!
    • ✏️ Runtime Chameleon: Includes setter methods to modify configuration values at runtime, because why not?

Bonus Insights:

  • We've got a private final int appTheme; ready to go! (It can be upgraded to an ENUM later for even more
    pizzazz.)
  • The license key value is currently just chilling out. In the future, it could provide some lightweight
    validation against our local backend. It might not be Fort Knox-level security, but it'll definitely add a smile
    to potential customers' faces! 😄

Important Note: Changes made at runtime will only take effect after the frontend restarts for security
settings. For example, if you switch the theme (from the settings menu): use the regular method (setLookAndFeel) for making the theme update live and then update the config file, so new theme will be remembered on restart. All the values from the config files are set at start as constant values.


  1. Created an options folder with a .config file to store frontend app settings.
  2. Developed a Java class (ConfigLoader) that:
    • Reads configuration values from the properties file on startup
    • Provides getter methods to access these values throughout the application's lifecycle
    • Includes setter methods to modify configuration values at runtime
  3. Bumped to 0.9 in development branch (if merged 🥲) for your convenience :smiley

App Values

frontend.theme ## Values from 1-4 -- number 4 looks great :)
frontend.splashscreen ## true or false


@pwgit-create pwgit-create requested a review from lilstiffy October 9, 2025 02:00
Typo in Java Docs :P
…enhance documentation

1. Refactored main method into a separate class to improve modularity.
2. Introduced FailedToLaunchAppException for better error handling when the frontend application fails to
initialize.
3. Created an app_storage folder containing:
   - splashscreen picture
   - skeleton folder for metadata (in preparation for the upcoming File Quarantine ticket)

   Note: Moving the splashscreen picture from resources to app_storage avoids complications with the
src/main/resources structure in release distributions.

4. Added comprehensive JavaDocs and improved code readability throughout.
Copy link
Contributor

@lilstiffy lilstiffy left a comment

Choose a reason for hiding this comment

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

Great! 👌

@pwgit-create pwgit-create marked this pull request as draft October 9, 2025 14:58
@pwgit-create pwgit-create marked this pull request as ready for review October 9, 2025 14:59
@pwgit-create pwgit-create reopened this Oct 9, 2025
@pwgit-create pwgit-create reopened this Oct 9, 2025
@pwgit-create pwgit-create mentioned this pull request Oct 9, 2025
@pwgit-create pwgit-create reopened this Oct 9, 2025
@pwgit-create pwgit-create merged commit e0f94b6 into develop Oct 9, 2025
@pwgit-create pwgit-create deleted the options_start_work branch October 10, 2025 21:28
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.

3 participants