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

Org dashboard #79

Merged
merged 7 commits into from
Jul 5, 2016
Merged

Org dashboard #79

merged 7 commits into from
Jul 5, 2016

Conversation

rowanseymour
Copy link
Contributor

Replaces current org home page (and existing user list page) with a simple dashboard like page with summary, partners and users tabs.

For clarity I've renamed some of the inbox related stuff that was previous called "Home".

screen shot 2016-07-01 at 12 27 03

screen shot 2016-07-01 at 12 29 09

screen shot 2016-07-01 at 12 32 41

can_update = case.access_level(self.request.user) == AccessLevel.update

# angular app requires context data in JSON format
context['context_data_json'] = json_encode({
'all_labels': [l.as_json() for l in labels],
'all_partners': [p.as_json() for p in partners],
Copy link
Contributor Author

Choose a reason for hiding this comment

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

List of partners now fetched as needed from endpoint

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling c788586 on partner_dashboard into 6510d37 on master.

"""
Chart of replies per month for either the current org, a given partner, or a given user
"""
permission = 'orgs.org_charts'
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'm assuming that aggregate data like number of replies can be seen by any user in the org regardless of whether it's for another partner or user. Flagging this in case that's not an assumption that works for other deployments.

@rowanseymour
Copy link
Contributor Author

This PR also adds an "Organization" link to header:

screen shot 2016-07-01 at 14 35 10

For org-level users, this takes them to the new org dashboard - for partner-level users, they are taken to their partner's dashboard.

'series': [0, 0, 2, 1, 0, 0]
})
self.assertEqual(response.json, {
'categories': ["May", "June", "July", "August", "September", "October",
Copy link
Member

Choose a reason for hiding this comment

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

Localize?

@nicpottier
Copy link
Member

Looks good.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 6068cb1 on partner_dashboard into 6510d37 on master.

@rowanseymour rowanseymour merged commit b69531a into master Jul 5, 2016
@rowanseymour rowanseymour deleted the partner_dashboard branch July 5, 2016 07:24
cromulus pushed a commit to BlueRidgeLabs/casepro that referenced this pull request Jan 21, 2018
…signed-user-appear-in-same-string-as-case-list

Have assigned user appear in same string in case list
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.

3 participants