Create a field state label view.

Review Request #13242 — Created Aug. 31, 2023 and submitted — Latest diff uploaded

Information

Review Board
release-6.x

Reviewers

This change adds a view for a field state label, a pill shaped label that
displays the state of a field, like our Draft/Submitted/Discarded state labels
for review requests in the dashboard. This can be used on review request
fields to show which fields have been modified in a review request draft.
We'll make use of the label in an upcoming change for file attachments, to
help display which file attachments are new, new revisions, drafts, or
pending deletion.

Right now the label is pretty simple, but it could be expanded upon in the
future to allow a button for reverting a field, diffing the change of a
field, etc. We currently have draft and deleted color themes for the label.

  • Used in the upcoming file attachments change.
  • Attached the label to the summary field.

Diff Revision 2

This is not the most recent revision of the diff. The latest diff is revision 3. See what's changed.

orig
1
2
3

Commits

First Last Summary ID Author
Create a field state label view.
6ace585d9cf6fe95ba92542155d3d47fbee9fd0d Michelle Aubin
reviewboard/static/rb/css/pages/review-request.less
reviewboard/static/rb/js/ui/index.ts
reviewboard/static/rb/js/ui/views/fieldStateLabelView.ts
Loading...