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

Simplified hour report form #133

Merged
merged 5 commits into from
Jun 25, 2024
Merged

Simplified hour report form #133

merged 5 commits into from
Jun 25, 2024

Conversation

tuj
Copy link
Contributor

@tuj tuj commented Jun 21, 2024

Link to ticket

https://leantime.itkdev.dk/#/tickets/showTicket/1742

Description

Simplified hour report form.

Checklist

  • My code is covered by test cases.
  • My code passes our test (all our tests).
  • My code passes our static analysis suite.
  • My code passes our continuous integration process.

@tuj tuj added the bug Something isn't working label Jun 21, 2024
@tuj tuj self-assigned this Jun 21, 2024
@tuj tuj marked this pull request as ready for review June 21, 2024 11:01
@tuj tuj requested a review from jeppekroghitk June 21, 2024 18:36
'data-preselect-date' => $this->hourReportService->getToDate(),
],
]);
$form->add('submit', ButtonType::class, [
Copy link
Contributor

Choose a reason for hiding this comment

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

The thought about adding a submit button, is to prevent the report from being loaded before the user is done configuring what they want to see. As the report takes a bit to compute, i imagine that it is going to be annoying potentially waiting for data three times, before the form is fully configured.

As fromDate and toDate is preconfigured, selecting a version will cause the report to be loaded the first time.

If you want to change fromDate, the report is loaded for the second time and after changing toDate, the report is loaded for the third time.

I think we need to solve this.

@tuj tuj merged commit be5adfe into develop Jun 25, 2024
9 checks passed
@tuj tuj deleted the feature/1742-hour-report-fixes branch June 25, 2024 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants