Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/gradle-build-feature.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
- 'doc-**/*'
- 'hotfix-**/*'
- 'dependabot/**/*'
env:
HUSKY: 0
jobs:
build:
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/gradle-build-native-feature.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
- 'doc-**/*'
- 'hotfix-**/*'
- 'dependabot/**/*'
env:
HUSKY: 0
jobs:
build:
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/gradle-build-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
branches:
- "master"
env:
HUSKY: 0
PROJECT_ID: ${{ secrets.RUN_PROJECT }}
RUN_REGION: us-central1
SERVICE_NAME: checkins-master
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/gradle-build-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Gradle Publish to GitHub Packages
on:
release:
types: [created]
env:
HUSKY: 0
jobs:
build:
runs-on: ubuntu-latest
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/gradle-dependency-submission.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ name: Gradle Dependency Submission
on:
push:
branches: [ 'develop', 'master', 'feature-2532/graal' ]

env:
HUSKY: 0
permissions:
contents: write

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/gradle-deploy-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
branches:
- 'develop'
env:
HUSKY: 0
PROJECT_ID: ${{ secrets.RUN_PROJECT }}
RUN_REGION: us-central1
SERVICE_NAME: checkins-develop
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/gradle-deploy-native-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
branches:
- 'develop'
env:
HUSKY: 0
PROJECT_ID: ${{ secrets.RUN_PROJECT }}
RUN_REGION: us-central1
SERVICE_NAME: checkins-develop-native
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/jekyll.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ on:
# Runs on pushes targeting the default branch
push:
branches: [develop]
env:
HUSKY: 0

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down
1 change: 1 addition & 0 deletions web-ui/.husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
./gradlew check
43 changes: 21 additions & 22 deletions web-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
"react-jss": "^10.4.0",
"react-modal": "^3.14.3",
"react-router-dom": "^5.3.0",
"react-swipeable-views": "^0.14.0",
"recharts": "^2.12.4",
"reselect": "^4.0.0",
"styled-components": "^6.1.8"
Expand All @@ -58,7 +57,8 @@
"serve": "vite preview",
"start": "vite",
"test": "vitest",
"update-test": "vitest -u"
"update-test": "vitest -u",
"prepare": "cd .. && husky web-ui/.husky"
},
"eslintConfig": {
"extends": "react-app"
Expand All @@ -76,31 +76,30 @@
]
},
"devDependencies": {
"@ladle/react": "^4.1.2",
"@ladle/react": "^5.0.1",
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.2.0",
"@testing-library/user-event": "^14.6.1",
"@testing-library/dom": "^10.4.0",
"@types/react-router-dom": "^5.3.0",
"@vitejs/plugin-react-swc": "^3.6.0",
"@vitest/coverage-v8": "^1.4.0",
"eslint": "^9.1.1",
"eslint-plugin-react": "^7.34.1",
"eslint-plugin-react-hooks": "^4.6.0",
"@types/react-router-dom": "^5.3.3",
"@vitejs/plugin-react-swc": "^3.8.0",
"@vitest/coverage-v8": "^3.0.8",
"eslint": "^9.22.0",
"eslint-plugin-react": "^7.37.4",
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-vitest": "^0.5.4",
"globals": "^15.0.0",
"happy-dom": "^15.10.2",
"jest-fetch-mock": "^3.0.3",
"jsdom": "^24.0.0",
"msw": "^2.6.4",
"prettier": "3.2.5",
"globals": "^16.0.0",
"husky": "^9.1.7",
"jsdom": "^26.0.0",
"msw": "^2.7.3",
"prettier": "3.5.3",
"prop-types": "^15.8.1",
"react-test-renderer": "^18.3.1",
"typescript": "^5.4.5",
"typescript-eslint": "^7.7.1",
"vite": "^5.4.12",
"vite-tsconfig-paths": "^4.3.2",
"vitest": "^1.6.1",
"vitest-fetch-mock": "^0.2.2"
"typescript": "^5.8.2",
"typescript-eslint": "^8.26.1",
"vite": "^6.2.1",
"vite-tsconfig-paths": "^5.1.4",
"vitest": "^3.0.8",
"vitest-fetch-mock": "^0.4.5"
}
}
5 changes: 3 additions & 2 deletions web-ui/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,9 @@ const theme = extendTheme({
components: {
MuiButtonBase: {
defaultProps: {
disableRipple: typeof process !== 'undefined' && !!process.env.VITEST_WORKER_ID, // No more ripple...only when testing.
},
disableRipple:
typeof process !== 'undefined' && !!process.env.VITEST_WORKER_ID // No more ripple...only when testing.
}
},
MuiCssBaseline: {
styleOverrides: {
Expand Down
2 changes: 1 addition & 1 deletion web-ui/src/api/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export const getMyFetch = async () => {
function windowLogin() {
return new Promise((resolve, reject) => {
const authUrl = `${BASE_API_URL}/login?close=true`;
const loginWindow = window.open(authUrl, "Login", "width=500,height=600");
const loginWindow = window.open(authUrl, 'Login', 'width=500,height=600');

const interval = setInterval(() => {
try {
Expand Down
14 changes: 7 additions & 7 deletions web-ui/src/api/certification.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const getCertifications = async cookie => {
headers: {
'X-CSRF-Header': cookie,
Accept: 'application/json',
'Content-Type': 'application/json;charset=UTF-8',
'Content-Type': 'application/json;charset=UTF-8'
}
});
};
Expand All @@ -29,9 +29,9 @@ export const createCertification = async (data, cookie) => {
Accept: 'application/json',
'Content-Type': 'application/json;charset=UTF-8'
},
data: data,
data: data
});
}
};

export const updateCertification = async (id, data, cookie) => {
return resolve({
Expand All @@ -42,9 +42,9 @@ export const updateCertification = async (id, data, cookie) => {
Accept: 'application/json',
'Content-Type': 'application/json;charset=UTF-8'
},
data: data,
data: data
});
}
};

export const mergeCertification = async (sourceId, targetId, cookie) => {
return resolve({
Expand All @@ -55,6 +55,6 @@ export const mergeCertification = async (sourceId, targetId, cookie) => {
Accept: 'application/json',
'Content-Type': 'application/json;charset=UTF-8'
},
data: { sourceId, targetId },
data: { sourceId, targetId }
});
}
};
7 changes: 2 additions & 5 deletions web-ui/src/api/feedback.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,11 @@ export const findReviewRequestsByPeriodAndTeamMembers = async (
});
};

export const findReviewRequestsByPeriod = async (
period,
cookie
) => {
export const findReviewRequestsByPeriod = async (period, cookie) => {
return resolve({
url: feedbackRequestURL,
params: {
reviewPeriodId: period?.id,
reviewPeriodId: period?.id
},
headers: { 'X-CSRF-Header': cookie, Accept: 'application/json' }
});
Expand Down
4 changes: 2 additions & 2 deletions web-ui/src/api/generic.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const downloadData = (url, cookie, params) => {
params: params,
headers: {
'X-CSRF-Header': cookie,
Accept: 'application/json',
Accept: 'application/json'
},
url: url
});
Expand All @@ -33,6 +33,6 @@ export const initiate = (url, cookie, params) => {
'Content-Type': 'application/json;charset=UTF-8'
},
url: url,
data: params,
data: params
});
};
48 changes: 25 additions & 23 deletions web-ui/src/api/kudos.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { resolve } from "./api.js";
import { resolve } from './api.js';

