-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds tile list menu to tile list toolshelf button (#1346)
* Adds tile list menu to tile list toolshelf button * Fixes bug where all tile show Web Page when there is no data context PR Fixes * Changes Tiles toolshelf button data-testid * Adds cypress test for Tile toolshelf button * toolshelf test linting * Fixes jest tests because of the change in tile content info model * Adds the functions to return the component title from the component registration * Update case card and case table getTitle returned value * Fixes webview icon size in the tiles list menu * Gets getTitle function from component content registration instead of individual components * Removes graph title when there is no data context Fixes broken cypress test * Clean up Case table gets title for tile or from dataset Changing case table title changes title in both dataset and tile model. * Clean up linting errors * More cleanup * Fixes case table/case card title in table menu. Removes code that accesses table tile title directly * Fixes broken Cypress test * chore: code review tweaks * PR Fixes * PR Fix Adds a box shadow on the component when it is focused, or when it is hovered over in the tile list menu * Creates a utitlity function that returns the function for getting the componenet title. PR Fixes * Fix double declaration * Fixes failing cypress test --------- Co-authored-by: Kirk Swenson <[email protected]>
- Loading branch information
Showing
36 changed files
with
258 additions
and
54 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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
import React from "react" | ||
import { t } from "../../../utilities/translation/translate" | ||
import { ComponentTitleBar } from "../../component-title-bar" | ||
import { observer } from "mobx-react-lite" | ||
import { ITileTitleBarProps } from "../../tiles/tile-base-props" | ||
import { getTitle } from "../../../models/tiles/tile-content-info" | ||
|
||
export const MapComponentTitleBar = observer(function MapComponentTitleBar(props: ITileTitleBarProps) { | ||
const {tile, ...others} = props | ||
const getTitle = () => tile?.title || t("DG.DocumentController.mapTitle") | ||
|
||
return ( | ||
<ComponentTitleBar tile={tile} getTitle={getTitle} {...others} /> | ||
<ComponentTitleBar tile={tile} getTitle={getTitle(tile)} {...others} /> | ||
) | ||
}) |
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.