Port MenuView to TypeScript and spina.
Review Request #12827 — Created Feb. 7, 2023 and submitted
This change ports the MenuView over to TypeScript and spina. This is
relatively straightforward.As part of this, the
ui
bundle has been changed to load on all pages
instead of just ones inheriting from reviewable_base.html
- Tested various places that used MenuView (menu actions, menu buttons in
banners/dialogs). - Ran js-tests.
Summary | ID |
---|---|
fa42e66f849bab28fadb88dd4a1db2a9eaf39649 |
Description | From | Last Updated |
---|---|---|
I don't remember where we landed on this from another review, but do we want to split this into two … |
|
|
Let's alphabetize by import module. |
|
|
Can we type and document these using the interface? |
|
|
Does TypeScript let us use a trailing comma for the last item? |
|
|
Missing Version Added. |
|
|
The summary should be on its own line. |
|
|
Missing a semicolon. |
|
|
Do subclasses need to set these? If not, we can avoid all this and use the proper elements in the … |
|
|
Let's move private after public. |
|
|
Should we make this an interface? |
|
|
The <cast>... syntax is considered deprecated. We should use ... as type instead. |
|
|
Casting should use ... as ... syntax. |
|
-
-
reviewboard/static/rb/js/common/actions/views/menuActionView.ts (Diff revision 1) I don't remember where we landed on this from another review, but do we want to split this into two import groups, from the perspective of this bundle?
-
-
reviewboard/static/rb/js/ui/views/menuButtonView.ts (Diff revision 1) Can we type and document these using the interface?
-
reviewboard/static/rb/js/ui/views/menuView.ts (Diff revision 1) Does TypeScript let us use a trailing comma for the last item?
-
-
reviewboard/static/rb/js/ui/views/menuView.ts (Diff revision 1) The summary should be on its own line.
-
-
reviewboard/static/rb/js/ui/views/menuView.ts (Diff revision 1) Do subclasses need to set these? If not, we can avoid all this and use the proper elements in the base class setup.
-
-
-
reviewboard/static/rb/js/ui/views/menuView.ts (Diff revision 1) The
<cast>...
syntax is considered deprecated. We should use... as type
instead. -
reviewboard/static/rb/js/ui/views/menuView.ts (Diff revision 1) Casting should use
... as ...
syntax.
Commits: |
|
|||||||
---|---|---|---|---|---|---|---|---|
Diff: |
Revision 2 (+678 -488) |