4169 Commits

Author SHA1 Message Date
João Vitória Silva
675653a8ef Dependencies + actions fix
[backend] bump dependencies
[GitHub Actions] fixed issue related to build path
2024-07-24 15:26:32 +01:00
João Vitória Silva
8b3d279cd0 Update docker-image_backend_manualORnewrelease.yml 2024-07-24 15:18:28 +01:00
João Vitória Silva
76153fcefb Fixed docker-compose example file 2024-07-24 15:06:58 +01:00
João Vitória Silva
c53ef002a7 Updated README, screenshot and github actions 2024-07-24 14:29:35 +01:00
João Vitória Silva
12905d9b47 Added X-Client-Type to handle auth based on client type
[backend] added X-Client-Type to handle auth based on client type
[backend] access token and refresh token return adapted to client type
[backend] added native FastApi cookie and header checkers for dependency handling
[frontend] added X-Client-Type equals web to frontend requests
2024-07-24 11:15:29 +01:00
João Vitória Silva
e187de8e74 Change theme and language functions
[frontend] fixed user profile not showing the profile data fields correctly
[frontend] added modal to edit activity details (name, description and visibility
[frontend] added in the navbar on large screens ability to change theme and language
[frontend] added in settings in the general tab ability for the user to change theme and language
2024-07-19 22:01:31 +01:00
João Vitória Silva
ee7685780f Fixed theme dropdown position
[frontend] Fixed theme dropdown position
2024-07-18 17:59:11 +01:00
João Vitória Silva
f2142d0bec Theme switcher added
[frontend] it is now possible to switch theme (dark, light or auto) in navbar or settings
[frontend] added pinia store for theme change logic
[frontend] added general settings section in settings view
2024-07-18 17:54:28 +01:00
João Vitória Silva
a261dfa062 Fixed issue on followers and following count
[frontend] fixed issue on followers and following count not displaying correctly
2024-07-18 10:40:38 +01:00
João Vitória Silva
412a8b6de2 Fixed issue on gears and add first user activity
[backend] fixed issue on getting gear by id
[frontend] fixed issue when user adds his first activity would get an error of array is null
2024-07-18 10:32:33 +01:00
João Vitória Silva
75c3b19d99 Finished backend structure migration
[backend] finished backend structure migration
[backend] logic to edit activity added
[backend] added 404 error if user or activity not found on edit logic
2024-07-18 10:01:58 +01:00
João Vitória Silva
bb10e637a0 Fixed settings page and user/profile logic
[backend] added profile router
[backend] moved profile route from users to profile
[backend] fixed edit user and edit profile routes
[backend] fixed edit user password and edit profile password routes
[backend] added utils file for users for code re usability
[frontend] removed unnecessary components and stores
[frontend] added profile service and moved profile functions from users to new profile service
[frontend] fixed remaining of settings view
2024-07-17 18:39:20 +01:00
João Vitória Silva
488cfae55e Merge pull request #17 from schwier-xyz/fix-documentation-typos
Fixed typos in README
2024-07-17 10:02:58 +01:00
Leonard Schwier
b03de3873e Fixed typos in README 2024-07-16 17:26:08 +02:00
João Vitória Silva
b7c68d8243 Fixed week distances and activity view info
[backend] fixed week distances not showing information correctly from monday to sunday
[backend] fixed week activities showing activities from monday to monday instead monday to sunday
[frontend] minor fix
2024-07-16 16:10:57 +01:00
João Vitória Silva
3dbe3ec71d Fixed activity view for non activity users
[backend] fixed get gear by id not allowing for other users to query gear not theirs. Needed for activity view
[frontend] fixed activity view allowing other users to view buttons to delete and edit gear from others activities
[frontend] added admin badge to user list on settings if user has admin privileges
[frontend] removed unwanted console.log from login.view
2024-07-16 15:39:06 +01:00
João Vitória Silva
a67ad5f703 Followers change logic uses token info
[backend] followers route logic now uses token user info and uses "profile" scope
[frontend] fixed followers logic in profile based on backend changes
2024-07-16 14:55:41 +01:00
João Vitória Silva
e9f658c84b User page follower logic fixed
[frontend] User page follower logic fixed
[backend] creating a follow now returns the new object
2024-07-16 11:01:03 +01:00
João Vitória Silva
a15235d5fc Scopes implementation
[backend] Continued scopes implementation
[backend] fixed followers
[backend] fixed users returning field photo_path_aux when it is no longer available
[frontend] fixed follow user in user profile
[frontend] fixed search not appearing on footer after login
[frotend] removed infinite scroll from users and now it uses pagination
2024-07-14 15:33:44 +01:00
João Vitória Silva
bb15107103 Scopes implementation
[backend] Continued scopes implementation
[backend] datetime.utcnow().date() to datetime.now(timezone.utc)
[backend] distances now always returns values instead of null when 0 activities existed
[frontend] UserDistanceStatsComponent now uses props instead of pinia store
[frontend] continued migration to new toast logic
[frotend] Fixed GearView, HomeView and ActivityView
2024-07-12 15:55:15 +01:00
João Vitória Silva
00184e7b28 Added poetry and simplified dependencies
[backend] bump python from 3.11 to 3.12
[backend] Added poetry for dependency management
[backend] adjusted docker image to use poetry
[backend] changed folder structure
[backend] continued implementation of scopes logic (frontend home, login and gears api calls handled)
[backend] simplified verify token dependencies
[frontend] simplifies toast management
[frontend] Added pagination component
[frontend] updated auth pinia store to better handle authentication
[frontend] removed infinite scroll from gears view and added pagination
2024-07-11 17:31:57 +01:00
João Vitória Silva
1518f797ce Frontend token refresh handling
[frontend] Token refresh handling implemented
2024-06-08 15:12:42 +01:00
João Vitória Silva
3d0507528d Started change of login secrets handling
[backend] Created new alembic migration to remove unused photo_path_aux column from users table. This new migration also changes default admin password to new hashing method
[backend] Moved password hashing on login to backend
[backend] Added env variable for expire token in minutes
[backend] Rename file schema_session/schema_access_token to dependencies_security
[backend] Started changing session dependencies functions to handle token in the request cookie
[frontend] Started updating api calls logic
[frontend] Moved login store logic to pinea store instead of local storage
[README] Updated README with new env variable for backend
2024-06-07 22:52:48 +01:00
João Vitória Silva
7a90182e72 Initial OAuth2 scopes implementation
[backend] scopes validation process on route call
[backend] initial OAuth2 scopes implementation on token route
[backend] bump version to 0.2.1
[frontend] bump version to 0.2.1
2024-06-05 18:18:16 +01:00
João Vitória Silva
009174bc3c authlib/joserfc and Jaeger is disable by default
[backend] Moved from python-jose to authlib joserfc
[backend] Removed python-jose[cryptography] and passlib[bcrypt] python requirements
[backend] Removed some unwanted print statements left in the code
[README] Updated README file based on backend jose changes. Fixed some typos and added some more information to env variables
2024-06-04 16:56:02 +01:00
João Vitória Silva
ddaee2c073 Update screenshot_01.png v0.2.0 2024-05-28 23:25:42 +01:00
João Vitória Silva
28ae4d61dd Merge pull request #14 from joaovitoriasilva/frontend_revamp_vue
Frontend Vue revamp
2024-05-28 23:20:11 +01:00
João Vitória Silva
aeef36b1f4 Fixed navbar not closing
[README] Updated readme
[frontend] Fixed navbar not closing automatically on mobile when link is clicked
[docker] Updated docker-composer.yml example file
2024-05-28 22:54:19 +01:00
João Vitória Silva
0a6b0107b1 Fixed API_URL variable
Fixed hard coded API_URL variable
2024-05-28 22:03:30 +01:00
João Vitória Silva
af38545e48 Removed unused access_tokens table from DB
[backend] Updated models to remove unused access_tokens table
[backend] Removed unused access_tokens table from DB using alembic
[backend] Removed unused methods and DB crud logic for access_tokens table
[backend] Removed scheduler to remove expired access tokens from the DB
2024-05-24 14:50:30 +01:00
João Vitória Silva
a749cefede Frontend revamp with Vue
[README] README file updated
[backend] Updated add user photo route to return photo path
[frontend] Added ability to delete user photo and change it
2024-05-23 15:29:37 +01:00
João Vitória Silva
245cec7945 Frontend revamp with Vue
[frontend] Created UserAvatarComponent to make better reusability of this component and adapted views and components to it
[frontend] It is now possible to upload a photo of the user when creating the user
[frontend] Deleting the user deletes the photo in the filesystem
[backend] Added logic to receive uploaded user photo and store it in the filesystem under user_images directory
[backend] Added logic to /user_images be routed when requested
[docker] Updated docker files and example docker compose file
2024-05-23 14:05:19 +01:00
João Vitória Silva
2a6f92a5e9 Frontend revamp with Vue
[README] README file updated
[backend] Added CORS (Cross-Origin Resource Sharing) origins to enable JS calls from frontend
[docker] Updated docker files
2024-05-23 10:38:26 +01:00
João Vitória Silva
cef2064eaa Backend requirements bump
[README] README file updated
[frontend] Updated dockerfile for frontend image
[backend] Updated dockerfile for backend image
[backend] Removed .env file. Env variables loaded on docker build process
[frontend] Fixed .env file for frontend docker image
[frontend] Added nginx-custom.conf to fix reloads
[frontend] Added frontend_env.sh to fix env variables loading on docker image start
[docker] Updated docker compose example file
2024-05-23 09:58:24 +01:00
João Vitória Silva
07268af5ce Backend requirements bump
[backend] Bump fastapi to 0.111.0
[backend] Bump pydantic to 1.10.15
[backend] Bump uvicorn to 0.29.0
[backend] Bump python-dotenv to 1.0.1
[backend] Bump sqlalchemy to 2.0.30
[backend] Bump mysqlclient to 2.2.4
[backend] Bump requests to 2.32.2
[backend] Bump stravalib to 1.7
[backend] Bump python-multipart to 0.0.9
[README] README file updated
[frontend] Updated dockerfile for frontend image
[frontend] Added .env file for frontend docker image
[docker] Updated docker compose example file
2024-05-22 23:03:55 +01:00
João Vitória Silva
dd46bb7790 Frontend revamp with Vue
[frontend] Removed old PHP structure
[frontend] Renamed frontend_vue folder to frontend
[frontend] Removed unused imports
[backend_otel] Removed
2024-05-22 16:06:14 +01:00
João Vitória Silva
f727152039 Frontend revamp with Vue
[frontend] Fixed loading toast color and placement
[frontend] Added missing functionalities of creating follow request, cancel follow request and unfollow on targeted user page
[frontend] Changed from banner to toast alerts on most places (login page is exception)
[frontend] Added missing protections
2024-05-22 15:48:24 +01:00
João Vitória Silva
62ec9f49b5 Frontend revamp with Vue
[frontend] Fixed navbar navigation on login/logout
[frontend] Added some missing protections to not generate console errors on logout
2024-05-22 14:40:46 +01:00
João Vitória Silva
eadac32b73 Frontend revamp with Vue
[frontend] Fixed some issues on LoadingAlertComponent
[frontend] Activity deletion sends activity id has a query in the route so it can be deleted from the array in home view
[frontend] Fixed users section not being highlighted in the sidebar when user is admin on page load
2024-05-22 14:21:38 +01:00
João Vitória Silva
0ac152ae17 Frontend revamp with Vue
[frontend] Added loading alert banner
[frontend] Added loading toast
[frontend] Added Strava integration
[backend] Changed redirect from backend when Strava is linked to be aligned with new Vue route
2024-05-22 11:23:13 +01:00
João Vitória Silva
31da05513f Frontend revamp with Vue
[frontend] Added password complexity validation in add user logic
[frontend] Changed background color on footer and navbar from bg-body-secondary to bg-body-tertiary
[frontend] Changed from banners to toasts for alerts in settings page
2024-05-22 09:50:03 +01:00
João Vitória Silva
27a86d5308 Frontend revamp with Vue
[frontend] Added security zone in settings page. User can now change his/hers password
[frontend] Added My Profile zone in settings page. User can now see his/hers profile values and edit them. Photo manipulation missing
2024-05-21 23:25:20 +01:00
João Vitória Silva
450c2cdd4a Frontend revamp with Vue
[backend] Implemented missing route and crud logic to search activity by name
[frontend] Implemented missing logic for activity search by name in the footer
2024-05-21 22:34:39 +01:00
João Vitória Silva
6146d46198 Frontend revamp with Vue
[frontend] User editing and deleting is now possible
[frontend] Gear and user searching should generate smoother transitions on the list
[backend] Fixed models so if user is deleted, respective follows are also deleting using cascade
[backend] Generated Alembic migration to handle database changes
2024-05-21 22:13:55 +01:00
João Vitória Silva
3a229cea54 Frontend revamp with Vue
[frontend] It is now possible to search by username on user section of the settings page
[frontend] Fixed search issue on gears page
2024-05-21 15:40:08 +01:00
João Vitória Silva
0104193cdb Frontend revamp with Vue
[frontend] Moved password requirements alert to specific component
2024-05-21 14:58:32 +01:00
João Vitória Silva
0de45de2de Frontend revamp with Vue
[frontend] Fixed user added success message
[frontend] Fixed user not being added to list when added
2024-05-21 13:57:56 +01:00
João Vitória Silva
cdf5179c59 Frontend revamp with Vue
[frontend] Bumped version to v0.2.0
[backend] Bumped version to v0.2.0
[frontend] Moved back button logic to separate component
[frontend] Created sidebar logic for settings page
[frontend] User view in settings is now able to create new user, list current users and change user password
2024-05-21 13:33:09 +01:00
João Vitória Silva
9c5989fa2b Frontend revamp with Vue
[frontend] User is able to accept or not follower requests from users with success messages
2024-05-20 11:48:00 +01:00
João Vitória Silva
99402ff241 Frontend revamp with Vue
[frontend] User is able to delete following and follower users with success messages
[frontend] Fixed issue on followers view on user page
2024-05-20 11:33:56 +01:00