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

Updates for aragonUI and other clean up #939

Merged
merged 17 commits into from
Aug 30, 2019
Merged

Updates for aragonUI and other clean up #939

merged 17 commits into from
Aug 30, 2019

Conversation

sohkai
Copy link
Contributor

@sohkai sohkai commented Aug 29, 2019

Behaviour changes:

  • Remove the "Favorites" label from the organization switcher as discussed with @dizzypaty offline
  • Fixes the SignerPanel not appearing (quick fix for now)
  • Update the App404 card

Chores:

  • Updates old usage of font and theme to textStyles and useTheme.
  • Also removes a number of unused dependencies and components, or updates their implementations to take them from aragonUI (e.g. Box, AutoComplete).

@owisixseven We may want to design a nicer looking screen for when the user uses a wrong URL:

Screen Shot 2019-08-29 at 6 05 50 PM

@auto-assign auto-assign bot requested review from AquiGorka and bpierre August 29, 2019 18:25
Copy link
Contributor

@bpierre bpierre left a comment

Choose a reason for hiding this comment

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

💥

src/components/MenuPanel/OrganizationSwitcher/Favorites.js Outdated Show resolved Hide resolved
key={index}
href={`#${getAppPath({
dao,
instanceId: 'permissions',
params: `app.${value.proxyAddress}`,
})}`}
target="_blank"
focusRingSpacing={[2, 2]}
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this needed? I was more seeing it as an internal prop that Link uses, but if we need to use it, maybe we should make it part of Link prop types and document it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Admittedly this is a bit of a quickfix, but this was the reason:

Without the focusRingSpacing (using defaults):

Screen Shot 2019-08-30 at 9 30 08 AM

With the override:
Screen Shot 2019-08-30 at 9 27 36 AM

Copy link
Contributor

Choose a reason for hiding this comment

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

mmm yes maybe we should fix the default then. I agree the first one could be improved, but the second one is too close to the characters IMO.

It might be a good case for em, so that it would depend on the text size… but the problem is that I don’t think there is a way to stop depending on the text size after a certain point (we don’t want huge spacing on large titles). But we could do some tests at different text sizes, maybe using a combination of px and em using calc(), and see if it works.

horizontalPadding="none"
css="padding: 0"
>
<Link href={url} focusRingSpacing={[2, 2]}>
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here for focusRingSpacing.

@vercel vercel bot temporarily deployed to staging August 30, 2019 07:31 Inactive
@vercel vercel bot temporarily deployed to staging August 30, 2019 08:38 Inactive
@vercel vercel bot temporarily deployed to staging August 30, 2019 08:41 Inactive
@luisivan luisivan mentioned this pull request Aug 30, 2019
95 tasks
@vercel vercel bot temporarily deployed to staging August 30, 2019 08:54 Inactive
@sohkai sohkai merged commit 82ec173 into newstyle Aug 30, 2019
@delete-merged-branch delete-merged-branch bot deleted the update-aragon-ui branch August 30, 2019 08:56
@ghost
Copy link

ghost commented Aug 30, 2019

Ready! added the Figma document on the Product list.
Captura de pantalla 2019-08-30 a las 12 03 32

2color added a commit that referenced this pull request Sep 2, 2019
…tions

* origin/newstyle:
  Optimize icons (#943)
  PropTypes: move fetch-required fields of AppType to be non-requi… (#946)
  Update ENS API changes from @aragon/wrapper (#944)
  Permissions: fix debounced search state on clearing filters (#942)
  Updates for aragonUI and other clean up (#939)
  AppCenter: update copy (#940)
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.

2 participants