const kudosUrl = "/services/kudos";
const kudosUrl = '/services/kudos';

export const createKudos = async (kudos, cookie) => {
return resolve({
method: "post",
method: 'post',
url: kudosUrl,
data: kudos,
responseType: "json",
responseType: 'json',
headers: {
"X-CSRF-Header": cookie,
'X-CSRF-Header': cookie,
Accept: 'application/json',
'Content-Type': 'application/json;charset=UTF-8'
}
Expand All @@ -22,8 +22,8 @@ export const getReceivedKudos = async (memberId, cookie) => {
params: {
recipientId: memberId
},
responseType: "json",
headers: { "X-CSRF-Header": cookie, Accept: 'application/json' }
responseType: 'json',
headers: { 'X-CSRF-Header': cookie, Accept: 'application/json' }
});
};

Expand All @@ -33,15 +33,15 @@ export const getSentKudos = async (memberId, cookie) => {
params: {
senderId: memberId
},
responseType: "json",
headers: { "X-CSRF-Header": cookie, Accept: 'application/json' }
responseType: 'json',
headers: { 'X-CSRF-Header': cookie, Accept: 'application/json' }
});
};

export const getRecentKudos = async (cookie) => {
export const getRecentKudos = async cookie => {
return resolve({
url: `${kudosUrl}/recent`,
responseType: "json",
responseType: 'json',
headers: { 'X-CSRF-Header': cookie, Accept: 'application/json' }
});
};
Expand All @@ -52,42 +52,44 @@ export const getAllKudos = async (cookie, isPending) => {
params: {
isPending: isPending
},
responseType: "json",
responseType: 'json',
headers: { 'X-CSRF-Header': cookie, Accept: 'application/json' }
});
};

export const updateKudos = async (kudos, cookie) => {
return resolve({
method: "put",
method: 'put',
url: kudosUrl,
data: kudos,
responseType: "json",
responseType: 'json',
headers: {
"X-CSRF-Header": cookie,
'X-CSRF-Header': cookie,
Accept: 'application/json',
'Content-Type': 'application/json;charset=UTF-8'}
'Content-Type': 'application/json;charset=UTF-8'
}
});
};

export const approveKudos = async (kudos, cookie) => {
return resolve({
method: "put",
method: 'put',
url: `${kudosUrl}/approve`,
data: kudos,
responseType: "json",
responseType: 'json',
headers: {
"X-CSRF-Header": cookie,
'X-CSRF-Header': cookie,
Accept: 'application/json',
'Content-Type': 'application/json;charset=UTF-8'}
'Content-Type': 'application/json;charset=UTF-8'
}
});
};

export const deleteKudos = async (kudosId, cookie) => {
return resolve({
method: "delete",
method: 'delete',
url: `${kudosUrl}/${kudosId}`,
responseType: "json",
headers: { "X-CSRF-Header": cookie, Accept: 'application/json' }
responseType: 'json',
headers: { 'X-CSRF-Header': cookie, Accept: 'application/json' }
});
};
4 changes: 2 additions & 2 deletions web-ui/src/api/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const putOption = async (option, cookie) => {
Accept: 'application/json',
'Content-Type': 'application/json;charset=UTF-8'
},
data: option,
data: option
});
};

Expand All @@ -36,6 +36,6 @@ export const postOption = async (option, cookie) => {
Accept: 'application/json',
'Content-Type': 'application/json;charset=UTF-8'
},
data: option,
data: option
});
};
25 changes: 12 additions & 13 deletions web-ui/src/api/volunteer.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@ const organizationBaseUrl = '/services/volunteer/organization';

// Create New Organization
export const createNewOrganization = async (csrf, newOrganization) => {
const res = await resolve({
method: 'POST',
url: organizationBaseUrl,
headers: {
'X-CSRF-Header': csrf,
'Content-Type': 'application/json',
},
data: newOrganization,
});
return res;
};
const res = await resolve({
method: 'POST',
url: organizationBaseUrl,
headers: {
'X-CSRF-Header': csrf,
'Content-Type': 'application/json'
},
data: newOrganization
});

return res;
};

// Save New Organization
export const saveNewOrganization = async (csrf, newOrganization) => {
Expand Down Expand Up @@ -46,4 +46,3 @@ export const saveNewEvent = async (csrf, newEvent) => {

return res;
};

Loading
Loading