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

Bringing changes downstream #45

Merged
merged 130 commits into from
Jun 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
130 commits
Select commit Hold shift + click to select a range
c5072b9
feat: creation of backend related actions for linting, testing and bu…
waveyboym May 31, 2024
534329e
Update pull_request_template.md
waveyboym May 31, 2024
24be97d
chore: Refactor main.go and handlers and router.go
waveyboym May 31, 2024
8e61d0f
Merge pull request #27 from COS301-SE-2024/feat/backend/auth0_final_i…
waveyboym May 31, 2024
1ded0c9
chore: Update API response structure to adhere to coding standards
waveyboym May 31, 2024
5732e24
working expo
KamogeloMoeketse May 31, 2024
dbeb7bc
login and register
KamogeloMoeketse Jun 1, 2024
a915576
forgot password and otp pages
KamogeloMoeketse Jun 1, 2024
ca615ed
Package changes
Tinashe-Austin Jun 1, 2024
adec5db
Package change
Tinashe-Austin Jun 1, 2024
c2958d3
Adding Routes
Tinashe-Austin Jun 1, 2024
45c259b
Adding Routes
Tinashe-Austin Jun 1, 2024
1e371f2
Edits
Tinashe-Austin Jun 1, 2024
daa7392
Edits ,added props
Tinashe-Austin Jun 1, 2024
f0c46ce
Edits
Tinashe-Austin Jun 1, 2024
2f6cbbd
Edits in SideNav,Cleaner looks more like figma
Tinashe-Austin Jun 1, 2024
2b8cb3b
Edits in Tab, Colors and sizing
Tinashe-Austin Jun 1, 2024
5e180c1
Edits in Components and other
Tinashe-Austin Jun 1, 2024
a2139c1
Login change, More stable layout
Tinashe-Austin Jun 1, 2024
b0c2747
OTP Edits
Tinashe-Austin Jun 1, 2024
97fada7
Feat: added bash and bat scripts to simplify running the backend
waveyboym Jun 1, 2024
dfed8df
Merge pull request #28 from COS301-SE-2024/feat/backend/refactor-back…
waveyboym Jun 1, 2024
78df6a7
Merge branch 'develop' into feat/backend/actions
waveyboym Jun 1, 2024
6c32d25
Fix: addressing all linting, testing and building errors
waveyboym Jun 1, 2024
7cb6c36
Merge pull request #22 from COS301-SE-2024/feat/backend/actions
waveyboym Jun 1, 2024
543d1ce
Merge pull request #23 from COS301-SE-2024/pull_request_template-patch-1
waveyboym Jun 1, 2024
05b4a71
Update bug_report.md
waveyboym Jun 1, 2024
a04744d
Update lint-test-build-golang.yml
waveyboym Jun 1, 2024
806ad42
Merge pull request #29 from COS301-SE-2024/bug_report.md-patch
waveyboym Jun 1, 2024
d94dd01
Fix: adding navbar fixed rendering
waveyboym Jun 1, 2024
2dbef66
navbar added
KamogeloMoeketse Jun 1, 2024
4192d1b
Fix: fixed all styling issues on login page
waveyboym Jun 1, 2024
ca30d26
Refactor App component and import statements
Tinashe-Austin Jun 1, 2024
8396960
Merge branch 'feat/frontend-web' of https://github.com/COS301-SE-2024…
Tinashe-Austin Jun 1, 2024
559376c
Chore: mainly refactoring some frontend code
waveyboym Jun 1, 2024
b55e716
Merge branch 'feat/frontend-web' of https://github.com/COS301-SE-2024…
waveyboym Jun 1, 2024
6ec35ab
Chore: addressing compilation errors
waveyboym Jun 1, 2024
2d1a58c
Stashed_bun
Tinashe-Austin Jun 1, 2024
ccc7196
Fix: addressed styling on otp page
waveyboym Jun 1, 2024
b4e229b
Merge branch 'feat/frontend-web' of https://github.com/COS301-SE-2024…
waveyboym Jun 1, 2024
684b56e
profile edit
KamogeloMoeketse Jun 1, 2024
507e97c
Feat: refactored registration logic and ensured registration is capab…
waveyboym Jun 1, 2024
cdb5e44
Feat: Login now works fully
waveyboym Jun 1, 2024
21f5822
feat: Add error handling to OTPExists function and added additional v…
waveyboym Jun 2, 2024
d703005
chore: Update user verification logic to set next verification date t…
waveyboym Jun 2, 2024
eae2db6
refactor: Update user and otp structures in request.go for API reques…
waveyboym Jun 2, 2024
c4f06f6
refactor: Update user and otp structures in request.go for API reques…
waveyboym Jun 2, 2024
dcaa3dc
Refactor file paths and imports for better organization
waveyboym Jun 2, 2024
1ccd489
navbar and settings darkmode
KamogeloMoeketse Jun 2, 2024
046de55
Feat: Added side nav bar for web
waveyboym Jun 2, 2024
b6d488a
Darkmode for remaining pages
KamogeloMoeketse Jun 2, 2024
58e357f
Merge pull request #31 from COS301-SE-2024/bug/frontend
u21631532 Jun 2, 2024
76c7f89
bookings darkmode fix
KamogeloMoeketse Jun 2, 2024
707f709
Delete .expo directory
waveyboym Jun 2, 2024
3e97e5f
Delete package-lock.json
waveyboym Jun 2, 2024
d9e55df
Delete tailwind.config.js
waveyboym Jun 2, 2024
aeb7a10
Delete package.json
waveyboym Jun 2, 2024
c19ae9c
Merge pull request #32 from COS301-SE-2024/removing-error-files
waveyboym Jun 2, 2024
ce6441e
Merge pull request #30 from COS301-SE-2024/feat/backend/auth0-mongodb…
Rethakgetse-Manaka Jun 2, 2024
078175b
Testing setUp
Tinashe-Austin Jun 2, 2024
e198c28
Refactor tsconfig.json to include additional types and files
Tinashe-Austin Jun 2, 2024
7e827c5
chore: Fix typo in import statement for InputBox component
Tinashe-Austin Jun 2, 2024
2bd0ed0
test: Add unit tests for GradientButton component
Tinashe-Austin Jun 2, 2024
6da2155
chore: Add unit tests for InputBox component
Tinashe-Austin Jun 2, 2024
777d04b
chore: Add unit tests for OtpComponent and fix validation error message
Tinashe-Austin Jun 2, 2024
a2ddb0d
Merge branch 'feat/frontend-web' of https://github.com/COS301-SE-2024…
Tinashe-Austin Jun 2, 2024
403d04c
added topnavbar
waveyboym Jun 2, 2024
f32aee8
Merge branch 'feat/frontend-web' of https://github.com/COS301-SE-2024…
waveyboym Jun 2, 2024
f1d49d3
chore: Add linting, testing, and building workflow for the web frontend
waveyboym Jun 2, 2024
bece4ab
chore: Add unit tests for GraphContainer component
Tinashe-Austin Jun 2, 2024
3640535
chore: Add width and height props to GraphContainer component
Tinashe-Austin Jun 2, 2024
3d63267
chore: Add unit tests for InputBox component
Tinashe-Austin Jun 2, 2024
59e4a56
test: Add unit test for ProfileComponent
Tinashe-Austin Jun 2, 2024
95b3ca5
chore: Add unit tests for SearchBar component
Tinashe-Austin Jun 2, 2024
aa48b81
Merge branch 'feat/frontend-web' of https://github.com/COS301-SE-2024…
Tinashe-Austin Jun 2, 2024
a2b502d
feat: Add lazy loading for images and update Babel configuration
u21631532 Jun 2, 2024
a523ddc
Bookings in test file
u21631532 Jun 2, 2024
4b8f619
Dashboard component in test file
u21631532 Jun 2, 2024
98ca425
CreatePassword test file
u21631532 Jun 2, 2024
a3d660d
ForgotPassword in test file
u21631532 Jun 2, 2024
cbf0643
Onboarding components in test files
u21631532 Jun 2, 2024
24ed596
OTPVerification component in test file
u21631532 Jun 2, 2024
b7c2efd
SignIn component in SignIn.test.js
u21631532 Jun 2, 2024
3fdfa55
SignUp component in SignUp.test.js
u21631532 Jun 2, 2024
a4e2893
SplashScreen test file
u21631532 Jun 2, 2024
53cc9ed
Welcome tests unit testing
u21631532 Jun 2, 2024
eba5d6e
Profile component in Profile.test.js
u21631532 Jun 2, 2024
e412a96
Settings component in Settings.test.js
u21631532 Jun 2, 2024
0e31c7d
chore: Remove commented out code in App.test.tsx
Tinashe-Austin Jun 2, 2024
bc559c8
test: Add unit tests for SideNavBarButton component
Tinashe-Austin Jun 2, 2024
72808c4
test: Add unit tests for SideNav component
Tinashe-Austin Jun 2, 2024
f61b295
test: Add unit tests for TabComponent
Tinashe-Austin Jun 2, 2024
ff82f15
test: Add unit tests for TopNav component
Tinashe-Austin Jun 2, 2024
8afe84c
test: Add unit tests for Layout component
Tinashe-Austin Jun 2, 2024
bf2948f
test: Add unit tests for Dashboard component
Tinashe-Austin Jun 2, 2024
252c571
chore: Add unit tests for LoginForm component
Tinashe-Austin Jun 2, 2024
7d6e159
chore: Add unit tests for OtpPage component
Tinashe-Austin Jun 2, 2024
6b9a9c3
test: Add unit tests for Settings page
Tinashe-Austin Jun 2, 2024
1548199
Update README.md
Tinashe-Austin Jun 2, 2024
28fe734
Update README.md
Tinashe-Austin Jun 2, 2024
71460cb
Images_readme
Tinashe-Austin Jun 2, 2024
8d5b417
chore: Update Babel configuration for frontend/occupi-mobile3
u21631532 Jun 3, 2024
1210937
updated testing pages, 6/13 unit tests have passed
u21631532 Jun 3, 2024
bab73a9
Update CONTRIBUTING.md
waveyboym Jun 3, 2024
6f5a861
Merge pull request #33 from COS301-SE-2024/contributing-file-update
waveyboym Jun 3, 2024
cf40c1f
Feat: Adding some ux related stuff to the login and otp page
waveyboym Jun 3, 2024
41db129
Merge pull request #34 from COS301-SE-2024/feat/frontend-web
waveyboym Jun 3, 2024
4fc3540
Update lint-test-build-golang.yml
waveyboym Jun 3, 2024
0775967
Merge pull request #35 from COS301-SE-2024/add-codecove-for-golang
waveyboym Jun 3, 2024
8093dc1
Chore: commented out test that uses env variables until we can sort o…
waveyboym Jun 3, 2024
d2b08c0
chore: Add tests directory to the GitHub Actions workflow file
waveyboym Jun 3, 2024
c602757
Merge pull request #36 from COS301-SE-2024/chore/backend/comment-out-…
waveyboym Jun 3, 2024
9632610
chore: Update test commands to include code coverage for codecov
waveyboym Jun 3, 2024
4f5687d
chore: Update ErrorResponseWithMeta function call in utils_test.go
waveyboym Jun 3, 2024
c832cab
chore: Remove unused function and add placeholder function to prevent…
waveyboym Jun 3, 2024
1e0268a
Merge pull request #37 from COS301-SE-2024/feat/backend/adding-golang…
waveyboym Jun 3, 2024
4b04836
updated package,json
u21631532 Jun 3, 2024
68cd335
update
u21631532 Jun 3, 2024
904c339
chore: Add test-ci script to package.json
waveyboym Jun 3, 2024
646b6b5
chore: Update path in test-mobile.yml for frontend/occupi-mobile3
waveyboym Jun 3, 2024
df62ca6
chore: Update working directory path in test-mobile.yml
waveyboym Jun 3, 2024
9cfc727
Merge pull request #39 from COS301-SE-2024/bug/frontend
waveyboym Jun 3, 2024
cd854f0
chore: Update workflow name to include linting and testing for golang
waveyboym Jun 3, 2024
a23dc9a
Update README.md
Tinashe-Austin Jun 3, 2024
a9af067
img fro readme
Tinashe-Austin Jun 3, 2024
4d116e3
img
Tinashe-Austin Jun 3, 2024
c338ca7
img
Tinashe-Austin Jun 3, 2024
15afd5d
Update README.md
Tinashe-Austin Jun 3, 2024
3ce348f
Merge pull request #40 from COS301-SE-2024/update/ReadMe
Tinashe-Austin Jun 3, 2024
358fd0f
Merge pull request #41 from COS301-SE-2024/chore/update-readme-and-docs
waveyboym Jun 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
3 changes: 2 additions & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ If applicable, add logs that you may have gathered as well.
- Node version [e.g. 18, 20]
- npm version [e.g. 10]
- App version [e.g. 0.2.0(can usually be found in the <a href="">package.json</a> file, first line)]
NB: The above is optional if it's applicable and as such may be removed if it's not useful

