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

New style permissions #899

Merged
merged 48 commits into from
Aug 21, 2019
Merged

New style permissions #899

merged 48 commits into from
Aug 21, 2019

Conversation

bpierre
Copy link
Contributor

@bpierre bpierre commented Jul 29, 2019

  • Remove dead select by entity code
  • Fix dataview alignment: only render if children are available; does not handle pages well
  • Add filtered empty state
  • (Maybe) remove search: reword and add app name
  • Update dropdown
  • Update for Fields, Inputs, Links
  • Update panels
  • Fix any and burned managers not displaying
  • Check on org with multiple permissions
  • Double check text styles, colours
  • Change proxyAddress to appAddress

@auto-assign auto-assign bot requested review from AquiGorka and sohkai July 29, 2019 10:50
@vercel vercel bot temporarily deployed to staging August 5, 2019 07:40 Inactive
@vercel vercel bot temporarily deployed to staging August 5, 2019 07:47 Inactive
@vercel vercel bot temporarily deployed to staging August 21, 2019 10:20 Inactive
@vercel vercel bot temporarily deployed to staging August 21, 2019 10:37 Inactive
@@ -2,7 +2,7 @@ import React from 'react'
import PropTypes from 'prop-types'
import { CardLayout } from '@aragon/ui'
import { AppType } from '../../../prop-types'
import AppCard from '../AppCard'
import AppCard from '../../../components/AppCard/AppCard'
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm, I think the intention was to move AppCard into src/apps/Permissions/Home/; do you think we'll use this component elsewhere?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was thinking about App Center yes, but they might be different enough to not share the same component:

onPathRequest(
location.screen === 'app'
? `/app/${proxyAddress}/role/${roleBytes}`
: `/role/${proxyAddress}${roleBytes}`
Copy link
Contributor

Choose a reason for hiding this comment

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

What do you think about using a . to separate the two, to make it a bit nicer?

Copy link
Contributor Author

@bpierre bpierre Aug 21, 2019

Choose a reason for hiding this comment

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

Yes let’s do that 👍 Once the routing system has been a bit reshaped, I think we should make it part of the search (?=manageRole=…), since it doesn’t belong to /app/… anymore (and we could shorten the address / roleBytes).

@sohkai
Copy link
Contributor

sohkai commented Aug 21, 2019

@bpierre The new routing doesn't play nicely with global preference's routing :(.

Going to an app detail in permissions, navigating to preferences, and trying to return to permissions results in a broken path.

I think it's in one of the routing handlers for preferences; it removes a / in the path.

@vercel vercel bot temporarily deployed to staging August 21, 2019 14:16 Inactive
@vercel vercel bot temporarily deployed to staging August 21, 2019 14:17 Inactive
@vercel vercel bot temporarily deployed to staging August 21, 2019 14:29 Inactive
@vercel vercel bot temporarily deployed to staging August 21, 2019 14:44 Inactive
@vercel vercel bot temporarily deployed to staging August 21, 2019 14:47 Inactive
@vercel vercel bot temporarily deployed to staging August 21, 2019 19:45 Inactive
@bpierre bpierre merged commit a8a068b into newstyle Aug 21, 2019
@delete-merged-branch delete-merged-branch bot deleted the newstyle-permissions branch August 21, 2019 22:08
2color added a commit that referenced this pull request Aug 28, 2019
…tions

* origin/newstyle:
  MenuPanel tweaks (#933)
  Home redesign (#934)
  SignerPanel: consolidate external transaction props into intent object (#931)
  useLocalIdentity: handle remove case (#930)
  Add AppInternal to manage the layout logic of internal apps (#932)
  MenuPanel: adjust for new styles (#923)
  SignerPanel: display warning for external transactions (#850)
  Remove Badge and update occurrences for Tag (#901)
  SignerPanel: adjust for new styles (#920)
  Organization Settings: replace old Settings app (#896)
  Permissions: new style (#899)
  Sidepanel: redesign feedback indicator (#907)
  eslint: make sure curly braces are used everywhere (#924)
  Org switcher: new style + add FavoritesMenu (#925)
@dizzypaty
Copy link

Added all the contextual menus options and reviewed the side panels to match table labels.

  • For most permissions, when assigned to one or more entities, display default contextual menu with options:
    • Manage action (to remove or change manager)
    • Assign permission (contextually prefill fields if possible)
    • Revoke permission (When assigned to at least 1 entity. If assigned to more than 1 entity, we just open the expandable row to allow users to chose which one to revoke)
  • When a permission is burnt / discarded, display ‘View action’ in the contextual menu
  • When a permission hasn’t been initialized, display ’Set manager’ in the contextual menu

Figma file: Review page

@dizzypaty
Copy link

dizzypaty commented Sep 3, 2019

A few comments after reviewing Permissions on preview:

  • Please add a title to the dropdown panel: ‘Entity’ see Figma
  • On the search field (main view): the ‘magnifying glass’ icon should change to a ‘X’ close icon when users typed in a string
  • Update contextual menus & side panel options as per my previous comment

Everything else is great!! 🎉🎉🎉

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.

4 participants