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

Package Dialog layout: two columns #2001

Merged
merged 22 commits into from
Jan 18, 2021
Merged

Package Dialog layout: two columns #2001

merged 22 commits into from
Jan 18, 2021

Conversation

fiskus
Copy link
Member

@fiskus fiskus commented Jan 13, 2021

I moved Intercom widget to the left side because it conflicts with the submit button.

Screenshot from 2021-01-13 22-22-39
Screenshot from 2021-01-13 22-23-10

@codecov-io
Copy link

codecov-io commented Jan 13, 2021

Codecov Report

Merging #2001 (c771928) into master (dd6ad48) will not change coverage.
The diff coverage is 0.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2001   +/-   ##
=======================================
  Coverage   46.47%   46.47%           
=======================================
  Files         332      332           
  Lines       16532    16532           
  Branches     2231     2208   -23     
=======================================
  Hits         7684     7684           
  Misses       7938     7938           
  Partials      910      910           
Flag Coverage Δ
api-python 89.35% <ø> (ø)
catalog 7.32% <0.00%> (ø)
lambda 92.40% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
catalog/app/components/JsonEditor/AddRow.js 0.00% <ø> (ø)
catalog/app/components/JsonEditor/JsonEditor.js 0.00% <ø> (ø)
catalog/app/components/JsonEditor/Row.js 0.00% <ø> (ø)
catalog/app/containers/Bucket/PackageCopyDialog.js 0.00% <ø> (ø)
...talog/app/containers/Bucket/PackageCreateDialog.js 0.00% <0.00%> (ø)
...p/containers/Bucket/PackageDialog/PackageDialog.js 0.00% <ø> (ø)
...og/app/containers/Bucket/PackageDialog/Skeleton.js 0.00% <ø> (ø)
...talog/app/containers/Bucket/PackageUpdateDialog.js 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dd6ad48...c771928. Read the comment docs.

@fiskus fiskus requested a review from nl0 January 14, 2021 12:52
@fiskus fiskus marked this pull request as ready for review January 14, 2021 13:21
@nl0
Copy link
Member

nl0 commented Jan 15, 2021

I moved Intercom widget to the left side because it conflicts with the submit button.

@fiskus maybe just hide it underneath the dialog? (use smaller z-index) bc footer layout takes intercom button placement into account

Copy link
Member

@nl0 nl0 left a comment

Choose a reason for hiding this comment

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

The code looks good, but i think we should use more conventional layout for fullscreen dialogs with an appbar on the top with title and buttons (see MUI example). This will also solve the problem with the intercom widget.

Also some comments on the 2-column layout:

  • i think we need more spacing between the columns (it should be larger than spacing between section title and contents)

  • it would be nice to add a title to the first section (tho i'm not sure which one to use) and align the sections better

spacing

col-layout

@fiskus
Copy link
Member Author

fiskus commented Jan 15, 2021

i think we should use more conventional layout for fullscreen dialogs with an appbar on the top with title and buttons (see MUI example).

I don't think it's conventional for desktop, it's more natural for mobile.


Note that sections horizontally aligned now. Files bottom is the metadata bottom, when they are empty. FIles bottom is the workflows bottom when they are in maximum height, and workflow is empty. They can't be pixel perfect aligned, because workflows input can have additional description, and because empty Select has less height than filled [1] (I tried to fix it at our side, but I think additional code doesn't worth it)

[1] mui/material-ui#21587

@fiskus
Copy link
Member Author

fiskus commented Jan 15, 2021

just hide it underneath the dialog? (use smaller z-index)

It seems that intercom doesn't have API for this. I can add body .intercom-lightweight-app to globalStyles.js

@fiskus
Copy link
Member Author

fiskus commented Jan 15, 2021

  • I've added more space between columns. Unfortunately <M.grid container /> and <M.Dialog /> are not frields, there vertical scroll, I used my own styles.
  • Added "Main" subheader.
  • Made right column vertically flexible:

Screenshot from 2021-01-15 14-33-39
Screenshot from 2021-01-15 14-57-06
Screenshot from 2021-01-15 14-57-35
Screenshot from 2021-01-15 14-58-11

@fiskus fiskus requested a review from nl0 January 15, 2021 12:21
Copy link
Member

@nl0 nl0 left a comment

Choose a reason for hiding this comment

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

looks good, definitely better than the previous version, tho i'd explore a material-style fullscreen dialog-based approach too (in another PR ofc).

I don't think it's conventional for desktop, it's more natural for mobile.

it seems like it's quite conventional for material design framework.

anyways, feel free to merge

@fiskus fiskus merged commit 4e6f2b9 into master Jan 18, 2021
@fiskus fiskus deleted the dialog-fullscreen branch January 18, 2021 06:18
@fiskus
Copy link
Member Author

fiskus commented Jan 18, 2021

<M.Dialog fullscreen /> is where I started

Also, Material Design spec has a note, that fullscreen dialog is mobile only: https://material.io/components/dialogs#full-screen-dialog

@nl0
Copy link
Member

nl0 commented Jan 18, 2021

<M.Dialog fullscreen /> is where I started

Also, Material Design spec has a note, that fullscreen dialog is mobile only: https://material.io/components/dialogs#full-screen-dialog

ok i see

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