-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Centralize the AppBar; Remove extraneous component wrappers #807
Conversation
Codecov Report
@@ Coverage Diff @@
## master #807 +/- ##
==========================================
- Coverage 51.18% 51.15% -0.04%
==========================================
Files 237 237
Lines 6449 6459 +10
Branches 416 418 +2
==========================================
+ Hits 3301 3304 +3
- Misses 2841 2846 +5
- Partials 307 309 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
src/history.ts, line 13 at r2 (raw file):
I'm not sure this needs to change, but when I first say a lowercased item like this, I think it was a built in (like Could this be renamed to Also, I think canonically, on the web these things are called "routes" rather than "paths". So maybe: |
src/components/AppBar/AppBarComponent.tsx, line 16 at r2 (raw file):
Could rephrase to say: "Shown on all logged in pages" or equivalent. |
src/history.ts, line 14 at r2 (raw file):
It also looks like TypeScript prefers |
src/history.ts, line 13 at r2 (raw file): Previously, johnthagen wrote…
I see that other parts of React already have |
src/goals/DefaultGoal/BaseGoalScreen/BaseGoalScreen.tsx, line 55 at r2 (raw file):
Could this become a functional component while we are here? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 17 of 19 files at r1, 2 of 2 files at r2.
Reviewable status: all files reviewed, 4 unresolved discussions (waiting on @imnasnainaec)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 8 of 37 files reviewed, 1 unresolved discussion (waiting on @imnasnainaec and @johnthagen)
src/history.ts, line 13 at r2 (raw file):
Previously, johnthagen wrote…
I see that other parts of React already have
Route
, so maybe something likeAppRoute
would be the best here.
Path
implemented
src/components/AppBar/AppBarComponent.tsx, line 16 at r2 (raw file):
Previously, johnthagen wrote…
Could rephrase to say: "Shown on all logged in pages" or equivalent.
Done
src/goals/DefaultGoal/BaseGoalScreen/BaseGoalScreen.tsx, line 55 at r2 (raw file):
Previously, johnthagen wrote…
Could this become a functional component while we are here?
I had tried that, but it doesn't play well with BaseGoalScreen/index.tsx
src/history.ts, line 14 at r3 (raw file):
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 29 of 29 files at r3.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @imnasnainaec)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 10 of 42 files reviewed, 1 unresolved discussion (waiting on @imnasnainaec and @johnthagen)
src/history.ts, line 14 at r3 (raw file):
Previously, johnthagen wrote…
enum
members should start with a capital letter: https://www.typescriptlang.org/docs/handbook/enums.html
DataEntry = ...
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 32 files at r4.
Reviewable status: 11 of 42 files reviewed, all discussions resolved (waiting on @johnthagen)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 31 of 32 files at r4.
Reviewable status: complete! all files reviewed, all discussions resolved
In the routing of
src/App/component.tsx
, separate out all pages that can only be accessed after login under a newAppLoggedIn.tsx
, and place a single globalAppBar
within this new component, so we don't have to maintain a new instance within every page within the app.This change is