asyncapi/website

automatic year detection and update year in files for finance bar chart

vishvamsinh28 opened this issue · 0 comments

Why do we need this improvement?

When the year changes, we create a folder for that particular year, and along with that, we need to change the year in some files ( scripts/finance/index.js , lib/getUniqueCategories.js and components/FinancialSummary/BarChartComponent.js ) to update the bar chart. However, what we can do is write logic to automatically detect the current year and modify the year in those files when we create a folder for the year in the finance section.

How will this change help?

New contributors can update finance data for new year by simply creating year folder no need make changes in othe files to update data

Screenshots

No response

How could it be implemented/designed?

We can use built-in date function to get current year

🚧 Breaking changes

No

👀 Have you checked for similar open issues?

  • I checked and didn't find a similar issue

🏢 Have you read the Contributing Guidelines?

Are you willing to work on this issue?

None