Skip to content

fix: app layout + specs list review #18862

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

Merged
merged 8 commits into from
Nov 15, 2021

Conversation

elevatebart
Copy link
Contributor

@elevatebart elevatebart commented Nov 9, 2021

User facing changelog

  • refactor the app layout to use a grid
  • remove the section empty DOM layer from the layout
  • make sure the specs list, and any page, scrolls when needed
  • when pages are tight, use ellipsis on specs
  • have the navigation expanded by default

Additional details

Screen Shot 2021-11-09 at 4 02 09 PM

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Nov 9, 2021

Thanks for taking the time to open a PR!

@elevatebart elevatebart marked this pull request as ready for review November 9, 2021 22:11
@elevatebart elevatebart requested a review from a team as a code owner November 9, 2021 22:11
@elevatebart elevatebart requested review from jennifer-shehane and removed request for a team November 9, 2021 22:11
@elevatebart elevatebart changed the title refactor/design: app layout + specs list review fix: app layout + specs list review Nov 9, 2021
@jennifer-shehane jennifer-shehane removed their request for review November 9, 2021 22:16
@cypress
Copy link

cypress bot commented Nov 9, 2021



Test summary

18644 5 216 7Flakiness 4


Run details

Project cypress
Status Failed
Commit 6ea06ba
Started Nov 15, 2021 12:41 AM
Ended Nov 15, 2021 12:52 AM
Duration 11:32 💡
OS Linux Debian - 10.9
Browser Multiple

View run in Cypress Dashboard ➡️


Failures

Run group: 5x-driver-electron (Linux, Electron )
commands/navigation_spec.js Failed
1 ... > throws when url is specified twice
commands/assertions_spec.js Failed
1 ... > logs and immediately fails on custom match assertions
commands/window_spec.js Failed
1 ... > throws when passed negative numbers
Run group: 5x-driver-chrome:beta (Linux, Chrome beta )
e2e/redirects_spec.js Failed
1 redirection > meta > binds to the new page after a timeout
Run group: 2x-desktop-gui (Linux, Electron )
settings_spec.js Failed
1 Settings > file preference panel > loads preferred editor and available editors

Flakiness

commands/net_stubbing_spec.ts Flakiness
1 network stubbing > waiting and aliasing > can timeout waiting on a single request using "alias.request"
2 network stubbing > waiting and aliasing > can timeout incrementally waiting on requests
cypress/proxy-logging-spec.ts Flakiness
1 Proxy Logging > request logging > xhr log has response body/status code
2 ... > works with forceNetworkError

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

Copy link
Contributor

@marktnoonan marktnoonan left a comment

Choose a reason for hiding this comment

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

Nice. I have just one comment that you can take or leave about truncating the text.

@@ -6,7 +6,7 @@
* outline with that, do border-transparent for the non-hocus state.
*/

const focusDefault = 'outline-none focus:border focus:border-indigo-300 focus:ring-2 focus:ring-indigo-100 focus:outline-transparent transition duration-150 disabled:hover:ring-0 disabled:hover:border-0'
const focusDefault = 'outline-none focus:border focus:border-indigo-300 focus:ring-2 focus:ring-indigo-100 focus:outline-transparent transition duration-150 disabled:hover:ring-0 disabled:hover:border-transparent'
Copy link
Contributor

Choose a reason for hiding this comment

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

nice fix!

@@ -27,7 +27,10 @@
class="min-w-16px max-w-16px min-h-16px icon-dark-gray-300 group-hocus:icon-dark-indigo-500 max-h-16px"
/>
</span>
<div :class="classes?.gitText">
<div
class="overflow-hidden truncate"
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not so sure about truncating. If we don't want to make the rows taller & wrap the text, maybe we could allow horizontal scroll. Mainly I'm thinking if the data is useful at full width, it's still useful if somebody is choosing to make the window smaller - or triggers the truncate through browser zoom controls.

Copy link
Contributor

Choose a reason for hiding this comment

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

How about :title="specName"? You could just hover it with your mouse.

Copy link
Contributor

@lmiller1990 lmiller1990 Nov 15, 2021

Choose a reason for hiding this comment

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

I resolved the conflicts with the main branch and added :title along the way, so if the text is truncated, there's at least some way to see the full title (by hovering). Happy to discuss the UI further - since the correct behavior isn't obvious from the mocks, I'm just going to merge this one up since I don't see any obvious problems.

Let's discuss how this should behave, once we have a consensus on the correct behavior, we can make another PR to amend it.

@lmiller1990 lmiller1990 merged commit cdc8c42 into unified-desktop-gui Nov 15, 2021
@lmiller1990 lmiller1990 deleted the refactor/app-layout branch November 15, 2021 01:04
tgriesser added a commit that referenced this pull request Nov 17, 2021
* 10.0-release:
  feat: improve vite DX (#18937)
  feat: Use plugins on config files (#18798)
  BREAKING CHANGE: trigger major bump
  BREAKING CHANGE: trigger major bump
  fix: fix cypress/package.json crasher
  fix(breaking): change circle.yml to release binary
  fix: build-prod-ui deps before build-prod packages
  feat: implement spec list tree (#18901)
  chore: adding 10.0-release to the circle.yml build script (#18926)
  feat(app): remove __vite__ route and default to unified runner (#18909)
  fix: app layout + specs list review (#18862)
  feat(app): show previous versions (#18838)
  feat: scaffold integration files in app (#18763)
  feat: add footer to the settings (#18867)
  fix: Exit when both --e2e and --component flags are passed in (#18855)
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