Skip to content

Commit 376724c

Browse files
authored
Merge pull request #1489 from appirio-tech/dev
Production release for connect `Admin functionality update 01` milestone
2 parents 5908aa4 + 700374d commit 376724c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+605
-659
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#### For folks working on this code base, we're ogaznizing coding style and general guidelines [here](https://github.com/appirio-tech/connect-app/wiki/Community-Work-Read-Me-First!).
2+
13
# TC Deployment Notes
24
_[TC Deployment Notes should always be kept up to date **on the default branch**. Update these notes when changes to this information occur]_
35

circle.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ compile:
1919

2020
deployment:
2121
development:
22-
branch: [dev, 'feature/performance-testing']
22+
branch: dev
2323
owner: appirio-tech
2424
commands:
2525
- ./deploy.sh DEV

npm-shrinkwrap.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/actions/loadUser.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
import _ from 'lodash'
2-
import { ACCOUNTS_APP_CONNECTOR_URL, LOAD_USER_SUCCESS, LOAD_USER_FAILURE, ROLE_ADMINISTRATOR, ROLE_CONNECT_COPILOT, ROLE_TOPCODER_USER, ROLE_CONNECT_MANAGER } from '../config/constants'
2+
import {
3+
ACCOUNTS_APP_CONNECTOR_URL,
4+
LOAD_USER_SUCCESS,
5+
LOAD_USER_FAILURE,
6+
ROLE_ADMINISTRATOR,
7+
ROLE_CONNECT_COPILOT,
8+
ROLE_TOPCODER_USER,
9+
ROLE_CONNECT_MANAGER,
10+
ROLE_CONNECT_ADMIN
11+
} from '../config/constants'
312
import { getFreshToken, configureConnector, decodeToken } from 'tc-accounts'
413
import { getUserProfile } from '../api/users'
514
import { EventTypes } from 'redux-segment'
@@ -46,6 +55,8 @@ export function loadUserSuccess(dispatch, token) {
4655
let userRole
4756
if (_.indexOf(currentUser.roles, ROLE_ADMINISTRATOR) > -1) {
4857
userRole = ROLE_ADMINISTRATOR
58+
} else if (_.indexOf(currentUser.roles, ROLE_CONNECT_ADMIN) > -1) {
59+
userRole = ROLE_CONNECT_ADMIN
4960
} else if (_.indexOf(currentUser.roles, ROLE_CONNECT_MANAGER) > -1) {
5061
userRole = ROLE_CONNECT_MANAGER
5162
} else if (_.indexOf(currentUser.roles, ROLE_CONNECT_COPILOT) > -1) {

src/api/projects.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import _ from 'lodash'
22
import { axiosInstance as axios } from './requestInterceptor'
3-
import { TC_API_URL } from '../config/constants'
3+
import { TC_API_URL, PROJECT_LIST_PAGE_SIZE } from '../config/constants'
44

55
export function getProjects(criteria, pageNum) {
66
// add default params
77
const includeFields = ['id', 'name', 'description', 'members', 'status', 'type', 'actualPrice', 'estimatedPrice', 'createdAt', 'updatedAt', 'details']
88
const params = {
9-
limit: 20,
10-
offset: (pageNum - 1) * 20,
9+
limit: PROJECT_LIST_PAGE_SIZE,
10+
offset: (pageNum - 1) * PROJECT_LIST_PAGE_SIZE,
1111
fields: includeFields.join(',')
1212
}
1313
// filters

src/assets/images/product-app-app.svg

Lines changed: 6 additions & 6 deletions
Loading

src/assets/images/product-cat-design.svg

Lines changed: 7 additions & 7 deletions
Loading

src/assets/images/product-cat-development.svg

Lines changed: 5 additions & 5 deletions
Loading

src/assets/images/product-cat-qa.svg

Lines changed: 12 additions & 12 deletions
Loading

src/assets/images/product-chatbot-chatbot.svg

Lines changed: 12 additions & 12 deletions
Loading

0 commit comments

Comments
 (0)