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

Review workflow UI improvements. #319

Merged
merged 10 commits into from
Nov 17, 2016
Merged

Review workflow UI improvements. #319

merged 10 commits into from
Nov 17, 2016

Conversation

n1k0
Copy link
Contributor

@n1k0 n1k0 commented Nov 16, 2016

This fixes #317 and other issues. WiP.

@n1k0
Copy link
Contributor Author

n1k0 commented Nov 17, 2016

r=? @leplatrem

@leplatrem
Copy link
Contributor

I think you forgot to add the tests file. Good news is that CI is not gonna break :)

@n1k0
Copy link
Contributor Author

n1k0 commented Nov 17, 2016

Ah sorry for that, pushed in b4aadb3

Copy link
Contributor

@leplatrem leplatrem left a comment

Choose a reason for hiding this comment

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

r+ with leftover and optional nits :)

setData() {},
};
bucket = {collection() {return collection;}};
setClient({bucket() {return bucket;}});
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: maybe put all that in a fakeClient variable shared with all tests?

const {id: userId} = user;
console.log(bucketState);
const {groups} = bucketState;
const editorGroup = groups.find(g => g.id === groupName);
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: editorGroupgroup

return false;
}
const {signer={}} = capabilities;
const {[groupkey]: defaultGroupName} = signer;
Copy link
Contributor

Choose a reason for hiding this comment

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

We could even do this in one line without intermediary capabilities and signer variables :) #PerlFTW

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You mean

const {serverInfo: {capabilities: {signer: {[groupKey]: defaultGroupName}={}}}} = sessionState;

LOLNOPE 😬

const {[groupkey]: defaultGroupName} = signer;
const {[groupkey]: groupName=defaultGroupName} = source;
const {id: userId} = user;
console.log(bucketState);
Copy link
Contributor

Choose a reason for hiding this comment

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

leftover

@leplatrem
Copy link
Contributor

:shipit:

@n1k0 n1k0 merged commit fe2a770 into master Nov 17, 2016
@n1k0 n1k0 deleted the 317-fix-confusing-review-ui branch November 17, 2016 23:29
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.

[Signoff] Confusing screen after having approved changes
2 participants