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

minor fixes for proposal diff and error handlers #1988

Merged
merged 1 commit into from
Jun 10, 2020

Conversation

victorgcramos
Copy link
Member

This PR adds a couple of minor fixes reported by #1970 and #1982

Closes #1970
Closes #1982

Solution description

This diff adds a new <DiffText> component, which can be used to track simple diffs from texts, highlighting changes according to the diffWordsWithSpace algorithm.

Also, this adds missing error codes.

Use Cases

DiffText component can be used whenever you want to get a diff between 2 texts.

Code:

<DiffText oldText="old text" newText="new text" />

Result:
Screen Shot 2020-06-08 at 7 34 32 PM

Dependencies

This depends on decred/pi-ui#274

UI Changes Screenshot

proposal-diff-scroll-and-title

Copy link
Member

@tiagoalvesdulce tiagoalvesdulce left a comment

Choose a reason for hiding this comment

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

@victorgcramos title diff is working fine but the scroll isn't. See:
scroll

@victorgcramos
Copy link
Member Author

Weird though... Pi-ui package is up to date with the latest pi-ui commit. Could you please check it again to see if you still get this? Looks like pi-ui's changes are not up, because tab's content seems to have no className.

@tiagoalvesdulce
Copy link
Member

tiagoalvesdulce commented Jun 10, 2020

Yep, I had an old pi-ui version cached.

@tiagoalvesdulce tiagoalvesdulce merged commit 75b1d6d into decred:master Jun 10, 2020
@victorgcramos victorgcramos deleted the minor-fixes-rfp branch February 15, 2021 19:36
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.

Small issues on proposal's version modal Missing error message
2 participants