-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Refactor <TablePageLayout> to support multiple tabs (#911)
This is to support having both Annotations and Tomograms tabs on the Runs page. - Adds support for a header above the tabs. - Uses our existing `<Tabs>` component. - Only shows tabs if more than 1 is specified. - Supports a different pagination query param per tab. - This changes the query param on the Runs page from `page` to `annotations-page`. In a subsequent PR I'll add `tomograms-page`. - It seems like we're currently pretty far from either annotations or tomograms getting to a point where they'd actually trigger pagination, but I'd prefer this to work properly from the get-go rather than find out there's a bug later. - Stores the currently open tab in URL params. - Make a few prop names clearer. - Allow `<Tabs>` to take in components as labels and `number`s (i.e. indexes) as values. - Also enable hoisting in ESLint (which TS checks anyways).
- Loading branch information
Showing
14 changed files
with
233 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.