Convert RB.Admin.PageView to TypeScript/spina.

Review Request #13893 — Created May 22, 2024 and submitted

Information

Review Board
release-7.x

Reviewers

This change converts the admin PageView class to TypeScript. This
particular class is actually empty, but converting it will help
alleviate an unrelated issue where some ad blockers would see a file
called "pageView.js" and block it.

  • Ran js-tests.
  • Used the admin UI.
Summary ID
Convert RB.Admin.PageView to TypeScript/spina.
This change converts the admin PageView class to TypeScript. This particular class is actually empty, but converting it will help alleviate an unrelated issue where some ad blockers would see a file called "pageView.js" and block it. Testing Done: - Ran js-tests. - Used the admin UI.
104a96be254b41254c84fc1148cd4d2c968975a8
Description From Last Updated

Can this be written to import just once? Failing that, can we keep the imports above the exports?

chipx86chipx86

Maybe we should rename this to BaseAdminPageView now? And then index.ts can export that directly, and we can keep the …

chipx86chipx86
chipx86
  1. 
      
  2. reviewboard/static/rb/js/admin/index.ts (Diff revision 1)
     
     
     
     
     
     
     
     
     
     
    Show all issues

    Can this be written to import just once?

    Failing that, can we keep the imports above the exports?

    1. There doesn't seem to be a syntax for that (export AdminPageView doesn't work).

      I think I'd prefer to have it grouped this way. The imports are purely related to the legacy namespace, and once we decide we can nuke that, we just delete the bottom half of the file.

    2. Okay. If we have to do anything more convoluted to export that, then it's not worth it. Dropping the issue.

  3. Show all issues

    Maybe we should rename this to BaseAdminPageView now? And then index.ts can export that directly, and we can keep the legacy name in Admin.

  4. 
      
david
maubin
  1. Ship It!
  2. 
      
chipx86
  1. Ship It!
  2. 
      
david
Review request changed
Status:
Completed
Change Summary:
Pushed to release-7.x (646aa5c)