Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve mission page #1848

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Improve mission page #1848

wants to merge 3 commits into from

Conversation

mrica-equinor
Copy link
Contributor

No description provided.

@mrica-equinor mrica-equinor force-pushed the main branch 3 times, most recently from f14103a to acb193d Compare December 5, 2024 14:10
gap: 32px;
width: fit-content;
align-items: end;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image Should info section be same width as rest? Also it doesn't seem centered with regards to height

Comment on lines +21 to 23
background-color: ${tokens.colors.ui.background__light.hex};
`
const TitleSection = styled.div`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggest putting the "Add to queue"-button under the title on smal screen (maybe flex: wrap?)
image

<StyledTableCell>{TranslateText('Description')}</StyledTableCell>
<StyledTableCell>{TranslateText('Inspection Types')}</StyledTableCell>
<StyledTableCell>{TranslateText('Status')}</StyledTableCell>
<Table.Cell>#</Table.Cell>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider using different design for task table on small screen
image

@@ -9,6 +9,7 @@ import { Pose } from 'models/Pose'
import { MapCompass } from 'utils/MapCompass'
import { Deck } from 'models/Deck'
import { useLanguageContext } from 'components/Contexts/LanguageContext'
import { getMeta } from 'components/Pages/MissionPage/MapPosition/MissionMapView'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should getMeta be in utils instead since its used by both? Maybe in a map utilities file (in a map folder?)?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or maybe not since deckMapView probably will disappear soon

Comment on lines +27 to +31
min-width: 50%;
max-width: fit-content;
min-height: 60%;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These values feel a bit arbitrary. Are they necessary?

Look at ContainButton for missionHistoryButton for inspiration

Copy link
Contributor

@eivindsjovold eivindsjovold left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-run snyk checks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants