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: FE Demo / How to prep #26

Merged
merged 23 commits into from
Feb 12, 2024
Merged

Feat: FE Demo / How to prep #26

merged 23 commits into from
Feb 12, 2024

Conversation

MattCMcCoy
Copy link
Contributor

@MattCMcCoy MattCMcCoy commented Feb 8, 2024

Description

No ticket, just prep for a FE demo/how to for monday and rework Readme so it looks better

Notable changes in this PR:

  • Changed File upload to use params instead of header (I legit just found this this week, and goes with general swe practices with API stuff)
  • You no longer need to sign in to the app everytime you load in (we should get a way to sign out, but not needed right now)
  • Added Tanstack for FE querying and CLSX for conditionally rendering tailwind
  • Restructured FE Api, so the only thing exposed is TanStack stuff, as a useMedication I think this is probably the cleanest way to go about it and genuinely makes me happy to avoid a bunch of use effects and such throughout each page
    useMedication definition
    useMedication used
  • General Refactor of already made files to follow FE coding standards.

How Has This Been Tested?

Manually, seeing the changes in the app, and on AWS.

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

Just found the params field today, this change is to go with general SWE practices that a header is a field of an HTTP request or response that passes additional context and metadata about the request or response. For example, a request message can use headers to indicate it's preferred media formats, while a response can use header to indicate the media format of the returned body.
noticed that it marked the data as stale which refetches it automatically then I also manually refetched
@MattCMcCoy MattCMcCoy added feature Introduces a new and complete feature and removed feature Introduces a new and complete feature labels Feb 8, 2024
* feat: add eslint to fe

* ci: utilize linter in fe workflow

* refactor: revert usefile to const

* style(prettier): use prettier for sorting imports over eslint

* style: cleanup

* ci: fix fe lint

* refactor: useAuth to be const instead of function

* feat: utilize colors from tailwind config to limit confusion
@MattCMcCoy MattCMcCoy merged commit 240e95b into main Feb 12, 2024
6 checks passed
@MattCMcCoy MattCMcCoy deleted the bugfix/file-upload branch February 12, 2024 16:05
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