**Additional context**
Add any other context about the problem here.
Add any other context about the problem here.
79 changes: 79 additions & 0 deletions .github/workflows/lint-test-build-golang.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
name: Lint, Test and Build golang

on:
pull_request:
branches: ["develop"]
paths: [
"occupi-backend/cmd/**",
"occupi-backend/configs/**",
"occupi-backend/pkg/**",
"occupi-backend/.golangci.yml",
"occupi-backend/tests/**",
]

workflow_dispatch:

defaults:
run:
working-directory: occupi-backend

jobs:
lint:
name: Lint
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.21' # Specify the Go version you are using

- name: Install golangci-lint
run: |
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest

- name: Run golangci-lint
run: |
golangci-lint run

test:
name: Test
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.21' # Specify the Go version you are using

- name: Run tests
run: |
go test ./tests/... -race -coverprofile=coverage.out -covermode=atomic

- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}

build:
name: Build
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.21' # Specify the Go version you are using

- name: Build the code
run: |
go build -v cmd/occupi-backend/main.go
63 changes: 63 additions & 0 deletions .github/workflows/lint-test-build-web.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Lint, Test, Build Web

on:
pull_request:
branches: ["develop"]
paths: [
"frontend/occupi-web/**",
]

workflow_dispatch:

defaults:
run:
working-directory: frontend/occupi-web

