-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #546 from heckenmann/feat/ui-improvements
add welcome-message
- Loading branch information
Showing
16 changed files
with
96 additions
and
29 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
Binary file added
BIN
+75.7 KB
app-src/cypress/screenshots/about.cy.js/About Tests -- Load page (failed).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+79.8 KB
...ashboardh.cy.js/Dashboard horizontal Tests -- Dashboard horizontal (failed).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+98.6 KB
...hboardh.cy.js/Dashboard horizontal Tests -- Filter by service name (failed).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { Button, Modal } from 'react-bootstrap' | ||
import { useAtom, useAtomValue } from 'jotai' | ||
import { | ||
currentVariantClassesAtom, | ||
dashboardSettingsAtom, | ||
showWelcomeMessageAtom, | ||
} from '../common/store/atoms' | ||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' | ||
|
||
function WelcomeMessageComponent() { | ||
let [showWelcomeMessage, setShowWelcomeMessage] = useAtom( | ||
showWelcomeMessageAtom, | ||
) | ||
let dashboardSettings = useAtomValue(dashboardSettingsAtom) | ||
let currentVariantClasses = useAtomValue(currentVariantClassesAtom) | ||
|
||
return ( | ||
<Modal | ||
show={showWelcomeMessage && dashboardSettings.welcomeMessage} | ||
onHide={() => setShowWelcomeMessage(false)} | ||
contentClassName={currentVariantClasses} | ||
> | ||
<Modal.Header closeButton> | ||
<Modal.Title> | ||
<FontAwesomeIcon icon="info-circle" /> | ||
</Modal.Title> | ||
</Modal.Header> | ||
<Modal.Body>{dashboardSettings.welcomeMessage}</Modal.Body> | ||
<Modal.Footer> | ||
<Button variant="primary" onClick={() => setShowWelcomeMessage(false)}> | ||
Close | ||
</Button> | ||
</Modal.Footer> | ||
</Modal> | ||
) | ||
} | ||
|
||
export { WelcomeMessageComponent } |
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