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

Add token note types #3879

Merged
merged 9 commits into from
Mar 28, 2023
Merged

Add token note types #3879

merged 9 commits into from
Mar 28, 2023

Conversation

thelsing
Copy link
Collaborator

@thelsing thelsing commented Mar 22, 2023

Identify the Bug or Feature request

resolves #3791

Description of the Change

This change add a textType to notes and gmNotes of tokesn. The type can be changed in the token editor.
Currently text/plain, text/html and text/markdown are supported.

Markdown notes also get rendered on the hoverpanel now.

The generated Java code and the form xml was out of sync for two files. I also includes those changes to resync them.

Token without an explicit note type default to text/plain.

Possible Drawbacks

Nothing if I didn't mess something up.

Release Notes

Can be folded in the other PR of this FR.


This change is Reviewable

@thelsing
Copy link
Collaborator Author

I forgot to add the new token properties to the protobuf DTO. Will du so later.

@thelsing thelsing marked this pull request as draft March 23, 2023 10:05
@thelsing thelsing marked this pull request as ready for review March 23, 2023 19:48
@thelsing thelsing marked this pull request as draft March 23, 2023 21:31
@thelsing
Copy link
Collaborator Author

I need to look into some layouting issues that happen when the text is very long.

@thelsing
Copy link
Collaborator Author

Couldn't reproduce the issue. The ok button of the EditTokenDialog was pushed outsite the viewable area because the Textarea grew without adding a scrollbar. But it didn't happen again.

@thelsing thelsing marked this pull request as ready for review March 23, 2023 22:04
@kwvanderlinde
Copy link
Collaborator

@thelsing Spotless has reared its ugly head once again.

@cwisniew cwisniew merged commit cacf240 into RPTools:develop Mar 28, 2023
@cwisniew cwisniew added the feature Adding functionality that adds value label Mar 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Adding functionality that adds value
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature]: Add proper html support for token notes.
3 participants