Skip to content
This repository has been archived by the owner on Aug 22, 2022. It is now read-only.

Commit

Permalink
[BB-3966] Fix UX issues (#761)
Browse files Browse the repository at this point in the history
* BB-3966 Header: Expand to screen width.

* BB-3966 Update Redeployment toolbar.

* BB-3966: Align console content to header

* BB-3966 Fix footer at bottom
  • Loading branch information
arjunsinghy96 committed Apr 5, 2021
1 parent 60b87ae commit 84cb231
Show file tree
Hide file tree
Showing 35 changed files with 217 additions and 358 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { ConsoleRoutes } from 'routes/console';
import './styles.scss';

export const ConsoleContainer: React.FC = () => (
<Col className="console-container">
<Col className="console-container p-0">
<ConsoleRoutes />
</Col>
);
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

exports[`renders without crashing 1`] = `
<div
className="console-container col"
className="console-container p-0 col"
/>
`;
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ exports[`Console Page Correctly renders loading page 1`] = `
className="console-page"
>
<div
className="d-flex justify-content-center align-middle redeployment-toolbar"
className="d-flex justify-content-between redeployment-toolbar px-4 py-3 container-fluid"
>
<div
className="redeployment-nav"
className="d-flex flex-row justify-content-between w-100"
>
<span
className="status-pill badge badge-pill badge-primary"
Expand Down Expand Up @@ -318,10 +318,10 @@ exports[`Console Page Correctly renders page with data 1`] = `
className="console-page"
>
<div
className="d-flex justify-content-center align-middle redeployment-toolbar"
className="d-flex justify-content-between redeployment-toolbar px-4 py-3 container-fluid"
>
<div
className="redeployment-nav"
className="d-flex flex-row justify-content-between w-100"
>
<span
className="status-pill badge badge-pill badge-primary"
Expand Down
3 changes: 1 addition & 2 deletions frontend/src/console/components/ConsolePage/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@

.console-page-container {
background-color: #fff;
padding: 3rem 1rem;
margin: 0 -15px;
padding: 3rem 0;
flex: 1;

.console-page-content {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ exports[`renders without crashing 1`] = `
className="console-page"
>
<div
className="d-flex justify-content-center align-middle redeployment-toolbar"
className="d-flex justify-content-between redeployment-toolbar px-4 py-3 container-fluid"
>
<div
className="redeployment-nav"
className="d-flex flex-row justify-content-between w-100"
>
<span
className="status-pill badge badge-pill badge-primary"
Expand Down Expand Up @@ -55,13 +55,13 @@ exports[`renders without crashing 1`] = `
className="new-console-page-content row"
>
<div
className="container-fluid"
className="pr-4 pl-0 container-fluid"
>
<div
className="justify-content-center console-page-inner-content row"
className="justify-content-center m-0 row"
>
<div
className="col-md-3"
className="p-0 m-0 col-md-3"
>
<div
className="new-customization-menu accordion"
Expand All @@ -71,14 +71,10 @@ exports[`renders without crashing 1`] = `
>
<div
className="card-header"
onClick={[Function]}
variant="link"
>
<div
className="card-header"
onClick={[Function]}
variant="link"
>
Theme
</div>
Theme
</div>
<div
aria-expanded={null}
Expand Down Expand Up @@ -142,14 +138,10 @@ exports[`renders without crashing 1`] = `
>
<div
className="card-header"
onClick={[Function]}
variant="link"
>
<div
className="card-header"
onClick={[Function]}
variant="link"
>
Custom Pages
</div>
Custom Pages
</div>
<div
aria-expanded={null}
Expand Down Expand Up @@ -213,14 +205,10 @@ exports[`renders without crashing 1`] = `
>
<div
className="card-header"
onClick={[Function]}
variant="link"
>
<div
className="card-header"
onClick={[Function]}
variant="link"
>
Instance Settings
</div>
Instance Settings
</div>
<div
aria-expanded={null}
Expand Down Expand Up @@ -258,14 +246,10 @@ exports[`renders without crashing 1`] = `
>
<div
className="card-header"
onClick={[Function]}
variant="link"
>
<div
className="card-header"
onClick={[Function]}
variant="link"
>
Courses (Studio)
</div>
Courses (Studio)
</div>
<div
aria-expanded={null}
Expand All @@ -292,7 +276,7 @@ exports[`renders without crashing 1`] = `
</div>
</div>
<div
className="col-md-7"
className="pr-0 col-md-9"
>
<div
className="customization-form"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1157,10 +1157,10 @@ exports[`Hero customization page renders without crashing 1`] = `
className="console-page"
>
<div
className="d-flex justify-content-center align-middle redeployment-toolbar"
className="d-flex justify-content-between redeployment-toolbar px-4 py-3 container-fluid"
>
<div
className="redeployment-nav"
className="d-flex flex-row justify-content-between w-100"
>
<span
className="status-pill badge badge-pill badge-primary"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ exports[`renders without crashing 1`] = `
className="console-page"
>
<div
className="d-flex justify-content-center align-middle redeployment-toolbar"
className="d-flex justify-content-between redeployment-toolbar px-4 py-3 container-fluid"
>
<div
className="redeployment-nav"
className="d-flex flex-row justify-content-between w-100"
>
<span
className="status-pill badge badge-pill badge-primary"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ exports[`renders without crashing 1`] = `
className="console-page"
>
<div
className="d-flex justify-content-center align-middle redeployment-toolbar"
className="d-flex justify-content-between redeployment-toolbar px-4 py-3 container-fluid"
>
<div
className="redeployment-nav"
className="d-flex flex-row justify-content-between w-100"
>
<span
className="status-pill badge badge-pill badge-primary"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ exports[`NoticeBoard tests Renders all notification types without crashing 1`] =
className="console-page"
>
<div
className="d-flex justify-content-center align-middle redeployment-toolbar"
className="d-flex justify-content-between redeployment-toolbar px-4 py-3 container-fluid"
>
<div
className="redeployment-nav"
className="d-flex flex-row justify-content-between w-100"
>
<span
className="status-pill badge badge-pill badge-primary"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react';
import { useMatomo } from '@datapunt/matomo-tracker-react';
import { WrappedMessage } from 'utils/intl';
import { Button, Modal } from 'react-bootstrap';
import { Button, Container, Modal } from 'react-bootstrap';
import {
CustomStatusPill,
NotificationToast,
Expand Down Expand Up @@ -93,8 +93,11 @@ export const RedeploymentToolbar: React.FC<Props> = ({
: handleShowModal;

return (
<div className="d-flex justify-content-center align-middle redeployment-toolbar">
<div className="redeployment-nav">
<Container
fluid
className="d-flex justify-content-between redeployment-toolbar px-4 py-3"
>
<div className="d-flex flex-row justify-content-between w-100">
<CustomStatusPill
loading={loading}
redeploymentStatus={deploymentStatus}
Expand Down Expand Up @@ -159,6 +162,6 @@ export const RedeploymentToolbar: React.FC<Props> = ({
closeMessage={messages.notificationHelp.defaultMessage}
messages={messages}
/>
</div>
</Container>
);
};
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

exports[`RedeploymentToolbar Component Correctly renders redeployment bar when deployment info isn't there 1`] = `
<div
className="d-flex justify-content-center align-middle redeployment-toolbar"
className="d-flex justify-content-between redeployment-toolbar px-4 py-3 container-fluid"
>
<div
className="redeployment-nav"
className="d-flex flex-row justify-content-between w-100"
>
<span
className="status-pill badge badge-pill badge-primary"
Expand Down Expand Up @@ -49,10 +49,10 @@ exports[`RedeploymentToolbar Component Correctly renders redeployment bar when d

exports[`RedeploymentToolbar Component Correctly renders redeployment bar when deployment is by admin 1`] = `
<div
className="d-flex justify-content-center align-middle redeployment-toolbar"
className="d-flex justify-content-between redeployment-toolbar px-4 py-3 container-fluid"
>
<div
className="redeployment-nav"
className="d-flex flex-row justify-content-between w-100"
>
<span
className="status-pill badge badge-pill badge-primary"
Expand Down Expand Up @@ -103,10 +103,10 @@ exports[`RedeploymentToolbar Component Correctly renders redeployment bar when d

exports[`RedeploymentToolbar Component Correctly renders redeployment bar when instance has pending changes 1`] = `
<div
className="d-flex justify-content-center align-middle redeployment-toolbar"
className="d-flex justify-content-between redeployment-toolbar px-4 py-3 container-fluid"
>
<div
className="redeployment-nav"
className="d-flex flex-row justify-content-between w-100"
>
<span
className="status-pill badge badge-pill badge-primary"
Expand Down Expand Up @@ -157,10 +157,10 @@ exports[`RedeploymentToolbar Component Correctly renders redeployment bar when i

exports[`RedeploymentToolbar Component Correctly renders redeployment bar when instance is being deployed by user 1`] = `
<div
className="d-flex justify-content-center align-middle redeployment-toolbar"
className="d-flex justify-content-between redeployment-toolbar px-4 py-3 container-fluid"
>
<div
className="redeployment-nav"
className="d-flex flex-row justify-content-between w-100"
>
<span
className="status-pill badge badge-pill badge-primary"
Expand Down Expand Up @@ -204,10 +204,10 @@ exports[`RedeploymentToolbar Component Correctly renders redeployment bar when i

exports[`RedeploymentToolbar Component Correctly renders redeployment bar when instance is being prepared 1`] = `
<div
className="d-flex justify-content-center align-middle redeployment-toolbar"
className="d-flex justify-content-between redeployment-toolbar px-4 py-3 container-fluid"
>
<div
className="redeployment-nav"
className="d-flex flex-row justify-content-between w-100"
>
<span
className="status-pill badge badge-pill badge-primary"
Expand Down Expand Up @@ -251,10 +251,10 @@ exports[`RedeploymentToolbar Component Correctly renders redeployment bar when i

exports[`RedeploymentToolbar Component Correctly renders redeployment bar when instance is up-to-date 1`] = `
<div
className="d-flex justify-content-center align-middle redeployment-toolbar"
className="d-flex justify-content-between redeployment-toolbar px-4 py-3 container-fluid"
>
<div
className="redeployment-nav"
className="d-flex flex-row justify-content-between w-100"
>
<span
className="status-pill badge badge-pill badge-primary"
Expand Down
14 changes: 2 additions & 12 deletions frontend/src/console/components/RedeploymentToolbar/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,8 @@


.redeployment-toolbar {
background-color: $light-blue;
padding: 15px;
margin: 0 -15px;

display: flex;
align-items: center;

.redeployment-nav {
display: inline-block;
width: 100%;
max-width: 1100px;
}
background-color: white;
box-shadow: 0 2px 8px 0 rgba(15, 31, 36, 0.3);
}

.tooltip {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ exports[`renders without crashing 1`] = `
className="console-page"
>
<div
className="d-flex justify-content-center align-middle redeployment-toolbar"
className="d-flex justify-content-between redeployment-toolbar px-4 py-3 container-fluid"
>
<div
className="redeployment-nav"
className="d-flex flex-row justify-content-between w-100"
>
<span
className="status-pill badge badge-pill badge-primary"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ exports[`renders without crashing 1`] = `
className="console-page"
>
<div
className="d-flex justify-content-center align-middle redeployment-toolbar"
className="d-flex justify-content-between redeployment-toolbar px-4 py-3 container-fluid"
>
<div
className="redeployment-nav"
className="d-flex flex-row justify-content-between w-100"
>
<span
className="status-pill badge badge-pill badge-primary"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1894,10 +1894,10 @@ exports[`Theme preview and colors page renders without crashing 1`] = `
className="console-page"
>
<div
className="d-flex justify-content-center align-middle redeployment-toolbar"
className="d-flex justify-content-between redeployment-toolbar px-4 py-3 container-fluid"
>
<div
className="redeployment-nav"
className="d-flex flex-row justify-content-between w-100"
>
<span
className="status-pill badge badge-pill badge-primary"
Expand Down
Loading

0 comments on commit 84cb231

Please sign in to comment.