Commit f1bf095
Next: Dashboard charts (#1967)
* WIP: Adds events dashboard chart component
Introduces a new component for displaying events data in a chart format on the main dashboard.
This commit adds a basic chart implementation using dummy data. Real API integration will come in a later commit.
* WIP - Enhances events dashboard with date range selection
Improves the events dashboard by adding date range selection functionality to the chart.
This allows users to select a specific time range on the chart to filter events, providing a more granular view of the data.
Also, fixes an issue with persistent event queries invalidation and updates date formatting.
* Adds local date formatting functions
Adds `formatLocalDateTime` to format a date to ISO-like format in local time and `formatTimeRange` to format a date range using the new function.
Updates date range filter to use local time formatting.
* Updates dependencies
Updates various dependencies to their latest versions.
This includes updates to:
- Lucide Svelte
- bits-ui
- dompurify
- pretty-ms
- runed
- shiki
- tailwind-variants
- eslint and related packages
- svelte and sveltekit
- swagger-typescript-api
- typescript-eslint
- vite
These updates likely include bug fixes, performance improvements, and new features.
* Replaces date range dropdown with picker
Replaces the previous select dropdown with a date range picker component for enhanced usability and flexibility.
The new date range picker includes quick range selection and a custom range form using Elasticsearch date math syntax.
This provides users with more control over the date ranges they select for filtering events.
The date range parsing and formatting logic was updated.
* Updates frontend instructions and VS Code settings
Adds a linting tip to the frontend instructions and includes "datemath" in VS Code's cSpell dictionary.
The linting tip encourages developers to run the format script first when encountering linting errors, potentially resolving them automatically.
Adding "datemath" to the cSpell dictionary prevents it from being flagged as a misspelling.
* Refactors date range handling for event filters
Updates the date range selection to use a shared utility for formatting the time range string.
Removes the custom date parsing logic from the events filter, and
instead uses a shared utility for parsing date math ranges. This promotes
code reuse and consistency across the application.
* Refactors date math component and utils
Moves TIME_UNIT_NAMES to datemath.ts for reuse and consistency.
Updates the date range format to use DateMath format for the date filter, which improves readability and consistency throughout the application by using `toDateMathRange` instead of `formatDateRangeString`.
Updates error message for empty date input in `parseDateMath`.
* Moves CustomDateRange model to shared location
Moves the CustomDateRange model to a shared location to prevent circular dependencies and promote code reuse across different components.
Removes the duplicate definition.
* Updates dependencies
Updates various package dependencies in both the core project and the web client application.
This includes updating Svelte, Typescript-eslint, vite and other related packages.
Also adds Exceptionless.DateTimeExtensions to the core project.
* Improves date math parsing and validation
Refactors the date math parsing logic to be more robust and accurate, aligning with the backend implementation.
This includes better handling of time zones, rounding, and various date formats.
Also provides more informative validation error messages and comprehensive unit tests.
Removes the legacy date range parsing functions and simplifies the date/time examples in the CustomRangeForm.
* Adds tooltips to custom range form
Improves the user experience of the custom date range form by adding tooltips to the start and end date input fields.
The tooltips provide helpful examples of valid date formats and relative time expressions, making it easier for users to specify their desired date ranges.
* Formats date math range using local ISO string.
Updates the date math range formatting to use the local ISO
string format to ensure consistent date representation across
different timezones. This improves the accuracy and reliability
of date-based calculations and comparisons.
* Updates default time range for issues
Updates the default time range for issues and the main page to '[now-1w/w TO now-1w/w]' to ensure consistent weekly bucketing.
Refactors the toLocalISOString function by moving it to the bottom of the file.
* Updates dependencies in ClientApp
Bumps versions of various packages in the ClientApp,
including @tanstack/svelte-query, bits-ui, layerchart,
tw-animate-css, @playwright/test, @storybook/*,
@sveltejs/kit, @sveltejs/vite-plugin-svelte,
@testing-library/jest-dom, @types/node, cross-env,
eslint-plugin-storybook, svelte, typescript, and
typescript-eslint.
This ensures the application uses the latest versions of
these libraries, potentially including bug fixes, performance
improvements, and new features.
* Improves chart date series generation
Refactors the chart data generation to improve handling of empty data sets and date ranges.
It ensures that the chart always displays a complete date series, even when no data is available
for certain periods. The changes involve filling date series with zero values for missing data points.
Also, simplifies date range handling by removing the "last X" patterns in `parseDateMathRange`
and defaulting to a minimum date range for the organization, aligning with Elasticsearch date math expressions.
This ensures consistency in date handling across the application.
* Updates Exceptionless.DateTimeExtensions
Updates the Exceptionless.DateTimeExtensions package to the latest version.
This ensures that the application benefits from the latest bug fixes and improvements related to date and time handling.
* Defines nullable type for previous state refs
Ensures that previous settings refs are nullable to avoid potential issues when they are initially undefined.
* Removes close button from faceted filter actions
Removes the unnecessary "close" button from the faceted filter actions component.
The popover automatically closes when an action is taken, so the button is redundant.
* Improves date range picker usability
Enhances the date range picker component by:
- Adding keyboard support for applying and canceling custom date ranges,
- Applying the custom range when the popover closes,
- Ensuring the custom form is only submitted if valid,
- Persisting the state of the date range picker when the popover is closed.
* Applies shadcn-svelte trigger snippet pattern
Ensures correct tab behavior and accessibility for shadcn-svelte trigger components.
Updates documentation to provide usage guidelines and examples for the `child` snippet pattern in `Tooltip.Trigger`, `Popover.Trigger`, `DropdownMenu.Trigger`, and other trigger components.
The pattern avoids double-tab issues and ensures proper props delegation, improving accessibility and maintainability.
Updates components to use the recommended pattern.
* Adds accessibility descriptions to filters
Improves accessibility by adding screen reader descriptions to faceted filters and the custom date range form.
This allows users to understand how to interact with these components using keyboard navigation.
* Validates end date is after start date
Adds validation to ensure the end date in the custom date range picker is after the start date.
This prevents users from selecting invalid date ranges where the end date precedes the start date.
Also ensures the Apply button is disabled when the date range is invalid.
* Fixed tag filters Guarantees empty buckets array for aggregations
Ensures that the `buckets` array in aggregation results is always an empty array when there are no items, preventing potential errors when the client code attempts to iterate over it.
Addresses a potential issue where a null or undefined `buckets` property could cause errors in components that expect an array.
* Improves faceted filter accessibility and usability
Enhances the faceted filter components by:
- Adding keyboard navigation within popovers for improved accessibility, specifically using the Escape key to cancel and close the filter.
- Ensures focus is not trapped within the popover, allowing users to navigate outside it with the Tab key.
- Updates help text to provide clearer instructions for keyboard interactions.
- Renames `onClose` and `onCancel` methods for clarity.
* Adds accessibility instructions for code generation
https://github.com/github/awesome-copilot/blob/main/instructions/a11y.instructions.md
Introduces a new file containing detailed instructions for accessibility.
The instructions aim to guide code generation towards WCAG 2.2 Level AA compliance, promote inclusive language, and provide specific guidance for cognitive, keyboard, low vision, and screen reader accessibility. It covers specific patterns like forms, graphics, navigation, and tables.
The goal is to improve the accessibility of generated code, though manual review and testing are still recommended.
* Updates package versions
Bumps the versions of several NuGet packages, including OpenTelemetry, Swashbuckle, and Microsoft.NET.Test.Sdk.
* npm install
* Updated packages
* rebuilt package lock
* Update src/Exceptionless.Web/ClientApp/src/lib/features/shared/utils/charts.ts
Co-authored-by: Copilot <[email protected]>
---------
Co-authored-by: Copilot <[email protected]>1 parent 73692d0 commit f1bf095
File tree
57 files changed
+4008
-1191
lines changed- .github/instructions
- .vscode
- src
- Exceptionless.Core
- Exceptionless.Job
- Exceptionless.Web
- ClientApp
- src
- lib/features
- events
- components
- filters
- table
- organizations/components
- dialogs
- projects/components
- stacks/components
- routes/(app)
- account/manage
- issues
- organization/[organizationId]
- billing
- manage
- project/[projectId]/manage
- stream
- tests/Exceptionless.Tests
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
57 files changed
+4008
-1191
lines changedLarge diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
163 | 245 | | |
164 | 246 | | |
165 | 247 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
0 commit comments