Skip to content

Client consent screen - #225

Open
NonSwag wants to merge 8 commits into
mainfrom
feat/onboarding-screen
Open

Client consent screen#225
NonSwag wants to merge 8 commits into
mainfrom
feat/onboarding-screen

Conversation

@NonSwag

@NonSwag NonSwag commented Aug 15, 2026

Copy link
Copy Markdown
Member

No description provided.

@NonSwag NonSwag self-assigned this Aug 15, 2026
@NonSwag NonSwag added the enhancement New feature or request label Aug 15, 2026
@NonSwag
NonSwag force-pushed the feat/onboarding-screen branch from db7364e to a3550c2 Compare August 15, 2026 10:13
@NonSwag
NonSwag force-pushed the feat/onboarding-screen branch from a3550c2 to 24544f6 Compare August 15, 2026 10:29
@Contract(mutates = "io")
public void persist() throws RuntimeException {
final var properties = readOrEmpty(file);
if (properties == null) throw new IllegalStateException("Metrics config has not been initialized");

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

create file

Comment on lines +271 to +288

@Override
public boolean equals(final Object object) {
if (this == object) return true;
if (!(object instanceof final SimpleConfig that)) return false;
return enabled == that.enabled
&& additionalMetrics == that.additionalMetrics
&& debug == that.debug
&& submitMetrics == that.submitMetrics
&& errorTracking == that.errorTracking
&& firstRun == that.firstRun
&& Objects.equals(serverId, that.serverId);
}

@Override
public int hashCode() {
return Objects.hash(serverId, enabled, additionalMetrics, debug, submitMetrics, errorTracking, firstRun);
}

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

equals and hashCode should not be overridden

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

still dont like it

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

still dont like it; also the javadocs are horrific

Comment on lines +77 to +78
final var start = preSubmissionStart();
if (!lifecycleManaged && !start) return;

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

guard preSubmissionStart with lifecycleManaged; otherwise the onboarding message is printed multiple times


@Override
public void shutdown() {
public synchronized void shutdown() {

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

i hate all of this

if (handler != null) handler.uncaughtException(thread, error);
}

// todo: revise

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

todo still valid: hate it still

import java.util.stream.Collectors;

@ApiStatus.Internal
// todo: revise

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

same here: still sucks

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

outdated file; delete

plugins {
id("net.fabricmc.fabric-loom") version "1.15-SNAPSHOT"
kotlin("jvm")
//kotlin("jvm")

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

don't forget to un-uncomment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants