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

mmakes changes #102

Open
wants to merge 66 commits into
base: dev-deployment
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
f63760d
changed env
Madhu2244 May 6, 2024
06936b4
Update CD.yml
jrock-3 May 6, 2024
617527c
Rename ViewDonation.Module.css
jrock-3 May 6, 2024
6de4006
Rename ViewDonation.css
jrock-3 May 6, 2024
7ffab62
changes
Madhu2244 May 7, 2024
0967431
Updated README.md
benson-fm May 16, 2024
710a972
ci: add prod cd workflow
KevinWu098 May 25, 2024
87ceda4
ci (chore): update deployment workflow name
KevinWu098 May 25, 2024
2cba696
Added project description to README
Aokijiop Jun 18, 2024
9930554
Merge pull request #103 from ctc-uci/benson-fm-patch-1
Aokijiop Jun 18, 2024
e01ee64
refactor: cleanup Sidebar
KevinWu098 Jul 24, 2024
92a5b70
refactor: clean up App and routes
KevinWu098 Jul 24, 2024
f373392
feat (wip): settings page
KevinWu098 Jul 30, 2024
bf0e385
feat: add a small redirecting message to catch all
KevinWu098 Jul 30, 2024
a226bc9
chore: update icon list in sidebar
KevinWu098 Jul 30, 2024
b97ad5c
style: finish cleaning
KevinWu098 Jul 30, 2024
379ea9b
Merge pull request #106 from ctc-uci/kw/settings
KevinWu098 Jul 30, 2024
6bd9a4c
style (wip): cleanup admin settings
KevinWu098 Jul 30, 2024
8ae0b09
style: finish cleanup
KevinWu098 Jul 31, 2024
9e0cbd5
Merge pull request #107 from ctc-uci/kw/settings-admin-account
KevinWu098 Jul 31, 2024
f65e842
chore: remove console log in authcontext
KevinWu098 Jul 31, 2024
b592f0e
feat: cleanup
KevinWu098 Jul 31, 2024
0fdb6ac
feat: jfc
KevinWu098 Jul 31, 2024
b0ff89a
feat: revamp setup
KevinWu098 Aug 1, 2024
d01a464
fix: misc cleanup
KevinWu098 Aug 1, 2024
df07db2
Merge pull request #108 from ctc-uci/kwu/business-setup
KevinWu098 Aug 1, 2024
3ef6e30
style: set minwidth to width on sidebar
KevinWu098 Aug 1, 2024
cf7a4fe
chore: add react-app-env
KevinWu098 Aug 1, 2024
9cff54d
feat: refactor
KevinWu098 Aug 2, 2024
6a761a2
feat: more cleanup )=
KevinWu098 Aug 3, 2024
d185bfe
style: fix the damn grid
KevinWu098 Aug 3, 2024
8a3adbf
Merge pull request #109 from ctc-uci/kwu/supply-request
KevinWu098 Aug 3, 2024
37499a4
chore: prettier
KevinWu098 Aug 3, 2024
f9dd431
fix: dependency
KevinWu098 Aug 3, 2024
e026ff2
Merge pull request #110 from ctc-uci/kwu/prettier
KevinWu098 Aug 3, 2024
4c11a72
chore: swap to tsx
KevinWu098 Aug 3, 2024
e53f2ba
feat: standardize page and headers
KevinWu098 Aug 4, 2024
905bdd7
style: cleanup SupplyRequestsPage
KevinWu098 Aug 4, 2024
fde6982
style: lower sidebar width
KevinWu098 Aug 4, 2024
bb94e01
chore: remove unused files
KevinWu098 Aug 4, 2024
0ed1ea5
feat: refactor donation form
KevinWu098 Aug 4, 2024
a1fb1b4
chore: convert Congrats to tsx
KevinWu098 Aug 4, 2024
adadf0a
feat: add visual indicators for required donation form fields
KevinWu098 Aug 4, 2024
69e1304
chore: add todo to implement file uploads
KevinWu098 Aug 4, 2024
897f2f2
feat: link notification to donation
KevinWu098 Aug 4, 2024
f997772
feat: cleanup donation details
KevinWu098 Aug 4, 2024
aff8ea3
feat: remove confirmation popup from supply request, update drawer
KevinWu098 Aug 4, 2024
9b8ffdd
fix: misc cleanup
KevinWu098 Aug 4, 2024
1affa8a
feat: clean donation items table
KevinWu098 Aug 4, 2024
70d3784
feat (wip): actually display businesses on admin page
KevinWu098 Aug 4, 2024
21a49d0
feat: refactor ViewBusiness
KevinWu098 Aug 4, 2024
722d202
feat (wip): clean up business form
KevinWu098 Aug 6, 2024
b2b2c67
style: cleanup business form some more
KevinWu098 Aug 7, 2024
034b34a
fix: stop infinite rerender
KevinWu098 Aug 7, 2024
59c502d
style: refactor and standardize business forms
KevinWu098 Aug 7, 2024
7bbcf3c
fix: cleanup breadcrumb
KevinWu098 Aug 7, 2024
c9060c0
style: cleanup donations modal
KevinWu098 Aug 7, 2024
bbf3993
style: update admin's business table
KevinWu098 Aug 9, 2024
46d977d
refactor: cleanup csv upload
KevinWu098 Aug 9, 2024
40020a4
feat: clean up donation tracking (wip: backend is bad)
KevinWu098 Aug 9, 2024
4aec74a
feat (wip): massive auth overhaul
KevinWu098 Aug 10, 2024
ea7fd35
plz
KevinWu098 Sep 2, 2024
77bbb90
plz
KevinWu098 Sep 2, 2024
7f750fc
Merge pull request #111 from ctc-uci/kwu/auth
KevinWu098 Sep 2, 2024
bf8a2da
feat: actually fix protected route
KevinWu098 Sep 2, 2024
343435a
feat: fix login
KevinWu098 Sep 3, 2024
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
12 changes: 6 additions & 6 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ module.exports = {
'plugin:react/jsx-runtime',
'plugin:react-hooks/recommended',
],
globals: {
React: true,
},
ignorePatterns: ['dist', '.eslintrc.cjs'],
parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
settings: { react: { version: '18.2' } },
settings: { react: { version: 'detect' } },
plugins: ['react-refresh'],
rules: {
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
'react-refresh/only-export-components': ['warn', { allowConstantExport: true }],
},
}
};
23 changes: 0 additions & 23 deletions .eslintrc.json

This file was deleted.

51 changes: 51 additions & 0 deletions .github/workflows/CD-prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: S3 Prod Deploy
on:
push:
branches:
- main
env:
NODE_ENV: ${{ secrets.NODE_ENV }}
VITE_FIREBASE_APIKEY: ${{ secrets.VITE_FIREBASE_APIKEY }}
VITE_FIREBASE_AUTHDOMAIN: ${{ secrets.VITE_FIREBASE_AUTHDOMAIN }}
VITE_FIREBASE_PROJECTID: ${{ secrets.VITE_FIREBASE_PROJECTID }}
VITE_FIREBASE_STORAGEBUCKET: ${{ secrets.VITE_FIREBASE_STORAGEBUCKET }}
VITE_FIREBASE_MESSAGINGSENDERID: ${{ secrets.VITE_FIREBASE_MESSAGINGSENDERID }}
VITE_FIREBASE_APPID: ${{ secrets.VITE_FIREBASE_APPID }}
VITE_EMAIL_USERNAME: ${{ secrets.VITE_EMAIL_USERNAME }}
VITE_BACKEND_HOSTNAME: ${{ secrets.PROD_VITE_BACKEND_HOSTNAME }}

jobs:
run:
runs-on: ubuntu-latest
env:
AWS_ACCESS_KEY_ID: ${{ secrets.PROD_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.PROD_AWS_SECRET_ACCESS_KEY }}
steps:
- name: Checkout repo
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3

- name: Install dependencies
uses: borales/actions-yarn@v4
with:
cmd: install

- name: Build
uses: borales/actions-yarn@v4
with:
cmd: build

- name: Deploy
uses: reggionick/s3-deploy@v4
with:
folder: dist
bucket: ${{ secrets.PROD_S3_BUCKET }}
bucket-region: ${{ secrets.S3_BUCKET_REGION }}
dist-id: ${{ secrets.PROD_CLOUDFRONT_DISTRIBUTION_ID }}
invalidation: /
delete-removed: true
no-cache: true
private: true
filesToInclude: '.*/*,*/*,**'
4 changes: 2 additions & 2 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: S3 Deploy
on:
push:
branches:
- dev-deployment
- main
env:
NODE_ENV: ${{ secrets.NODE_ENV }}
VITE_FIREBASE_APIKEY: ${{ secrets.VITE_FIREBASE_APIKEY }}
Expand Down Expand Up @@ -48,4 +48,4 @@ jobs:
delete-removed: true
no-cache: true
private: true
filesToInclude: '.*/*,*/*,**'
filesToInclude: '.*/*,*/*,**'
27 changes: 13 additions & 14 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
name: CI

on:
[pull_request]

on: [pull_request]

permissions: read-all

jobs:
eslint:
eslint:
runs-on: ubuntu-latest
steps:
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
Expand All @@ -21,16 +20,16 @@ jobs:
reporter: github-pr-review
fail_on_error: false
eslint_flags: '**/*.{js,jsx}'

detect-secrets:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run detect-secrets with reviewdog
uses: reviewdog/action-detect-secrets@master
with:
github_token: ${{ secrets.CTC_DEVOPS_ORG_PAT }}
reporter: github-pr-review
- uses: actions/checkout@v2
- name: Run detect-secrets with reviewdog
uses: reviewdog/action-detect-secrets@master
with:
github_token: ${{ secrets.CTC_DEVOPS_ORG_PAT }}
reporter: github-pr-review

# Prevents false positives from failing job
fail_on_error: false
# Prevents false positives from failing job
fail_on_error: false
6 changes: 3 additions & 3 deletions .github/workflows/scripts/reviewReviewed.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ const messageAssignee = async ({ context }) => {
try {
const UserModel = getUserModel();
const slackAssignees = await Promise.allSettled(
githubAssignees.map(assignee => UserModel.findOne({ github: assignee.login })),
githubAssignees.map((assignee) => UserModel.findOne({ github: assignee.login })),
);
if (context.payload.review.state === 'approved') {
await Promise.all(
slackAssignees.map(assignee =>
slackAssignees.map((assignee) =>
Bot.client.chat.postMessage({
channel: assignee.value?.slackId,
text: `One of your pull requests has been APPROVED by ${reviewer}! <${url}|View Review> :shrek::thumbsup:`,
Expand All @@ -53,7 +53,7 @@ const messageAssignee = async ({ context }) => {
);
} else {
await Promise.all(
slackAssignees.map(assignee =>
slackAssignees.map((assignee) =>
Bot.client.chat.postMessage({
channel: assignee.value?.slackId,
text: `One of your pull requests has been REVIEWED by ${reviewer}! <${url}|View Review> :shrek:`,
Expand Down
Loading
Loading