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

feat: Add RevealNicknamesFeature #2408

Merged
merged 3 commits into from
Apr 17, 2024
Merged

Conversation

kristofbolyai
Copy link
Collaborator

@kristofbolyai kristofbolyai commented Apr 16, 2024

image

@kristofbolyai
Copy link
Collaborator Author

I am not merging this until I figure out a StyledText style-generation bug. It's really subtle, but can cause noticeable issues.
image

@ShadowCat117
Copy link
Contributor

Didn't even notice that, I don't think I experienced it when trying out the feature either

@kristofbolyai
Copy link
Collaborator Author

Didn't even notice that, I don't think I experienced it when trying out the feature either

Yeah, but I get it, and I dumped all sibling-style pairs and I can see that the produced style is different. However, I couldn't get further because of time constraints.

@kristofbolyai
Copy link
Collaborator Author

Fixed version:

image

…t part's style even if it is not supposed to
Comment on lines +533 to +538
// The reconstructed componenet differs in that StyledText always adds components as a sibling to an empty
// component
Assertions.assertEquals(
component, styledText.getComponent(), "StyledText.getComponent() returned an unexpected value.");
component.toFlatList(),
styledText.getComponent().toFlatList(),
"StyledText.getComponent() returned an unexpected value.");
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is not fully ideal, but at least we produce a more correct component (at least, it behaves like the original one, even if the structures differ).

@@ -836,7 +840,7 @@ public void styledText_inheritesHoverEvents() {

Assertions.assertEquals(
component.getStyle().getHoverEvent(),
styledText.getComponent().getStyle().getHoverEvent(),
styledText.getComponent().toFlatList().get(0).getStyle().getHoverEvent(),
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This test was wrong.

Copy link
Member

@magicus magicus left a comment

Choose a reason for hiding this comment

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

I am not too worried about the structure change in the StyledText.

@kristofbolyai kristofbolyai merged commit 0d5ac76 into fuygg_features Apr 17, 2024
1 check passed
@kristofbolyai kristofbolyai deleted the reveal_nicknames branch April 17, 2024 08:39
kristofbolyai added a commit that referenced this pull request Apr 18, 2024
kristofbolyai added a commit that referenced this pull request Apr 18, 2024
kristofbolyai added a commit that referenced this pull request Apr 21, 2024
kristofbolyai added a commit that referenced this pull request Apr 22, 2024
kristofbolyai added a commit that referenced this pull request Apr 23, 2024
kristofbolyai added a commit that referenced this pull request Apr 23, 2024
kristofbolyai added a commit that referenced this pull request Apr 23, 2024
kristofbolyai added a commit that referenced this pull request Apr 24, 2024
kristofbolyai added a commit that referenced this pull request Apr 25, 2024
kristofbolyai added a commit that referenced this pull request Apr 28, 2024
kristofbolyai added a commit that referenced this pull request May 5, 2024
kristofbolyai added a commit that referenced this pull request May 13, 2024
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.

None yet

3 participants