Skip to content

Conversation

@annavik
Copy link
Member

@annavik annavik commented Mar 29, 2023

Summary of changes:

  • Update session data displayed
  • Update occurrence data displayed
  • Add column settings for occurrence table
  • Tweak table layout so that when we can't fit all data, table gets scrollable instead of the whole page
  • Extract gallery view for occurrences to it's own component and tweak layout (still things to do here though)

Scroll is now part of the table:

Screenshot 2023-03-29 at 20 33 22

Tables after update:

Screenshot 2023-03-29 at 20 41 33

Screenshot 2023-03-29 at 20 41 19

@netlify
Copy link

netlify bot commented Mar 29, 2023

Deploy Preview for ami-web ready!

Name Link
🔨 Latest commit 7c9fb9d
🔍 Latest deploy log https://app.netlify.com/sites/ami-web/deploys/6424a18f3d9b2a0008022597
😎 Deploy Preview https://deploy-preview-103--ami-web.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Mar 29, 2023

Deploy Preview for ami-storybook ready!

Name Link
🔨 Latest commit 7c9fb9d
🔍 Latest deploy log https://app.netlify.com/sites/ami-storybook/deploys/6424a18f42bfb50008a6de0f
😎 Deploy Preview https://deploy-preview-103--ami-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@annavik annavik requested a review from mihow March 29, 2023 18:44
)

// This extra fetch is only until we have a real API
const { data: examples, isLoading: examplesIsLoading } = useGetList<any, any>(
Copy link
Member Author

Choose a reason for hiding this comment

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

If you wonder @mihow, seems Mockend is limited in a way that makes it tricky to handle nested objects. Had to put images in a separate collection -> separate API call. Not very nice, but should just be until we have the real API in place.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Okay, thanks for the workaround. Hopefully we can switch the real UI soon!


.content {
margin: 32px;
padding-left: 0px;
Copy link
Collaborator

Choose a reason for hiding this comment

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

@annavik I tried tweaking this a bit myself to improve the layouts between 720 & 1024. I think my most common viewport on the desktop is about 980px.

import React from 'react'
import styles from './gallery.module.scss'

export const Gallery = ({
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should this be showing up in Storybook or does it need to be added manually?

Copy link
Member Author

Choose a reason for hiding this comment

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

We would need to setup a small "stories" file for it, in order for it to show up. Felt a bit torn here, if the gallery view should be considered to be part of the design system or not, maybe it should? Right now, only the simple card component is.

@mihow mihow merged commit b8176e6 into main Mar 29, 2023
@annavik annavik deleted the web-ui-table-tweaks branch June 13, 2023 07:55
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