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

Let Super User view and edit segments created by other users #9621

Merged
merged 5 commits into from
Jan 27, 2016
Merged

Conversation

mattab
Copy link
Member

@mattab mattab commented Jan 22, 2016

As a Super User:

  • I can now see all segments that were created for this website by any other user
  • When a segment was created by another user who is not Super User, the segment appears below a new section "Visible to you because you have Super User access:"
  • Such segments are editable by the Super User
  • The only difference when editing someone else's segment, as a Super User, is that "This segment is visible to [ME]" now says "This segment is visible to [SEGMENT_AUTHOR_USERNAME]"
  • One can now search in the search bar for a username and see all segments created by this user

For all users:

  • New section "Shared with you:" now lists segments created by a Super User, and marked as "Visible to [All Users]"
  • Before segments shared with me, looked the same as segments I created, which was confusing

Fixes #6766

As a Super User:

 * I can now see all segments that were created for this website by any other user
 * When a segment was created by another user who is not Super User, the segment appears below a new section "Visible to you because you have Super User access:"
 * Such segments are editable by the Super User
 * The only difference when editing someone else's segment, as a Super User, is that "This segment is visible to [ME]" now says "This segment is visible to [SEGMENT_AUTHOR_USERNAME]"
 * One can now search in the  search bar for a username and see all segments created by this user

For all users:

 * New section "Shared with you:" now lists segments created by a Super User, and marked as "Visible to [All Users]"
 * Before segments  shared with me, looked the same as segments I created, which was confusing
@mattab mattab added not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. Needs Review PRs that need a code review labels Jan 22, 2016
@mattab mattab added this to the 2.16.0 milestone Jan 22, 2016
@mattab mattab changed the title Fixes #6766 Let Super User view and edit segments created by other users Let Super User view and edit segments created by other users Jan 22, 2016
@sgiehl
Copy link
Member

sgiehl commented Jan 23, 2016

Maybe unrelated to this issue. But imho we should adjust the hover effect when choosing a segment or a website. Both should look the same. Currently a hovered website has a grey background and a hovered segment has a grey border only. Shall we create a new issue for that? Or simply adjust it within this one?

}
segmentationTitle.html(title);
segmentationTitle.html( "<strong>" + title + "</strong>");
Copy link
Member

Choose a reason for hiding this comment

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

Wouldn't it be better to remove the <strong> here and to add a css class (having font-weight: bold) instead. That would make it easier for custom designs to overwrite the css at that point.

Note: The .text() below does not remove a <strong> (if set before), it simply replaces the text within. Not sure if that is expected behavior.

@sgiehl
Copy link
Member

sgiehl commented Jan 23, 2016

Besides the comment, LGTM :shipit:

@mattab
Copy link
Member Author

mattab commented Jan 27, 2016

Maybe unrelated to this issue. But imho we should adjust the hover effect when choosing a segment or a website. Both should look the same. Currently a hovered website has a grey background and a hovered segment has a grey border only. Shall we create a new issue for that? Or simply adjust it within this one?

@sgiehl good point, I never noticed this! could you create a new issue or PR for it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants