Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Revenue by clients report page UI and common context for all reports.#537

Merged
supriya3105 merged 45 commits intodevelopfrom
feature/revenue-by-clients-report
Jul 5, 2022
Merged

Revenue by clients report page UI and common context for all reports.#537
supriya3105 merged 45 commits intodevelopfrom
feature/revenue-by-clients-report

Conversation

@onkar-saeloun
Copy link
Contributor

Notion card

https://www.notion.so/saeloun/Create-the-front-end-for-revenue-by-clients-reports-b170ac9a1b2c44d1961fed9393a05a82

Summary

  • Added Report page for revenue by client
  • Added filters for the same
  • Added single context for all the reports
  • Added validation on the filters

Preview

Miru._.Time.tracking.and.invoicing.-.1.July.2022.mp4

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Tested Manually on my local machine.

Checklist:

  • I have manually tested all workflows
  • I have performed a self-review of my own code
  • I have added automated tests for my code

@apoorv1316
Copy link
Collaborator

@onkar-saeloun Clear all button is not removing the "this quarter" filter. Please check.

@supriya3105
Copy link
Contributor

@harshaanNihal $ @akhilgkrishnan Please view this PR and provide your comments.

Copy link
Contributor

@harshaanNihal harshaanNihal left a comment

Choose a reason for hiding this comment

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

Added some nitpicks

Approving as PR LGTM ✨

const years = range(1990, getYear(new Date()) + 1);
const months = [
"Jan",
"Febr",
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"Febr",
"Feb",

wrapperClassName="datePicker absolute"
inline
calendarClassName="miru-calendar-date-range"
minDate={(selectedInput === "to-input" && dateRange.from) ? new Date(dateRange.from) : null}
Copy link
Contributor

Choose a reason for hiding this comment

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

can we move "to-input", "from-input" to constants variable.

Comment on lines +28 to +37
const getReport = (currentReport) => {
switch (currentReport) {
case "RevenueByClientReport":
return revenueByClientReport;
case "TimeEntryReport":
return timeEntryReport;
default:
break;
}
};
Copy link
Contributor

Choose a reason for hiding this comment

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

DRY the function. we are defining the same function in
app/javascript/src/components/Reports/Header/NavigationFilter.tsx:7 aswell

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@harshaanNihal This refactoring is already done in API integration branch will raise separate PR for this.

@github-actions
Copy link

github-actions bot commented Jul 5, 2022

Current Code Coverage Percent of this PR:

89.13 %

Files having coverage below 100%

Impacted Files Coverage
/lib/custom_failure.rb 80.0 %
/app/services/weekly_reminder_for_missed_entries_service.rb 31.82 %
/app/controllers/users/invitations_controller.rb 92.86 %
/app/controllers/users/sessions_controller.rb 85.71 %
/app/services/invoice_payment/checkout.rb 44.0 %
/app/services/invoice_payment/pdf_generation.rb 70.0 %
/app/controllers/internal_api/v1/payment_settings_controller.rb 93.33 %
/app/controllers/internal_api/v1/profile_controller.rb 96.88 %
/app/controllers/internal_api/v1/companies_controller.rb 95.45 %
/app/controllers/internal_api/v1/wise/recipients_controller.rb 90.0 %
/app/controllers/internal_api/v1/payments/providers_controller.rb 94.74 %
/lib/benchmarking/benchmarker.rb 0.0 %

@supriya3105 supriya3105 merged commit 188790a into develop Jul 5, 2022
@supriya3105 supriya3105 deleted the feature/revenue-by-clients-report branch July 5, 2022 07:32
vipulnsward pushed a commit that referenced this pull request Feb 15, 2026
…#537)

* added width and height properties in tailwind config

* added reports routes

* added route conf

* added reports header

* added outstanding amt page

* added report card component

* added report card

* added revenue by client page

* added time entry page

* added total hours logged page

* added routes path for reports

* added svgs for report list page

* added route in navbar

* added flag to show the report in list

* resolved comment

* added total header page

* changed time enty import

* changed entry context

* added z index

* added revenue by client context

* added time entry context

* added time entry context import

* added time entry context

* added navigation changes

* added revenue by client page

* added header

* added table

* added filter

* added styles

* added time entry context

* added changes in date util

* added css

* added filter

* added custom date rage

* added filter counter

* added filte rrelated changes

* added interface

* added css changes

* added css changes

* resolved comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants