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

Development 1.1 #303

Merged
merged 323 commits into from
May 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
323 commits
Select commit Hold shift + click to select a range
d7e15d5
Add forms validation
zaelgohary Jan 18, 2024
3ca309c
Enahnce forms styling
zaelgohary Jan 18, 2024
3684e26
Edit form card styling, implement update user profile page
zaelgohary Jan 18, 2024
f07da98
Fix image in update user form
zaelgohary Jan 18, 2024
264cdd9
Fix location & date picker format
zaelgohary Jan 18, 2024
cd52954
Update login page (#296)
samaradel Jan 21, 2024
b3ef83d
Add countries drop down, comment update office vacations, fix list us…
zaelgohary Jan 21, 2024
801490f
add vacation validation
zaelgohary Jan 21, 2024
272ef8e
feat: Add toolbar with profile and notifications
MohamedElmdary Jan 21, 2024
01a4270
Merge branch 'development_1.1' into development_1.1_implement_toolbar
MohamedElmdary Jan 21, 2024
7675b15
Replace supercisor w tead lead in update user, fix image display, rem…
zaelgohary Jan 21, 2024
b9eb889
Fix update user
zaelgohary Jan 21, 2024
0df7b30
Fix update user styling
zaelgohary Jan 21, 2024
53cc553
chore: save work
MohamedElmdary Jan 21, 2024
6c199af
Uncomment route guard and hide dashboard if not admin
zaelgohary Jan 21, 2024
9422fad
fix: menu width
MohamedElmdary Jan 21, 2024
888249f
lint & format
zaelgohary Jan 21, 2024
45e16fa
Merge branch 'development_1.1' of https://github.com/codescalers/CSHR…
zaelgohary Jan 21, 2024
0ebe314
Fix build
zaelgohary Jan 21, 2024
f0c41d9
Fix build
zaelgohary Jan 21, 2024
b04a949
Fix date picker in set vacations, refactor formatDate
zaelgohary Jan 22, 2024
cba5a90
Edit notification styling, remove unused import
zaelgohary Jan 22, 2024
43b2f54
Refactor preventDefault in setVacations
zaelgohary Jan 22, 2024
b73d8d4
chore: Merge branch 'development_1.1_notification_details' into devel…
MohamedElmdary Jan 22, 2024
056ba50
chore: save work
MohamedElmdary Jan 22, 2024
edebe7d
Merge branch 'development_1.1' into development_1.1_users_page
maayarosama Jan 22, 2024
5226614
fixing typos
maayarosama Jan 22, 2024
2e48bd1
feat: Outsource notificationdetailsdialog
MohamedElmdary Jan 22, 2024
1e4420a
feat: Fix dialog details
MohamedElmdary Jan 22, 2024
f4ad6df
feat: use notificationDetailsDialog in view
MohamedElmdary Jan 22, 2024
f15fa1a
chore: remove updates in .env
MohamedElmdary Jan 22, 2024
9bf993b
fix: install vue3-notifier@1.0.3
MohamedElmdary Jan 22, 2024
e507c54
Merge pull request #308 from codescalers/development_1.1_fix_notifier
MohamedElmdary Jan 22, 2024
aed7b3c
Dockerize the frontend (#309)
Mahmoud-Emad Jan 22, 2024
5999ebf
Fixing users profile
maayarosama Jan 22, 2024
7486887
Merge branch 'development_1.1' into development_1.1_users_page
maayarosama Jan 22, 2024
8874c72
Adding useAsync in comments
maayarosama Jan 22, 2024
0821351
Using useAsyncState in UsersView
maayarosama Jan 22, 2024
261fe54
use useAsyncState in profileview
maayarosama Jan 23, 2024
ca2ed4a
Development 1.1 staging enhancements (#312)
Mahmoud-Emad Jan 23, 2024
50aa246
Staging version
Mahmoud-Emad Jan 23, 2024
684b55d
Staging version
Mahmoud-Emad Jan 23, 2024
e771a40
Staging version: Changing the front end ports in the docker-compose.
Mahmoud-Emad Jan 23, 2024
1073202
Merge branch 'development' into development_1.1
Mahmoud-Emad Jan 23, 2024
8869097
Show success notification if post & put only, Use useAsyncState to ha…
zaelgohary Jan 23, 2024
0e423f1
Update the docker compose, fix the postgres linking issue.
Mahmoud-Emad Jan 23, 2024
e894ca4
Update the docker compose, fix the postgres linking issue.
Mahmoud-Emad Jan 23, 2024
fa96795
Handle error in every API call, replace supervisors w Team Lead in my…
zaelgohary Jan 23, 2024
2c1fdf5
fixing build issues
maayarosama Jan 23, 2024
dcb816b
removing issues
maayarosama Jan 23, 2024
2359a5f
fix: replace 'computedAsync' with 'useAsyncState' to avoid multiple c…
MohamedElmdary Jan 23, 2024
e97b7a5
Merge pull request #304 from codescalers/development_1.1_implement_to…
MohamedElmdary Jan 23, 2024
af70dd5
Fix: Update the default value for the backend server with /api to cal…
Mahmoud-Emad Jan 23, 2024
4b57430
adding users image
maayarosama Jan 23, 2024
621914c
Fix user in state
zaelgohary Jan 23, 2024
70591d7
Merge pull request #295 from codescalers/development_1.1_dashboard
zaelgohary Jan 23, 2024
7e18fcd
Merge branch 'development_1.1' of https://github.com/codescalers/CSHR…
zaelgohary Jan 23, 2024
e55bae1
Update the config.js
Mahmoud-Emad Jan 23, 2024
a71041a
Merge branch 'development_1.1' of https://github.com/codescalersinter…
Mahmoud-Emad Jan 23, 2024
2a962e8
Fix expected to login err
zaelgohary Jan 23, 2024
bdd26fb
Edit error message
zaelgohary Jan 23, 2024
ef88af0
Merge branch 'development_1.1' into development_1.1_users_page
maayarosama Jan 24, 2024
62d3243
Edit normalizeErr function, store refresh token on mount
zaelgohary Jan 24, 2024
5c84dbd
Development 1.1 staging (#314)
Mahmoud-Emad Jan 24, 2024
7ee24c5
Merge branch 'development_1.1' of https://github.com/codescalers/CSHR…
zaelgohary Jan 24, 2024
3655ccd
resolving comments
maayarosama Jan 24, 2024
aedbe81
removing comments
maayarosama Jan 24, 2024
2427ce7
Merge branch 'development_1.1' into development_1.1_users_page
maayarosama Jan 24, 2024
c40df9f
fixing build error
maayarosama Jan 24, 2024
9b046c3
Added the -d flag to docker up.
Mahmoud-Emad Jan 24, 2024
e98f1d0
Added database scripts dir.
Mahmoud-Emad Jan 24, 2024
f5f7a1a
Fix office form & refresh token in base
zaelgohary Jan 24, 2024
0875c13
Fix build
zaelgohary Jan 24, 2024
efe3063
Merge pull request #285 from codescalers/development_1.1_users_page
maayarosama Jan 24, 2024
a6777aa
Merge pull request #305 from codescalers/development_1.1_notification…
MohamedElmdary Jan 24, 2024
74b6c79
Update the frontend ports
Mahmoud-Emad Jan 24, 2024
5573af8
Run the migrations only on development mode.
Mahmoud-Emad Jan 24, 2024
5e7d075
Update the makefile.
Mahmoud-Emad Jan 24, 2024
cc0b8c8
Added a help command.
Mahmoud-Emad Jan 24, 2024
e242419
Update the backend.
Mahmoud-Emad Jan 24, 2024
3f7f4bf
Saving the user image as its name.
Mahmoud-Emad Jan 24, 2024
61cbe0f
COPY with docker but with node_modules exclusion
Mahmoud-Emad Jan 24, 2024
47d2640
Fix: Fix the loading user image issue by replacing the 'api/' with an…
Mahmoud-Emad Jan 24, 2024
5b024bf
Merge branch 'development_1.1' of https://github.com/codescalers/CSHR…
zaelgohary Jan 28, 2024
3b85ba6
Merge pull request #313 from codescalers/development_1.1_fix_login_err
zaelgohary Jan 28, 2024
c02c7c8
WIP: Added functions to validate the token
Mahmoud-Emad Jan 28, 2024
2bbfa7f
Fix constant loading (#316)
zaelgohary Jan 28, 2024
8e933ed
Development 1.1 calender (#294)
maayarosama Jan 28, 2024
b307df2
Removed the -d flag from the docker compose down command in the makefile
Mahmoud-Emad Jan 28, 2024
eaad90e
enhance calender
ehab-hassan Jan 28, 2024
614c0cb
enhance calender2
ehab-hassan Jan 28, 2024
00bbafd
update pop up color
ehab-hassan Jan 29, 2024
3d493ed
Adding themes to vuetify.ts
maayarosama Jan 29, 2024
9606a07
popup calendar updated
ehab-hassan Jan 29, 2024
29545cf
Fix: Updated the users page, ordered by the first_name, reduced the p…
Mahmoud-Emad Jan 29, 2024
4b8fb3d
Fix: Updated the users page, ordered by the first_name, reduced the p…
Mahmoud-Emad Jan 29, 2024
3bbbe52
calender color
ehab-hassan Jan 29, 2024
6b21d89
Fix login issue.
Mahmoud-Emad Jan 29, 2024
73d1d63
calender color
ehab-hassan Jan 29, 2024
1b9d8e8
Change the server dir name in the backend docker file.
Mahmoud-Emad Jan 29, 2024
04a30fb
Adding pagination (#318)
maayarosama Jan 29, 2024
dbbefc5
Development 1.1 user activation (#319)
maayarosama Jan 29, 2024
2cb973e
Removed unused text in the set as active/inactive button
Mahmoud-Emad Jan 29, 2024
ca80fcd
Enhance the user card
Mahmoud-Emad Jan 29, 2024
de1d967
Enhance the user card
Mahmoud-Emad Jan 29, 2024
05d5765
update public holiday
Jan 30, 2024
356e85e
update birthday and event card
Jan 30, 2024
564f1b3
update birthday and event card
Jan 30, 2024
97383b2
vacation card enhancments
maayarosama Jan 30, 2024
6c4a232
update event card
Jan 30, 2024
7554a48
fix: prevent any view from appear before router isReady
MohamedElmdary Jan 30, 2024
6f9786a
fix: login/refresh
MohamedElmdary Jan 30, 2024
65c6eff
Leave request enhancmantes
maayarosama Jan 30, 2024
d3f4e03
meeting update
ehab-hassan Jan 31, 2024
c8c0b27
remove comment
ehab-hassan Jan 31, 2024
23bb237
fix conflict
ehab-hassan Jan 31, 2024
4d9299a
feat: Add refresh token
MohamedElmdary Jan 31, 2024
c9e97f7
refactor: Remove commented code related to auth
MohamedElmdary Jan 31, 2024
4c702f7
chore: Return config to it's original value
MohamedElmdary Jan 31, 2024
bcb471c
fix meeting card
ehab-hassan Jan 31, 2024
dfaa586
Fixing v-select offices bug in usersView
maayarosama Jan 31, 2024
6dd975e
fix: assert user wasn't accessing ref's value
MohamedElmdary Jan 31, 2024
7e90a52
Merge pull request #323 from codescalers/development_fix_login
MohamedElmdary Jan 31, 2024
a920355
fixing pagination bug
maayarosama Jan 31, 2024
dd3012d
update style of team
ehab-hassan Jan 31, 2024
fc0c30d
Merge branch 'development_1.1' into development_1.1_calender_enhancments
maayarosama Jan 31, 2024
e202b4d
Merge branch 'development_1.1' into development_1.1_offices_bug
maayarosama Jan 31, 2024
85b7e04
Fixing reload bug
maayarosama Jan 31, 2024
d34d62c
chore: Merge branch 'development_1.1' into developmen_enhance_ui
MohamedElmdary Jan 31, 2024
ab6e7a8
Development 1.1 Redis connection (#328)
Mahmoud-Emad Jan 31, 2024
ed6c175
Merge pull request #320 from codescalers/developmen_enhance_ui
ehab-hassan Jan 31, 2024
2af005b
log test
zaelgohary Jan 31, 2024
613ec98
revert log test
zaelgohary Jan 31, 2024
08c1c83
Fixing end dates
maayarosama Jan 31, 2024
6376796
feat: Reduce requests (#330)
MohamedElmdary Jan 31, 2024
0af6ce7
Fix: Added cursor pointer class to the user avatar.
Mahmoud-Emad Jan 31, 2024
8ea79f6
Fixing refresh bug
maayarosama Jan 31, 2024
fcd26db
Removing public holiday and adding vacation balance
maayarosama Jan 31, 2024
62586e1
Enhancement: Added a link to the CSHR logo.
Mahmoud-Emad Jan 31, 2024
ccb98d8
Merge branch 'development_1.1' into development_1.1_calender_enhancments
maayarosama Jan 31, 2024
a9b5ae1
adding padding
maayarosama Jan 31, 2024
56c3095
count fix
maayarosama Jan 31, 2024
fe432e4
fix conflict
ehab-hassan Jan 31, 2024
f0d2106
update all pages
ehab-hassan Jan 31, 2024
8f89707
update all pages
ehab-hassan Jan 31, 2024
48ce64e
update team view
ehab-hassan Jan 31, 2024
b13246b
update team view
ehab-hassan Feb 1, 2024
8370b95
fixing count bug
maayarosama Feb 1, 2024
c7d34a5
remove console logs
maayarosama Feb 1, 2024
4eca99b
fix: unwrap was access config in AxiosRes which might be undefined
MohamedElmdary Feb 1, 2024
a3d1773
adding setCount method
maayarosama Feb 1, 2024
582e70a
removing console logs
maayarosama Feb 1, 2024
20e4cd7
Merge pull request #332 from codescalers/development_1.1_enhance_team
ehab-hassan Feb 1, 2024
970b01c
Merge branch 'development_1.1' into development_1.1_offices_bug
maayarosama Feb 1, 2024
2cf9cb1
Merge pull request #322 from codescalers/development_1.1_calender_enh…
maayarosama Feb 1, 2024
2ec311f
Merge pull request #325 from codescalers/development_1.1_offices_bug
maayarosama Feb 1, 2024
064bb3b
fix: normalize error
MohamedElmdary Feb 1, 2024
1071ef1
Merge pull request #334 from codescalers/development_1.1_fix_unwrap
MohamedElmdary Feb 1, 2024
3963661
UI vacation card
maayarosama Feb 1, 2024
30fa3c9
UI vacation card
maayarosama Feb 1, 2024
c0f6884
Add confirm password
zaelgohary Feb 1, 2024
4b98697
fix img profile
ehab-hassan Feb 1, 2024
e82e403
Added -f flag to the docker compose log command to follow up the logs.
Mahmoud-Emad Feb 1, 2024
26dbc67
Edit error msg in change pass API
zaelgohary Feb 1, 2024
e9cdf25
revert last commit, Update msg in change password
zaelgohary Feb 1, 2024
1844dfd
fix avatar size
ehab-hassan Feb 1, 2024
cca4172
Merge pull request #335 from codescalers/development_1.1_vacationCard
maayarosama Feb 1, 2024
ac1459a
Merge pull request #337 from codescalers/development_1.1_enhance_prof…
ehab-hassan Feb 1, 2024
78b7616
Edit msg
zaelgohary Feb 1, 2024
e074c2c
Merge pull request #336 from codescalers/development_1.1_password_con…
zaelgohary Feb 1, 2024
d7fbeec
Fix: push the profile link the router on clicking on the 'Your Profil…
Mahmoud-Emad Feb 1, 2024
f81eea7
Add vacation rules
zaelgohary Feb 1, 2024
2b0630b
Edit vacation rules
zaelgohary Feb 1, 2024
d6e1231
Merge pull request #339 from codescalers/development_1.1_vacation_rules
zaelgohary Feb 1, 2024
a0e4c4c
Update: update the server volume
Mahmoud-Emad Feb 1, 2024
acb922c
Making date fields in calender editable
maayarosama Feb 6, 2024
b75b102
Removing console logs
maayarosama Feb 6, 2024
3d987fe
Add load more users btn
zaelgohary Feb 6, 2024
94063d0
Show alert only if the form is valid
maayarosama Feb 7, 2024
6e305b5
Adding count
maayarosama Feb 7, 2024
b169797
Fix: Display telegram, user role and phone number. (#352)
Mahmoud-Emad Feb 7, 2024
6660970
Redirect the user to login page if the token is not valid
Mahmoud-Emad Feb 7, 2024
163c1a8
Fixing update user form
maayarosama Feb 7, 2024
9f71d10
Development 1.1 fix vacation balance (#355)
Mahmoud-Emad Feb 8, 2024
f770a3f
Added condation.
Mahmoud-Emad Feb 8, 2024
1f6a8d3
Merge branch 'development_1.1' into development_1.1_load_users
Mahmoud-Emad Feb 8, 2024
521e40b
Fixing team lead v-select
maayarosama Feb 8, 2024
78910a8
Merge branch 'development_1.1' into development_1.1_calender_fileds
Mahmoud-Emad Feb 8, 2024
bb0b1a0
Added active class to the sidebar.
Mahmoud-Emad Feb 8, 2024
9c6c885
fixing invalid page error and adding load more button to team leads, …
maayarosama Feb 8, 2024
ec287d6
Enhancements: Implement an endpoint to get all supervisors users on a…
Mahmoud-Emad Feb 8, 2024
4b5c0e7
Merge pull request #358 from codescalers/development_1.1_office_suppe…
xmonader Feb 8, 2024
4b66560
Moved the supervisors endpoint under the user
Mahmoud-Emad Feb 8, 2024
62ef620
removing comment and updating endpoint
maayarosama Feb 8, 2024
65480eb
Merge pull request #359 from codescalers/development_1.1_office_suppe…
xmonader Feb 8, 2024
86a5204
Merge pull request #350 from codescalers/development_1.1_load_users
zaelgohary Feb 12, 2024
7f05120
Merge pull request #348 from codescalers/development_1.1_calender_fileds
zaelgohary Feb 12, 2024
0c68baf
Adding a relodMore button value
maayarosama Feb 25, 2024
2c08c4d
Merge pull request #363 from codescalers/development_1.1_load_users_fix
maayarosama Mar 3, 2024
8dfbb3d
Enhanced User Selection in Set User Balance Form (#365)
Mahmoud-Emad Mar 6, 2024
e1ec9aa
Development admin accessibility (#367)
maayarosama Mar 6, 2024
1705d1b
Development admin accessibility (#369)
Mahmoud-Emad Mar 6, 2024
07b42bd
1.1 Enhancements (#373)
Mahmoud-Emad Mar 12, 2024
745bfd4
Fix the filter issue.
Mahmoud-Emad Mar 24, 2024
f64bdd8
Update the id of each event.
Mahmoud-Emad Mar 24, 2024
5d84263
Adding Birthday Date to birthday card
maayarosama Mar 25, 2024
ffc2449
Update backend: Implemented wrappers to wrap the event request, worki…
Mahmoud-Emad Mar 25, 2024
3a8f2cc
Fix: Updated all home page component.
Mahmoud-Emad Mar 25, 2024
02e80b4
Merge pull request #381 from codescalers/development_1.1_birthday_date
maayarosama Mar 26, 2024
8889285
team view
maayarosama Mar 26, 2024
308fa0a
fixing create event submit button
maayarosama Mar 26, 2024
5bc1601
attempting fixing update vacation
maayarosama Mar 26, 2024
69c16d1
Fixing update vacation
maayarosama Mar 26, 2024
88993ea
Fixing team view table
maayarosama Mar 27, 2024
b7d3058
Merge pull request #388 from codescalers/development_1.1_create_event
maayarosama Mar 27, 2024
04dfaa0
Merge pull request #384 from codescalers/development_1.1_update_homep…
maayarosama Mar 27, 2024
4bf754b
adding leave excuse and fraction of a day request
maayarosama Mar 27, 2024
8dd7baf
Update: Enhanced the vacation request, Changed the start, end dates t…
Mahmoud-Emad Apr 1, 2024
249f4e5
Fix: Fixed an issue with loading vacation events in homepage, changed…
Mahmoud-Emad Apr 2, 2024
7e402e8
Fixing the birthdate bug (#391)
maayarosama Apr 2, 2024
c61451b
Merge pull request #394 from codescalers/development_1.1_request_with…
maayarosama Apr 3, 2024
ed04f96
Adding calculate times method
maayarosama Apr 3, 2024
0ac85a5
Merge branch 'development_1.1' into development_1.1_leave_excuse
maayarosama Apr 3, 2024
ea950e7
sending correct end and start date
maayarosama Apr 3, 2024
5fcffe4
Development 1.1 telegram rule (#390)
maayarosama Apr 3, 2024
5e35fd0
Fixing user image on update
maayarosama Apr 3, 2024
4618d69
Adding margins to image
maayarosama Apr 4, 2024
5db4002
Adding leave excuse value
maayarosama Apr 4, 2024
4eae05c
Merge pull request #385 from codescalers/development_1.1_team_view
maayarosama Apr 4, 2024
b0a1279
Changing AdminApplyVacationForUserSerializer
maayarosama Apr 4, 2024
d4b62b0
Adding days value condition
maayarosama Apr 14, 2024
60736a9
Merge pull request #396 from codescalers/development_update_user_image
maayarosama Apr 14, 2024
08ec3af
Merge pull request #392 from codescalers/development_1.1_leave_excuse
maayarosama Apr 14, 2024
b90445e
Handling admin delete
maayarosama Apr 17, 2024
439e493
Enhance the vacation record name.
Mahmoud-Emad Apr 17, 2024
b2c5a88
Fixing user's select in set user vacation
maayarosama Apr 17, 2024
d1c8473
Fixing delete and update bugs
maayarosama Apr 20, 2024
8db825c
fixing balance condition
maayarosama Apr 21, 2024
97a1588
Merge pull request #398 from codescalers/development_1.1_leave_excuse
maayarosama Apr 21, 2024
1a93c05
Removed unused zinit script.
Mahmoud-Emad Apr 22, 2024
ea71d02
Downgrade the poetry version.
Mahmoud-Emad Apr 22, 2024
7a42208
Update: Added the country name on the public holiday label.
Mahmoud-Emad Apr 23, 2024
d7715c5
Adding a condition to retrieve office user only if admin (#399)
maayarosama Apr 23, 2024
ba67808
Adding validation to update user (#400)
maayarosama Apr 23, 2024
f2563c0
Development 1.1 fix update user issue (#401)
Mahmoud-Emad Apr 23, 2024
de961d7
Fix the approve issue. (#402)
Mahmoud-Emad Apr 23, 2024
954d28f
Fixing removing public holidays
maayarosama Apr 24, 2024
0c29bca
Merge pull request #405 from codescalers/development_1.1_removing_hol…
maayarosama Apr 24, 2024
dadf6ef
fix remove holiday bug incase adding and removing 1 holiday with a 1 …
maayarosama Apr 24, 2024
2c8acbc
Merge pull request #406 from codescalers/development_1.1_fix_remove_h…
maayarosama Apr 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**/node_modules
23 changes: 23 additions & 0 deletions .github/ISSUE_TEMPLATE/BUG_REPORT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: Bug report
about: Create a report to help us improve
title: ""
labels: ""
assignees: ""
---

### Search first

Search for similar issues first, if not complete the following template

### Description

A clear description of the bug

### Steps to reproduce

List of steps to reproduce the problem if it's a bug

### Logs/Alerts

Logs/Alerts if available
23 changes: 23 additions & 0 deletions .github/ISSUE_TEMPLATE/FEATURE_REQUEST.MD
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: Feature request
about: Suggest an idea for this project
title: ""
labels: ""
assignees: ""
---

### Search first

Search for similar issues first, if you got no results, complete the following template

### Description

A clear description of the new feature

### Implementation

If you've a specific approach to discuss, describe it here clearly.

### More

Write more details here if needed about the feature
19 changes: 19 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
### Description

Describe the changes introduced by this PR and what does it affect

### Changes

List of changes this PR includes

### Related Issues

List of related issues

### Checklist

- [ ] Tests included
- [ ] Build pass
- [ ] Documentation
- [ ] Code format and docstrings
- [ ] Screenshots/Video attached (needed for UI changes)
49 changes: 22 additions & 27 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,35 @@
# Test if working.
name: Build and push a docker image and a flist.
name: Build

on:
push:
branches: [main, development]
branches:
[development_1.1, development_1.1_*]

jobs:
build:
run-linters:
name: Run linters
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push server image
uses: docker/build-push-action@v3
with:
push: true
tags: ${{ secrets.DOCKER_USERNAME }}/cshr_server:latest
file: "./Dockerfile"
strategy:
matrix:
node-version: [18.x]

steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Build and push client image
uses: docker/build-push-action@v3
- name: Setup Node.js
uses: actions/setup-node@v4
with:
push: true
tags: ${{ secrets.DOCKER_USERNAME }}/cshr_client:latest
file: "./client/Dockerfile"
context: ./client
node-version: ${{ matrix.node-version }}

- name: build and push server flist
- name: Install Dependencies
run: |
curl -f -X POST -H "Authorization: bearer ${{ secrets.FLIST_TOKEN }}" https://hub.grid.tf/api/flist/me/docker -F 'image=${{ secrets.DOCKER_USERNAME }}/cshr_server:latest'
cd client
npm install -g pnpm
pnpm install

- name: build and push client flist
- name: Build
run: |
curl -f -X POST -H "Authorization: bearer ${{ secrets.FLIST_TOKEN }}" https://hub.grid.tf/api/flist/me/docker -F 'image=${{ secrets.DOCKER_USERNAME }}/cshr_client:latest'
cd client
pnpm build
34 changes: 21 additions & 13 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,36 @@
name: Lint
name: Lint and Build

on:
push:
branches:
- '**'
branches:
[development_1.1, development_1.1_*]

jobs:
run-linters:
name: Run linters
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]

steps:
- name: Check out Git repository
- name: Checkout Repository
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v1
- name: Setup Node.js
uses: actions/setup-node@v4
with:
python-version: 3.8
node-version: ${{ matrix.node-version }}

- name: Install Python dependencies
run: pip install flake8
- name: Install Dependencies
run: |
cd client
npm install -g pnpm
pnpm install

- name: Run linters
uses: wearerequired/lint-action@v2
with:
flake8: true
- name: Lint and Format
run: |
cd client
pnpm lint
pnpm format
3 changes: 1 addition & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ name: Test

on:
push:
branches:
- '**'
branches: [main, development]
jobs:
test:
runs-on: ubuntu-latest
Expand Down
66 changes: 51 additions & 15 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,32 +1,68 @@

CMD:=poetry run
client:=cd client
server:=cd server
terraform:=cd terraform

help:
@echo "\n- Docker: To build and run a specific service, you can do that by executing 'make docker-up service=<service_name>'."
@echo "\n- To run a the backend project, you can do that by executing 'make runserver'."
@echo "\n- To run a the backend client, you can do that by executing 'make runclient'."

docker-up:
docker-compose up --build -d
ifeq ($(service), frontend)
docker compose -f ./docker/docker-compose.yml --env-file=./config/.env up frontend --build -d
else ifeq ($(service), backend)
docker compose -f ./docker/docker-compose.yml --env-file=./config/.env up backend --build -d
else ifeq ($(service), postgres)
docker compose -f ./docker/docker-compose.yml --env-file=./config/.env up postgres --build -d
else
docker compose -f ./docker/docker-compose.yml --env-file=./config/.env up --build -d
endif

docker-down:
ifeq ($(service), frontend)
docker compose -f ./docker/docker-compose.yml --env-file=./config/.env down frontend
else ifeq ($(service), backend)
docker compose -f ./docker/docker-compose.yml --env-file=./config/.env down backend
else ifeq ($(service), postgres)
docker compose -f ./docker/docker-compose.yml --env-file=./config/.env down postgres
else
docker compose -f ./docker/docker-compose.yml --env-file=./config/.env down
endif

docker-logs:
ifeq ($(service), frontend)
docker compose -f ./docker/docker-compose.yml --env-file=./config/.env logs -f frontend
else ifeq ($(service), backend)
docker compose -f ./docker/docker-compose.yml --env-file=./config/.env logs -f backend
else ifeq ($(service), postgres)
docker compose -f ./docker/docker-compose.yml --env-file=./config/.env logs -f postgres
else
docker compose -f ./docker/docker-compose.yml --env-file=./config/.env logs -f
endif

install:
curl -sSL https://install.python-poetry.org | python3 -
poetry install
poetry check
cd client && npm i && cd ..
$(server) && poetry install
$(server) && poetry check
$(client) && pnpm i
runserver:
$(CMD) python3 manage.py runserver
$(server) && $(CMD) python3 manage.py runserver
runclient:
$(client) && npm i && npm run dev
$(client) && pnpm i && pnpm dev
test:
$(CMD) python3 manage.py test
$(server) && $(CMD) python3 manage.py test
lint:
$(CMD) black server/ --exclude=__init__.py
$(CMD) flake8 server/ --exclude=__init__.py
$(client) && npm run lint
$(server) && $(CMD) black . --exclude=__init__.py
$(server) && $(CMD) flake8 . --exclude=__init__.py
$(client) && pnpm lint
migrate:
$(CMD) python3 manage.py makemigrations
$(CMD) python3 manage.py migrate
$(server) && $(CMD) python3 manage.py makemigrations
$(server) && $(CMD) python3 manage.py migrate
user:
$(CMD) python3 manage.py createsuperuser
$(server) && $(CMD) python3 manage.py createsuperuser
data:
$(CMD) python3 manage.py create locations users
$(server) && $(CMD) python3 manage.py create locations users
deploy:
$(terraform) && terraform init && terraform apply -auto-approve
destroy:
Expand Down
64 changes: 64 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,33 @@ When in development mode, use the following Makefile commands:
- **Server:** Implemented using Django.
- **Notification Service:** Requires a running Redis server for notification functionality.

## Installation Process

To facilitate the installation process, this project utilizes the `poetry` package manager for `Python` and `pnpm` for `Node.js`. Follow the steps outlined below for a seamless installation:

1. Install Poetry:
Execute the following command to install Poetry for Python:

```sh
curl -sSL https://install.python-poetry.org | python3 -
```

2. Install Pnpm:
To install `pnpm` globally for Node.js, run the following command:

```sh
npm i -g pnpm
```

After installing these packages you can now install the required packages by executing:
3. Install project Packages

```sh
make install
```

By following these steps, you ensure the proper setup of the required package managers for this project.

## Project Configuration

After executing
Expand All @@ -62,3 +89,40 @@ make install && make migrate
```

Please refer to [.env.template](./config/.env.template) for all required values. Ensure all values are populated in the `.env` file within the [config](./config/) directory.

## Runing the project using Docker and Docker Compose

To run the full project with all instances, follow these steps:

1. Set Environment Variables

Create a `.env` file beside the [config](./config/) directory and set the necessary environment variables. Refer to the previous section for sample environment variable configurations.

2. Execute Docker Compose

Run the following command to start the Docker containers and please make sure that you are on the root of the project:

```sh
# --> To run all services

└─(✹)──> docker compose -f ./docker/docker-compose.yml --env-file=./config/.env up --build -d

# --> To stop all services
└─(✹)──> docker compose -f ./docker/docker-compose.yml --env-file=./config/.env down

```

Also, you can excute the command using Make:

- make docker-up **To run all services**
- make docker-down **To stop all services**

After executing the command, you should see a confirmation similar to the following:

3. Verify Successful Deployment

This indicates that the Docker containers are being created and the services are starting up.

- ![docker-compose-deployments](docs/images/docker-compose-deployments.png)

You can also take a look at [configuration.md](docs/configuration.md)
10 changes: 10 additions & 0 deletions client/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Client Related
VITE_TITLE="Codescalers HR management system"
VITE_FAVICON="https://placehold.co/32/steelblue/white?text=CS"
VITE_LOGO="https://placehold.co/128/steelblue/white?text=CS"

# Server Related
SERVER_DOMAIN_NAME_API="http://127.0.0.1:8000/api"

# Development Related
VITE_DEBUG=false
15 changes: 15 additions & 0 deletions client/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/* eslint-env node */
require('@rushstack/eslint-patch/modern-module-resolution')

module.exports = {
root: true,
'extends': [
'plugin:vue/vue3-essential',
'eslint:recommended',
'@vue/eslint-config-typescript',
'@vue/eslint-config-prettier/skip-formatting'
],
parserOptions: {
ecmaVersion: 'latest'
}
}
Loading
Loading