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

feat: add a user context provider to the app #24

Merged
merged 6 commits into from
Feb 5, 2024
Merged

Conversation

MattCMcCoy
Copy link
Contributor

@MattCMcCoy MattCMcCoy commented Feb 2, 2024

Description

Link to Ticket

Please include a summary of the changes and the related issue. Please also
include relevant motivation, context, and images!
Screenshot 2024-02-04 at 4 45 22 PM

Added a user context provider to allow user things like id, email and other things in the future to be added globally to components.

Refactored App.tsx to clean up the code a bit and make it more expandable.

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. If they are unit
tests, provide the file name the tests are in. If they are not unit tests,
describe how you tested the change.

I printed the stuffs on the main screen

Checklist

  • I have performed a self-review of my code
  • I have reached out to another developer to review my code
  • I have commented my code, particularly in hard-to-understand areas
  • New and existing unit tests pass locally with my changes

export default function Router() {
return (
<NavigationContainer>
<AppNavigation />
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Im thinking if onboarding ever gets added it can be its own nav stack. Or if we ever want to have another nav stack can also be separated here

@MattCMcCoy
Copy link
Contributor Author

MattCMcCoy commented Feb 2, 2024

Not sure if we should hold off on this, as refactoring app.tsx mid sprint is probably a bad idea

Found solution to RNP components not utilizing tailwind styling, some changes to the components to make them more generic to allow it to be used in multiple places with different content
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just adding a file input into swagger for file upload

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Basically cleanup, but also adding context and paper provider so everywhere has access to RNP and our group and user context

Copy link
Contributor Author

@MattCMcCoy MattCMcCoy Feb 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

figured out how to get tailwind to work in RNP lol

Copy link
Contributor Author

@MattCMcCoy MattCMcCoy Feb 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

figured out how to get tailwind to work in RNP lol

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wanted an example file people could visit for frontend stuff, this was basically my goal with this refactor

@MattCMcCoy MattCMcCoy merged commit dc4a3ce into main Feb 5, 2024
3 checks passed
@MattCMcCoy MattCMcCoy deleted the feature/userContext branch February 5, 2024 22:04
andrewcaplan1 pushed a commit that referenced this pull request Feb 6, 2024
* feat: userContext stuff idk man

* refactor: general all around fixes (removing unused imports, fixing navigation errors)

* refactor: all over the place with this commit, but added swagger docs for file upload

* refactor: make context more general

* refactor: utilize card and popup in the medlist FE
oliviaseds added a commit that referenced this pull request Feb 17, 2024
* Added mock data

* feat: get tasks by gid/uid/status/type/date

* style: formatting

* fix: Remove commitizen branch

* test: fix task tests

* style: quick reformat

* feat: assign user(s) to a task CRUD and test

* style: quick style

* refactor: abstract queries, enable multiple

* refactor: abstract filter query/arg building logic

* crud routes for create new task, delete task, and update task info

* Feat: generic card and popup modal (#20)

* Intial card/button

* Basic card and modal

Basic card and modal skeleton

* fixed card and popup to have the requirments

fixed card and popup to have the requirments

* wip for passing medication data into Card component

* trying to get stuff workin

* trying to get comps workin

* stuff

* Final Working Card + Popup

---------

Co-authored-by: AdharshKan42 <[email protected]>

* fix: go formatting stuff werent running through entire directory (#23)

* feat: add a user context provider to the app (#24)

* feat: userContext stuff idk man

* refactor: general all around fixes (removing unused imports, fixing navigation errors)

* refactor: all over the place with this commit, but added swagger docs for file upload

* refactor: make context more general

* refactor: utilize card and popup in the medlist FE

* backend hot reload

* feat: added hot reloading for backend code

* refactor: abstract queries, enable multiple

* refactor: routes are updated

* feat: new route backend

* feat: add a new label crud and test

* feat: delete label crud and test

* refactor: FE  remove extra card file

* test: fix typo in db, tests passing locally

* refactor: modify task filter to bind to query

* feat: update task name and color route and test

* docs: fix swaggo comment style for task assignment and deletion

* docs: same swagger changes for label routes

* refactor: implement inclusive data range filter

* refactor: keep consistency between route groups

* docs: fix a swagger doc return type

---------

Co-authored-by: bedrockdude10 <[email protected]>
Co-authored-by: haleymartin-6 <[email protected]>
Co-authored-by: CaitlinFlynn <[email protected]>
Co-authored-by: AdharshKan42 <[email protected]>
Co-authored-by: Matt McCoy <[email protected]>
Co-authored-by: Matt McCoy <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants