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

Mobile/feat/analytics #418

Merged
merged 163 commits into from
Oct 1, 2024
Merged

Mobile/feat/analytics #418

merged 163 commits into from
Oct 1, 2024

Conversation

KamogeloMoeketse
Copy link
Contributor

@KamogeloMoeketse KamogeloMoeketse commented Oct 1, 2024

Description

This pr is the final one for mobile including the dashboard facelift and user analytics.

Fixes:
#351
#395
#396
#397
#398
#399
#297

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

KamogeloMoeketse and others added 30 commits September 3, 2024 01:12
The code changes in `SplashScreen.tsx` update the navigation logic in the `useEffect` hook. Instead of navigating to `/home`, it now navigates to `home`. This change ensures consistent navigation behavior.

Note: The commit message conventions in the repository follow the format of starting with a type (e.g., feat, fix, chore) followed by a colon and a brief description of the change.
This change adds the "assetBundlePatterns" property to the app.json file in order to include all files in the project for bundling. This ensures that all assets are properly bundled and available for use in the application.
- Added the `AnalyticsReq` interface to the `requests.ts` file.
- added analytics service functions
This commit refactors the Stats component in the Dashboard screen to include additional analytics functionality. It adds new state variables for work ratio, peak office hours, arrival and departure times, and in-office rate. The fetchUserAnalytics function is updated to fetch these new analytics data from the server. The analyticsCards array is also updated to display the new data.

Changes:
- Added state variables for work ratio, peak office hours, arrival and departure times, and in-office rate
- Updated fetchUserAnalytics function to fetch new analytics data
- Updated analyticsCards array to display new data
u21631532 and others added 21 commits September 30, 2024 17:16
- Added logging of authentication token in getUserDetails and getNotificationSettings functions
- Removed commented out code in getNotificationSettings and getTopBookings functions
- Added delay before storing token in UserLogin function
- Updated router destination in UserLogin function
Copy link

codecov bot commented Oct 1, 2024

Codecov Report

Attention: Patch coverage is 29.45946% with 261 lines in your changes missing coverage. Please review.

Project coverage is 48.67%. Comparing base (e7499db) to head (4c72da9).
Report is 165 commits behind head on develop.

Files with missing lines Patch % Lines
frontend/occupi-mobile4/utils/occupancy.ts 7.21% 88 Missing and 2 partials ⚠️
frontend/occupi-mobile4/services/apiservices.ts 7.14% 65 Missing ⚠️
frontend/occupi-mobile4/utils/bookings.ts 55.91% 34 Missing and 7 partials ⚠️
frontend/occupi-mobile4/services/aimodel.ts 0.00% 28 Missing ⚠️
frontend/occupi-mobile4/utils/notifications.ts 0.00% 17 Missing ⚠️
.../occupi-mobile4/screens/Settings/Notifications.tsx 62.50% 1 Missing and 8 partials ⚠️
frontend/occupi-mobile4/services/authservices.ts 57.89% 8 Missing ⚠️
frontend/occupi-mobile4/utils/user.ts 90.00% 1 Missing and 1 partial ⚠️
frontend/occupi-mobile4/services/securestore.ts 50.00% 1 Missing ⚠️

❗ There is a different number of reports uploaded between BASE (e7499db) and HEAD (4c72da9). Click for more details.

HEAD has 2 uploads less than BASE
Flag BASE (e7499db) HEAD (4c72da9)
3 1
Additional details and impacted files
@@             Coverage Diff              @@
##           develop     #418       +/-   ##
============================================
- Coverage    82.37%   48.67%   -33.71%     
============================================
  Files           96       11       -85     
  Lines         5743      791     -4952     
  Branches        84      126       +42     
============================================
- Hits          4731      385     -4346     
+ Misses         919      360      -559     
+ Partials        93       46       -47     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@KamogeloMoeketse KamogeloMoeketse added type: testing This affects one or more tests For: frontend This is mainly related to frontend UI code priority: high This needs/needed to be addressed as soon as possible platform: mobile This is related to mobile platforms For: integration This is for work involving integration with the backend/model API labels Oct 1, 2024
@KamogeloMoeketse KamogeloMoeketse merged commit 93e3d8b into develop Oct 1, 2024
4 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
For: frontend This is mainly related to frontend UI code For: integration This is for work involving integration with the backend/model API platform: mobile This is related to mobile platforms priority: high This needs/needed to be addressed as soon as possible type: testing This affects one or more tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants