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

Feat/set date range #53

Merged
merged 9 commits into from
Jun 24, 2024
Merged

Feat/set date range #53

merged 9 commits into from
Jun 24, 2024

Conversation

IliaSidash
Copy link
Collaborator

  1. CSS styles were added for a new element .tm-tool-bar-date-range, including layout, colors, and typography.
  2. The JavaScript file iguanachart.js was modified to include a new function periodToDateRange, which converts period strings ('D2', 'M3', etc.) into date ranges.
  3. Additionally, elements identified by .js-chart-ui-control selector in the code have their data-property and data-value attributes updated to reflect changes in date ranges.
  4. Moreover, updates on the handlers associated with these controls were also made to reflect the changes.
  5. Lastly, the minified CSS file was also updated, presumably with the same style changes that were made to the non-minified CSS file.

Removed an unused test script from package.json and deleted npm-shrinkwrap.json to reduce unnecessary clutter in the project. These changes will simplify the project structure and make it easier to maintain.
The minification process has been updated by swapping out the 'node-minify' library with the '@node-minify/core', '@node-minify/cssnano', and '@node-minify/uglify-js' libraries. Adjustments were made in the 'minify.js' and 'package.json' files to accommodate these new libraries.
The new `tm-tool-bar-date-range` class has been added to `_toolbar.css` and `_toolbar.less` to enhance the style of toolbar's date range. The usage of this class is also reflected in the `templates.js` file by replacing sprite icons with textual frequency representations and adding more descriptive title tags for chart control buttons.
Modified the scripts for UI and chart operations to provide better control over the displayed date interval. Added a method to parse date period and interval and update the chart data source accordingly. Extended support to include 'Year to Date' range as well.
The incrementation of the 'dateTo' variable has been added. This adjustment extends the selected date range by one additional day.
Adjusted the hex color values for @Dark-Blue and @md-color-grey-800 in the md_colors.less file. This change updates the color scheme to improve visual consistency and readability in the application.
This commit introduces a conditional check in request date formatting in the charting file, which will only apply the formatting if 'force' variable is not true. Additionally, references to 'intervalMode' settings in chart.js have been removed which were setting it to 'ClosedRay'.
@kayvazov kayvazov removed their assignment May 2, 2024
@IliaSidash IliaSidash merged commit 9ece647 into master Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants