Convert RB.CommitView to TS/spina and Ink.
Review Request #14105 — Created Aug. 15, 2024 and updated
This change converts the CommitView class to TypeScript, and replaces
various UI elements with Ink. In particular:
- Several icons have been switched from fontawesome to Tabler icons
bundled in Ink. - The progress spinner when creating a post-commit review request now
uses<Ink.Spinner>
. - The confirmation dialog uses
<Ink.Dialog>
This also fixes a couple ugly interaction issues relating to what is
happening when during the event handler. The big problem was that we
were always creating the confirmation dialog and then handling other
cases in the confirm handler. This meant that for commits that had an
existing review request, we'd prompt them to create a new review request
and then just open the existing one. For inaccessible commits, we'd
prompt them and then do nothing. These conditions are now checked at the
top of the click handler, so we don't prompt the user unless we really
need to.
- Ran js-tests.
- Created new review requests for commits and saw that the interaction
worked correctly for both confirm and cancel. - Clicked on commits with existing review requests and saw that the page
linked directly without any prompt. - Verified the appearance of the new icons and spinner.
Summary | ID |
---|---|
292619f6593c29af18fd7eed7a85283afa3fedeb |
Description | From | Last Updated |
---|---|---|
These have vertical alignment issues. I think they're across the whole row, but they're very noticeable on the clock. (May … |
chipx86 | |
Looks like a 1 snuck in. |
chipx86 | |
I remember we had a discussion before about </> vs. the full name. Do we want to revisit what we … |
chipx86 | |
There's some low-hanging fruit we can do to improve accessibility here. Maybe best as a new change, but we should … |
chipx86 | |
We access this.model 5 times. Let's pull it out into a local variable. |
chipx86 | |
We access this.model 5 times. Let's pull it out into a local variable. |
chipx86 |
-
-
These have vertical alignment issues. I think they're across the whole row, but they're very noticeable on the clock. (May have been there before, but we should fix them.)
-
-
I remember we had a discussion before about
</>
vs. the full name. Do we want to revisit what we want to standardize on here? This craft template is inconsistent in which is used.
- Commits:
-
Summary ID e544a11faeb0a40ee937638c88847c0c452e49b8 1a38bf6badcef1ae0c5826ad978f7ff82502f264 - Diff:
-
Revision 2 (+364 -346)
- Added Files:
Checks run (2 succeeded)
- Commits:
-
Summary ID 1a38bf6badcef1ae0c5826ad978f7ff82502f264 292619f6593c29af18fd7eed7a85283afa3fedeb - Diff:
-
Revision 3 (+372 -346)