phoenix_live_dashboard changelog


Hey there, code adventurers! Get ready for some exciting updates that will make your coding journey even more delightful. We've been working hard to bring you some shiny new features and improvements. Let's dive in! 🚀

New feature: Refresh Interval for Chart Components

Say hello to the brand-new refresh_interval option for chart components in the Phoenix LiveDashboard! 🎉 This nifty feature lets you set how often your chart refreshes its data, with a default of every second. Whether you want it to update faster or take it slow, you now have the power to decide. We've made sure everything's in place, from validating your input to updating the documentation and running tests to ensure it all works like a charm. Your data, your rules! 📊💪

Improvement: Asset Updates

We've given our assets a little makeover! ✨ The dist/js/app.js and dist/js/app.js.map files have been spruced up with some tweaks and refinements. These changes are all about making your experience smoother and more efficient, especially when it comes to handling charts and data. Our goal? To keep things running like a well-oiled machine, ensuring you get the best performance and seamless interactions. Keep those charts spinning! 🔄📈

That's all for now, folks! Keep exploring and enjoy the new features. Until next time, happy coding! 😊👩‍💻👨‍💻

Included Commits

2025-05-09T15:00:34 See commit

This commit introduces the refresh_interval option for chart components in the Phoenix LiveDashboard, allowing users to specify the interval in milliseconds at which the chart will refresh its data. The default value for this interval is set to 1000 milliseconds (1 second). Modifications were made across various files, including the JavaScript and Elixir components, to accommodate this new feature. Specifically, the refresh_interval is now validated as a positive integer, and it is included in the chart's rendering attributes and options.

Additionally, the documentation for metrics reporting has been updated to reflect the inclusion of the refresh_interval option. Tests were also added to ensure that the new feature functions correctly, including checks for proper rendering and validation of the refresh_interval input. Overall, this enhancement aims to improve the user experience by providing more control over how frequently chart data is updated.

Files changed

  • assets/js/metrics_live/index.js
  • guides/metrics.md
  • lib/phoenix/live_dashboard/components/chart_component.ex
  • lib/phoenix/live_dashboard/page_builder.ex
  • lib/phoenix/live_dashboard/pages/metrics_page.ex
  • test/phoenix/live_dashboard/components/chart_component_test.exs
  • test/phoenix/live_dashboard/pages/metrics_page_test.exs
2025-05-09T15:02:12 See commit

The recent commit primarily focuses on updating the assets in the project, specifically modifying the dist/js/app.js and dist/js/app.js.map files. In app.js, the changes include a small number of additions and deletions, indicating a refinement in the code structure or logic. The modifications may enhance the functionality related to chart handling and data processing, as evidenced by the presence of functions that manage datasets, handle measurements, and update chart configurations.

Additionally, the app.js.map file was updated to reflect changes in the JavaScript file, ensuring that source maps are in sync with the latest code. This commit appears to be part of ongoing improvements aimed at optimizing performance and maintaining the integrity of the application's frontend logic, particularly concerning real-time data visualization and user interactions.

Files changed

  • dist/js/app.js
  • dist/js/app.js.map