Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Adjust the location of the signer snippet #4155

Merged
merged 10 commits into from
Jan 21, 2017
Merged

Adjust the location of the signer snippet #4155

merged 10 commits into from
Jan 21, 2017

Conversation

ngotchac
Copy link
Contributor

Closes #3867

Add a small button on the signer tab to drag it. The signer opens accordingly to the position.

output

@ngotchac ngotchac added A0-pleasereview 🤓 Pull request needs code review. M7-ui labels Jan 12, 2017
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling edc0674 on ng-move-signer into ** on master**.

@jacogr
Copy link
Contributor

jacogr commented Jan 13, 2017

Keep the related https://github.com/ethcore/parity/issues/3941 in mind.

Would prefer on-ice until the above is in since this approach causes some issues with a larger & needed expansion.

Think the approach is over-the-top atm (although nice), the dapp being to specify position in the manifest (top-left, top-right, bottom-left, bottom-right) would have been sufficient and consistent. The reality is that for one specific dapp it would need to be dragged and then back again in others. (As to not overlap with the UI - so users would need to repeat each time they swap between affected and non-affected apps)

@gavofyork
Copy link
Contributor

agree with jaco here; that said, it might be nice to explore how this functionality could work with the dapp-specified position.

@ngotchac
Copy link
Contributor Author

We could also save the location per dapp in local storage

@gavofyork
Copy link
Contributor

yeah; can we alter this to allow the dapp to specify a default position?

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.01%) to 84.818% when pulling 74550a5 on ng-move-signer into 7cab6ac on master.

@ngotchac
Copy link
Contributor Author

ngotchac commented Jan 18, 2017

@gavofyork Ok so now the position of the Parity Bar is saved in local storage per dapp ; and each dapp can have a default position within top-right, top-left, bottom-right and bottom-left (default to bottom-right).

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.01%) to 84.818% when pulling d12c9f8 on ng-move-signer into 7cab6ac on master.

@gavofyork
Copy link
Contributor

conflicts..

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 263548b on ng-move-signer into ** on master**.

instance = new DappsStore(api);
}

if (api && !instance._api) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure why we are doing this - when we create it we should properly pass in the api. (There is one in the app, no reason why it cannot be passed in)

@jacogr
Copy link
Contributor

jacogr commented Jan 19, 2017

I'm honestly still not even close to on-board with the manual moving.

It really is going to create issues for the next phase where the expanded ParityBar moves to a larger Portal (either opened from top/bottom depending on where base is located.) It does work with the current small expanded view, but cannot see how to do things properly when the bar is moved to the middle, unless it is just ignored.

Lots of code to move stuff around that adds maintenance complexity as well and I don't see how it really adds value to the end-user apart from "cool to have".

On the plus side, do think the per-dapp specification as it is now implemented works really well.

@ngotchac
Copy link
Contributor Author

Well it doesn't really get it the middle : the expanded signer can be in four position (computed automatically based on the small parity bar) : NE / NW / SE / SW
The Parity Bar (not expanded) is always whether on top or on bottom of the screen. The user can choose where to put it on the horizontal axis.

Regarding migrating to Portal, I don't think that's really an issue. The part of the code that will get modified is the expanded view, which hasn't been touched.

As everything is already written, I don't think it would add any more work to port the Signer to the Portal view (compared with porting to the Portal view from current master)

@ngotchac
Copy link
Contributor Author

As spoken with @jacogr , the Parity Bar now sticks to only one of the four corners of the screen.

@gavofyork gavofyork merged commit 6b52ed4 into master Jan 21, 2017
@gavofyork gavofyork deleted the ng-move-signer branch January 21, 2017 13:44
@gavofyork gavofyork added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Jan 21, 2017
gavofyork pushed a commit that referenced this pull request Feb 4, 2017
* s/Delete Contract/Forget Contract/ (#4237)

* Adjust the location of the signer snippet (#4155)

* Additional building-block UI components (#4239)

* Currency WIP

* Expand tests

* Pass className

* Add QrCode

* Export new components in ~/ui

* s/this.props.netSymbol/netSymbol/

* Fix import case

* ui/SectionList component (#4292)

* array chunking utility

* add SectionList component

* Add TODOs to indicate possible future work

* Add missing overlay style (as used in dapps at present)

* Add a Playground for the UI Components (#4301)

* Playground // WIP

* Linting

* Add Examples with code

* CSS Linting

* Linting

* Add Connected Currency Symbol

* 2015-2017

* 2015-2017

* 2015-2017

* 2015-2017

* 2015-2017

* 2015-2017

* 2015-2017

* Added `renderSymbol` tests

* PR grumbles

* Add Eth and Btc QRCode examples

* 2015-2017

* Add tests for playground

* Fixing tests

* Split Dapp icon into ui/DappIcon (#4308)

* Add QrCode & Copy to ShapeShift (#4322)

* Extract CopyIcon to ~/ui/Icons

* Add copy & QrCode address

* Default size 4

* Add bitcoin: link

* use protocol links applicable to coin exchanged

* Remove .only

* Display QrCode for accounts, addresses & contracts (#4329)

* Allow Portal to be used as top-level modal (#4338)

* Portal

* Allow Portal to be used in as both top-level and popover

* modal/popover variable naming

* export Portal in ~/ui

* Properly handle optional onKeyDown

* Add simple Playground Example

* Add proper event listener to Portal (#4359)

* Display AccountCard name via IdentityName (#4235)

* Fix signing (#4363)

* Dapp Account Selection & Defaults (#4355)

* Add parity_defaultAccount RPC (with subscription) (#4383)

* Default Account selector in Signer overlay (#4375)

* Typo, fixes #4271 (#4391)

* Fix ParityBar account selection overflows (#4405)

* Available Dapp selection alignment with Permissions (Portal) (#4374)

* registry dapp: make lookup use lower case (#4409)

* Dapps use defaultAccount instead of own selectors (#4386)

* Poll for defaultAccount to update dapp & overlay subscriptions (#4417)

* Poll for defaultAccount (Fixes #4413)

* Fix nextTimeout on catch

* Store timers

* Re-enable default updates on change detection

* Add block & timestamp conditions to Signer (#4411)

* Extension installation overlay (#4423)

* Extension installation overlay

* Pr gumbles

* Spelling

* Update Chrome URL

* Fix for non-included jsonrpc

* Extend Portal component (as per Modal) #4392
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants