RFR: 7904082: The UI for API Diff could be improved [v2]
Jan Lahoda
jlahoda at openjdk.org
Wed Sep 24 11:40:21 UTC 2025
> This PR intends to improve the result of API diff in a few ways:
> - in the list of updated elements, using green for elements that were added (instead of elements that are unchanged), and red for removed elements. At least in cases two variants of an API are compared.
> - making added/removed elements more prominent by also coloring the signature lines
> - hiding unchanged elements by default.
>
> An example diff that is produced before this patch:
> https://cr.openjdk.org/~jlahoda/CODETOOLS-7904082/before/
> after this patch:
> https://cr.openjdk.org/~jlahoda/CODETOOLS-7904082/after/
>
> Please let me know what you think. I'll see if I can reasonably add some tests for this functionality.
Jan Lahoda has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains eight additional commits since the last revision:
- Trying to update colors
- Merge branch 'master' into ui-tweaks
- Cleanup.
- Fixes.
- Prototype of dynamic hiding of unchanged elements.
- More prominent coloring of added/removed elements.
- Changing stylesheet
- Hide unchanged.
-------------
Changes:
- all: https://git.openjdk.org/apidiff/pull/32/files
- new: https://git.openjdk.org/apidiff/pull/32/files/15e9e4a3..fcfba786
Webrevs:
- full: https://webrevs.openjdk.org/?repo=apidiff&pr=32&range=01
- incr: https://webrevs.openjdk.org/?repo=apidiff&pr=32&range=00-01
Stats: 23 lines in 3 files changed: 8 ins; 0 del; 15 mod
Patch: https://git.openjdk.org/apidiff/pull/32.diff
Fetch: git fetch https://git.openjdk.org/apidiff.git pull/32/head:pull/32
PR: https://git.openjdk.org/apidiff/pull/32
More information about the apidiff-dev
mailing list