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
Update Entry Submit to point at existing endpoint #48 #49
Conversation
| @@ -48,7 +48,7 @@ export function PersonWeeklyEntries(props: Props) { | |||
| {[0, 1, 2, 3, 4, 5, 6].map( val => | |||
| <EntryDay | |||
| date={currentDate.plus({'days': val})} | |||
| resource={resourceState.follow('search-sheet', { year: currentDate.year, weekNum: currentDate.weekNumber })} | |||
| resource={resourceState.follow('entry-collection')} | |||
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.
I have a hunch this change means that entries are no longer filtered by weeks, so every week shows all entries in the system.
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.
made some changes to address this!
tested and ready to review
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.
Just to clarify this more, we must continue to use the existing search-sheet resource for this because if we don't, you are loading in every time entry ever made.
We need to continue to filter by week. The search-sheet link was added so we can do that.
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.
So even though visually this might do the right thing. If a user has thousands of entries, this change would load all of them in and we don't want that.
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.
|
PR Closed due to: #49 (comment) |


Resolves #48
Changes
/pages/people/person/Timesheet.tsxto now follow 'entry-collection'EntryDayItemNewcomponent to have the parent componentpostFollowinstead ofpostNotes for PR
Screenshots
Submitting without a selected project
Minimized screen showing no selected project (even though there is)