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

Latest code base #5

Open
wants to merge 75 commits into
base: send-email-feature
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
8c72e89
Implement mentee application form (#93)
anjula-sack May 9, 2024
21f4e9d
Integrate approve / reject mentee API for the mentor dashboard (#96)
anjula-sack May 12, 2024
cfb63b0
Add mentee dashboard (#100)
anjula-sack May 19, 2024
c5bd79e
Create component for mentor application view (#94)
Piumal1999 May 21, 2024
e0caf19
Fix mobile responsive issues (#101)
anjula-sack May 25, 2024
05fd1c3
Implement admin's mentee application view (#103)
Piumal1999 May 26, 2024
f6907ad
Implement Send Email Feature (#98)
mayura-andrew May 26, 2024
f6ab30c
Fix the layout issues (#106)
anjula-sack May 26, 2024
694acfd
Add toasts and loading states (#109)
anjula-sack Jun 1, 2024
e6fd958
Improve Mobile MenuDrawer (#111)
mayura-andrew Jun 1, 2024
721f098
Improve current home page and redusing current png's size (#113)
mayura-andrew Jun 2, 2024
c2188cf
Add Confirmation popups when changing user states (#117)
anjula-sack Jun 4, 2024
9aba2f9
Bulk email send feature (#115)
mayura-andrew Jun 11, 2024
9269008
Improve the images by using webp (#120)
anjula-sack Jun 30, 2024
7693762
Fix the profile picture and user card issues (#123)
anjula-sack Jul 7, 2024
00e81f3
Add previous mentors to the mentors page (#125)
anjula-sack Jul 9, 2024
b485c58
Show the undergraduate details part of the form by default (#136)
Madhawa97 Jul 19, 2024
fb7147f
Update mentee FAQ with new questions and answers (#135)
ItsLasa Jul 20, 2024
1c32286
Show the available mentee slots in mentor profile (#138)
Madhawa97 Jul 20, 2024
0b034b9
Disable apply button when there's a pending application (#137)
Madhawa97 Jul 20, 2024
d6dd898
Add mentor mentee guides (#140)
anjula-sack Jul 21, 2024
62bf9a2
Add the sticky banner for the guides (#141)
anjula-sack Jul 23, 2024
e39bf16
Disable apply button when there's a approved application (#144)
Madhawa97 Jul 26, 2024
88ec315
Add login with Linkedin option to the UI (#146)
Madhawa97 Jul 26, 2024
068d9ef
Add a deploy step to the CI/CD workflow (#148)
anjula-sack Jul 27, 2024
f8a1b67
Update CI.yml (#149)
anjula-sack Jul 27, 2024
b451be4
Add complete status (#127)
mayura-andrew Jul 31, 2024
b821f31
Show mentees under the mentor profile (#152)
Madhawa97 Aug 17, 2024
611e411
Dockerize the frontend (#169)
anjula-sack Aug 17, 2024
ab04a0c
Change the Facebook logo to Meta logo (#156)
ItsLasa Aug 18, 2024
e38fabb
Fix profile image issue and responsive view issues (#173)
Madhawa97 Aug 20, 2024
76dbfbb
Add mentee monthly check in UI (#174)
Madhawa97 Aug 25, 2024
bb5931a
Fix: Navbar splitting into two rows on medium screen sizes #175 (#179)
ItsLasa Sep 1, 2024
f79046e
Add revoke mentee application option (#180)
anjula-sack Sep 4, 2024
6afa7c6
Add pagination support for frontend (#182)
Madhawa97 Sep 9, 2024
7a275b9
Refactor EditProfileForm component and useUserProfile hook (#185)
mayura-andrew Sep 9, 2024
fd1cbda
Change the Breadcrumb names into one line on mobile view (#186)
Sanjana0823 Sep 15, 2024
9f1081d
Update mentor profile UI (#183)
AnsarMahir Sep 15, 2024
6775751
Changed margin top to the main layout (#187)
Akshaydotcom Sep 16, 2024
8546766
implement monthly checking modal, and ui for view submissions in both…
mayura-andrew Sep 19, 2024
a1946ec
Add date-fns library for date manipulation and validation
mayura-andrew Sep 20, 2024
afb8a0d
Refactor MonthlyChecking Modal
mayura-andrew Sep 23, 2024
6bcc56c
Fix Profile image Loading (#188)
dilankavishka Sep 24, 2024
a36e23b
add topic tags input field
mayura-andrew Sep 24, 2024
cc6f97c
Refactor MonthlyChecking component and add TagInput functionality
mayura-andrew Sep 24, 2024
d2f2320
Refactor MenteeCheckIn component and remove TagInput functionality
mayura-andrew Sep 25, 2024
32ffd3f
Refactor MenteeCheckIn component and remove TagInput functionality
mayura-andrew Sep 26, 2024
4a09730
Merge branch 'sef-global:main' into main
mayura-andrew Sep 27, 2024
264abb9
Update MonthlyChecking feature: Add General Updates, Feedback, and Pr…
mayura-andrew Sep 27, 2024
152aa79
Refactor enums.ts: Add REVOKED status to ApplicationStatus enum
mayura-andrew Sep 28, 2024
fc70b59
Update CI.yml (#194)
anjula-sack Sep 29, 2024
937b748
Update CI.yml
anjula-sack Sep 29, 2024
d21547a
Remove mentor name from the mentee application (#193)
Sanjana0823 Sep 29, 2024
2be3966
Update CI.yml
anjula-sack Sep 29, 2024
23172a1
Update CI.yml
anjula-sack Sep 29, 2024
0a6c746
Update CI.yml
anjula-sack Sep 29, 2024
cb7c4d1
Refactor code: Remove unused MenteeCheckIn component and HistoryToggle
mayura-andrew Sep 29, 2024
33a6448
Refactor ToggleButton component: Update badge styling
mayura-andrew Sep 29, 2024
36d80ff
Refactor routing: Add new route for AdminMenteeView component
mayura-andrew Sep 29, 2024
a044bd0
Refactor routing: Update route for AdminMenteeView component
mayura-andrew Sep 30, 2024
82609a3
Merge branch 'sef-global:main' into main
mayura-andrew Sep 30, 2024
14f1d12
Refactor code: Update badge styling in ToggleButton component
mayura-andrew Sep 30, 2024
d97ead1
Refactor MonthlyCheckInModal component: Update media links handling
mayura-andrew Oct 1, 2024
fb99966
Refactor MonthlyCheckInModal component: Remove unused import and upda…
mayura-andrew Oct 2, 2024
021ab78
Making 'Become a Mentor' form to validate number as input value #196…
shiv-0101 Oct 5, 2024
e56a4e1
Add option to "Read and Agree" with mentor and mentee guides at the a…
Madhawa97 Oct 5, 2024
b89ea32
Modified mentee registration validations (#201)
Disura-Randunu Oct 5, 2024
f6b437a
Add the hot.jar cdn link to index.html file (#204)
YoshithaRathnayake Oct 5, 2024
4ad7d95
Refactor code: Remove unused imports and update media links handling,…
mayura-andrew Oct 6, 2024
5e07bb6
Refactor code: Remove unused route and update media links handling
mayura-andrew Oct 6, 2024
77c11b5
Refactor code: Remove unused @react-spring dependencies
mayura-andrew Oct 9, 2024
882152b
Refactor code: Remove Spinner component and update mentor feedback f…
mayura-andrew Oct 10, 2024
42859b6
Refactor MentorCard component: Add variant prop and update UI
mayura-andrew Oct 11, 2024
1c7e853
Merge branch 'development' into main
mayura-andrew Oct 14, 2024
30eeb37
Renamed NotificationBellSVG to NotificationBell
mayura-andrew Oct 14, 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
7 changes: 7 additions & 0 deletions . dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
node_modules
npm-debug.log
dist
.git
*.md
.gitignore
.env
9 changes: 7 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"standard-with-typescript",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
"plugin:prettier/recommended",
"plugin:react/jsx-runtime"
],
"plugins": ["@typescript-eslint", "prettier", "react"],
"parserOptions": {
Expand All @@ -17,7 +18,11 @@
},
"rules": {
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/no-misused-promises": 0
"@typescript-eslint/no-misused-promises": 0,
"@typescript-eslint/strict-boolean-expressions": 0,
"@typescript-eslint/no-unused-expressions": 0,
"@typescript-eslint/no-empty-function": 0,
"@typescript-eslint/consistent-type-imports": 0
},
"settings": {
"react": {
Expand Down
36 changes: 32 additions & 4 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: CI/CD

on:
push:
Expand All @@ -7,10 +7,10 @@ on:
pull_request:
branches:
- main
workflow_dispatch:

jobs:
build:

runs-on: ubuntu-latest

steps:
Expand All @@ -20,13 +20,41 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
node-version: '20'

- name: Install dependencies
run: npm install
run: npm ci

- name: Unit tests
run: npm run test

- name: ESLint check
run: npm run lint

- name: Build
run: npm run build

deploy:
if: github.event_name == 'push'
runs-on: ubuntu-latest
needs: build

steps:
- name: Deploy to server
uses: appleboy/[email protected]
with:
host: ${{ secrets.SERVER_HOST }}
username: ${{ secrets.SERVER_USERNAME }}
password: ${{ secrets.SERVER_PASSWORD }}
port: ${{ secrets.SERVER_PORT }}
script: |
export NVM_DIR=~/.nvm
source ~/.nvm/nvm.sh
npm --help
cd scholarx-frontend
git pull
npm install
npm run build
echo "build successful"
sudo cp -r dist/* /var/www/scholarx/
sudo systemctl restart nginx
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
Expand Down
24 changes: 24 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Fetching the latest node image on apline linux
FROM node:alpine AS builder

# Setting up the work directory
WORKDIR /app

# Installing dependencies
COPY ./package.json ./
RUN npm install

# Copying all the files in our project
COPY . .

# Building our application
RUN npm run build

# Fetching the latest nginx image
FROM nginx

# Copying built assets from builder
COPY --from=builder /app/dist /usr/share/nginx/html

# Copying our nginx.conf
COPY nginx.conf /etc/nginx/conf.d/default.conf
2 changes: 2 additions & 0 deletions example.env
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
VITE_API_URL=http://localhost:3000/api
VITE_EMAILAPI_URL=https://64.227.135.79/
VITE_SENDER_EMAIL=
36 changes: 32 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,39 @@
<!doctype html>
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Google tag (gtag.js) -->
<script
async
src="https://www.googletagmanager.com/gtag/js?id=UA-167873271-3"
></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());

gtag('config', 'UA-167873271-3');
</script>
<!-- Hotjar Tracking Code for ScholarX V2 -->
<script>
(function(h,o,t,j,a,r){
h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
h._hjSettings={hjid:5160281,hjsv:6};
a=o.getElementsByTagName('head')[0];
r=o.createElement('script');r.async=1;
r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
a.appendChild(r);
})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');
</script>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="shortcut icon" href="/favicon.png">
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<link rel="shortcut icon" href="/favicon.png" />
<title>ScholarX | Sustainable Education Foundation</title>
</head>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
Expand Down
9 changes: 9 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
server {
listen 80;

location / {
root /usr/share/nginx/html/;
include /etc/nginx/mime.types;
try_files $uri $uri/ /index.html;
}
}
Loading