jobs:
# Lint job
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest # or "latest", "canary", <sha>

- name: Lint with ESLint
run: bun run lint

# Test job
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest # or "latest", "canary", <sha>

- name: Test with Jest
run: bun run test

# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest # or "latest", "canary", <sha>

- name: Install dependencies with Bun
run: bun install

- name: Build with Next.js
run: bun run build
37 changes: 0 additions & 37 deletions .github/workflows/test-build-golang.yml

This file was deleted.

34 changes: 34 additions & 0 deletions .github/workflows/test-mobile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Test Mobile

on:
pull_request:
branches:
- develop
paths: [
"frontend/occupi-mobile3/**"
]

workflow_dispatch:

defaults:
run:
working-directory: frontend/occupi-mobile3

jobs:
test:
runs-on: ubuntu-latest

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

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 18

- name: Install Dependencies
run: npm install --legacy-peer-deps

- name: Run Tests
run: npm run test-ci
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
27 changes: 9 additions & 18 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,6 @@ Please note that this project is released with a <a href="./CODE_OF_CONDUCT.md">
- [Before Submitting an Enhancement](#before-submitting-an-enhancement)
- [How Do I Submit a Good Enhancement Suggestion?](#how-do-i-submit-a-good-enhancement-suggestion)
- [Your First Code Contribution](#your-first-code-contribution)
- [Frontend](#frontend)
- [Mobile](#mobile)
- [Web and Desktop](#web-and-desktop)
- [Landing page](#landing-page)
- [Backend](#backend)
- [AI model](#ai-model)
- [Improving The Documentation](#improving-the-documentation)
- [Attribution](#attribution)

Expand Down Expand Up @@ -99,6 +93,9 @@ This section guides you through submitting an enhancement suggestion for CONTRIB
- Read the [documentation]() carefully and find out if the functionality is already covered, maybe by an individual configuration.
- Perform a [search](/issues) to see if the enhancement has already been suggested. If it has, add a comment to the existing issue instead of opening a new one.
- Find out whether your idea fits with the scope and aims of the project. It's up to you to make a strong case to convince the project's developers of the merits of this feature. Keep in mind that we want features that will be useful to the majority of our users and not just a small subset. If you're just targeting a minority of users, consider writing an add-on/plugin library.
- Understand that we use trunk based development with short lived branches that get merged into develop. Here is a nice visual to help you understand
![branching strategy](https://github.com/COS301-SE-2024/occupi/assets/93211335/10e3757f-0505-480c-bd4b-ca9366676b58)



#### How Do I Submit a Good Enhancement Suggestion?
Expand All @@ -115,20 +112,14 @@ Enhancement suggestions are tracked as [GitHub issues](/issues).

Choose a section you want to contribute to and navigate to the appropriate readme's

#### Frontend

##### Mobile

##### Web and Desktop

##### Landing page

#### Backend

#### AI model
[Mobile](https://github.com/COS301-SE-2024/occupi/tree/develop/frontend/occupi-mobile3)
[Web and Desktop](https://github.com/COS301-SE-2024/occupi/tree/develop/frontend/occupi-web)
[Landing page](https://github.com/COS301-SE-2024/occupi/tree/develop/frontend/occupi)
[Backend](https://github.com/COS301-SE-2024/occupi/tree/develop/occupi-backend)
[AI model]()


### Improving The Documentation

## Attribution
This guide is based on the **contributing.md**. [Make your own](https://contributing.md/)!
This guide is based on the **contributing.md**. [Make your own](https://contributing.md/)!
Binary file added Images/IMG_9675_1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/IMG_9675_12.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/Kamo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/img.prof.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading