Commit Graph

1888 Commits

Author SHA1 Message Date
Simon Larsen
70a2a3993b
refactor: Update symbol type to use lowercase 'symbol' in ColumnAccessControl files 2024-06-14 12:09:53 +01:00
Simon Larsen
0d97f0447a
refactor: Improve error handling in API class
This commit refactors the API class in API.ts to improve error handling. The `getFriendlyErrorMessage` method now includes additional error cases and returns more specific error messages for network errors, timeouts, request aborts, cancellations, connection issues, and SSL certificate expiration. This change enhances the user experience by providing clearer and more informative error messages.
2024-06-14 10:57:19 +01:00
Simon Larsen
52f4c74908
refactor: Update noItemsMessage prop types to include ReactElement
The prop types for the noItemsMessage prop have been updated in multiple components to include the ReactElement type. This change allows for passing React elements as the no items message, providing more flexibility in customizing the message's content and appearance.
2024-06-11 18:34:25 +01:00
Simon Larsen
f10fa9a48e
```text
refactor: Update defaultValue property in Field interface

The defaultValue property in the Field interface has been updated to include the number type. This change allows for setting default values of type number in form fields.
2024-06-11 18:15:09 +01:00
Simon Larsen
dfb7f2320c
refactor: Update jest.config.json files with testPathIgnorePatterns
The jest.config.json files in the Model, Probe, Common, Copilot, CommonUI, Ingestor, IsolatedVM, TestServer, and CommonServer directories have been updated. The "testPathIgnorePatterns" property has been added to each file, excluding the "node_modules" and "dist" directories from test path matching. This change improves test performance and ensures that unnecessary files are not included in the test coverage.
2024-06-11 14:52:55 +01:00
Simon Larsen
3bb1d93f3e
feat: Add forceNavigate option when navigating to new item
The DuplicateModel component in CommonUI has been updated to include a new option, forceNavigate, when navigating to a new item. This option allows for forced navigation to the new item, bypassing any checks or validations. This change provides more control over the navigation behavior and ensures consistent navigation to the new item.
2024-06-11 12:29:50 +01:00
Simon Larsen
703c4b7685
feat: Add doNotShowWhenCreating option to Field interface
The Field interface in the CommonUI project has been updated to include a new property, doNotShowWhenCreating. This property allows developers to specify whether a field should be shown in the form when creating a new entity. By setting doNotShowWhenCreating to true, the field will be hidden during the creation process. This change provides more control over the visibility of fields in the form based on the create or edit mode.
2024-06-11 11:33:26 +01:00
Simon Larsen
47bf8f9c89
refactor: Update EventItem component to dynamically apply styles based on event type
This code change updates the EventItem component to dynamically apply styles based on the event type. The classNames for the title and description elements are now generated based on the eventType prop, allowing for more flexibility in styling. This change improves the visual representation of different event types in the application.
2024-06-10 11:48:47 +01:00
Simon Larsen
c55b169488
Merge pull request #1460 from OneUptime/snyk-upgrade-46c810649599bbd5f034d681106116a8
[Snyk] Upgrade react-big-calendar from 1.12.1 to 1.12.2
2024-06-09 19:36:50 +01:00
Simon Larsen
3e13776252
refactor: Improve BaseModelTable actions column logic
This code change updates the BaseModelTable component to improve the logic for determining whether to show the actions column. Previously, the actions column was shown based on various conditions, including permissions, action buttons, and the showViewIdButton prop. This logic has been refactored to simplify the conditions and make it easier to understand.

- The showActionsColumn variable is now initialized with the result of the Boolean function, which checks if any of the conditions are met.
- Additionally, if the user is a master admin, the actions column will always be shown, regardless of other conditions.

These changes enhance the readability and maintainability of the code, ensuring that the actions column is displayed correctly based on the specified conditions.
2024-06-09 13:18:56 +01:00
Simon Larsen
a146691773
refactor: Improve code readability and maintainability in LogItem.tsx 2024-06-07 22:16:36 +01:00
Simon Larsen
9fce103b11
refactor: Update ResetPassword.tsx to improve password confirmation validation 2024-06-07 22:04:56 +01:00
Simon Larsen
f8e1ace311
refactor: Update Navigation class to use getLastParamAsString method 2024-06-06 21:45:29 +01:00
Simon Larsen
5d5468603f
refactor: Add lazy loading for images in DateFilter component
This code change adds lazy loading for images in the DateFilter component. By implementing lazy loading, the images in the component will only load when they are in the viewport, improving the page load performance. This enhancement provides a better user experience by reducing the initial load time of the page.
2024-06-06 17:49:43 +01:00
Simon Larsen
4c6979cfa1
refactor: Add date filter to FiltersForm and FilterViewer components
This code change adds a new date filter to the FiltersForm and FilterViewer components. The date filter allows users to filter data based on a specific date range. This enhancement improves the filtering capabilities of the components and provides users with more flexibility in data analysis.
2024-06-06 17:40:24 +01:00
snyk-bot
56b0fea04a
fix: upgrade react-big-calendar from 1.12.1 to 1.12.2
Snyk has created this PR to upgrade react-big-calendar from 1.12.1 to 1.12.2.

See this package in npm:
react-big-calendar

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/47001ef1-7b3a-49c2-88cd-8025c56346d0?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-06-06 03:46:25 +00:00
Simon Larsen
157f8e95d7
refactor: Update TableRow component to include padding in drag handle 2024-06-05 12:59:35 +01:00
Simon Larsen
6b92440c74
Merge pull request #1457 from OneUptime/snyk-upgrade-ec107bb76f5f3418659be75ddc87b6bd
[Snyk] Upgrade @nivo/line from 0.86.0 to 0.87.0
2024-06-04 21:30:51 +01:00
Simon Larsen
c2d3123263
Merge pull request #1456 from OneUptime/snyk-upgrade-f550bab384e19de47906237ddf6f8910
[Snyk] Upgrade react-router-dom from 6.23.0 to 6.23.1
2024-06-04 21:30:40 +01:00
Simon Larsen
f084058b67
feat: Add error message component to BasicFormModal
This code change adds the ErrorMessage component to the BasicFormModal component in BasicFormModal.tsx. The ErrorMessage component is rendered when the props.error value is truthy, displaying the error message to the user. This enhancement improves the user experience by providing clear feedback when an error occurs during form submission.
2024-06-04 21:17:10 +01:00
Simon Larsen
9dbe33bfcc
refactor: Add doNotShowWhenEditing flag to form fields
This code change adds the `doNotShowWhenEditing` flag to the form fields in the `ModelTable` component. When set to `true`, this flag prevents certain fields from being shown in the form when it is in edit mode. This improvement provides better control over which fields are displayed in the form during editing, enhancing the user experience and reducing clutter.
2024-06-04 21:01:36 +01:00
Simon Larsen
1fad1d7c29
refactor: Update TableRow component to align top in Table
This code change updates the TableRow component in the Table module to align the content at the top of the table cells. The classNames "align-top" are added to the relevant table cells to achieve this alignment. This improvement ensures consistent vertical alignment of content in the table rows.
2024-06-04 20:21:51 +01:00
snyk-bot
ef610e104a
fix: upgrade @nivo/line from 0.86.0 to 0.87.0
Snyk has created this PR to upgrade @nivo/line from 0.86.0 to 0.87.0.

See this package in npm:
@nivo/line

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/47001ef1-7b3a-49c2-88cd-8025c56346d0?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-06-04 17:45:55 +00:00
snyk-bot
8f7bec00d4
fix: upgrade react-router-dom from 6.23.0 to 6.23.1
Snyk has created this PR to upgrade react-router-dom from 6.23.0 to 6.23.1.

See this package in npm:
react-router-dom

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/47001ef1-7b3a-49c2-88cd-8025c56346d0?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-06-04 17:45:49 +00:00
snyk-bot
13be411fc0
fix: upgrade @nivo/core from 0.86.0 to 0.87.0
Snyk has created this PR to upgrade @nivo/core from 0.86.0 to 0.87.0.

See this package in npm:
@nivo/core

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/47001ef1-7b3a-49c2-88cd-8025c56346d0?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-06-03 04:20:36 +00:00
Simon Larsen
9a37c4b031
refactor: Improve event item descriptions and labels
This code change refactors the EventItem component to improve the display of event descriptions and labels. It updates the CSS classes for the event descriptions to enhance readability and adds CSS classes for the event labels to improve their styling. This enhancement improves the overall appearance and user experience of the EventItem component.
2024-05-29 16:52:53 +01:00
Simon Larsen
faf0641503
refactor: Update package.json and Encryption.ts to use latest version of crypto-js 2024-05-29 15:25:09 +01:00
Simon Larsen
4fcc066971
Merge remote-tracking branch 'origin/snyk-upgrade-9bde7b8ad7df926b5588a93ac9081118' 2024-05-29 13:59:08 +01:00
Simon Larsen
95dbeaddba
refactor: Update DocsNav to include Monitor Secrets page
This code change updates the DocsNav file to include a new navigation item for the Monitor Secrets page. It adds a new object to the DocsNav array with the title "Monitor Secrets" and the URL "/docs/monitor/monitor-secrets". This enhancement improves the navigation experience for users accessing the Monitor Secrets documentation.
2024-05-29 13:56:38 +01:00
Simon Larsen
847f426bc6
refactor: Improve error messages in MetricsInfo and SSLCertificateMonitorView components
The code changes in this commit improve the error messages in the MetricsInfo and SSLCertificateMonitorView components. The updated error messages provide more helpful information to users, indicating that it may take a few minutes for metrics to show up for the selected probe. This enhancement improves the user experience and reduces confusion when metrics are not immediately available.
2024-05-23 18:49:30 +01:00
Simon Larsen
3e255e6dd1
refactor: Remove unused isHeadRequest property in MonitorUtil and ApiMonitor 2024-05-23 17:41:37 +01:00
Simon Larsen
df7bd46428
Remove unused isHeadRequest property in MonitorUtil and ApiMonitor 2024-05-23 13:40:34 +01:00
Simon Larsen
2b0dd6687d
Merge pull request #1435 from OneUptime/snyk-upgrade-8ff00708899512e4a35ebf204a59691e
[Snyk] Upgrade @nivo/core from 0.85.1 to 0.86.0
2024-05-22 12:30:14 +01:00
Simon Larsen
fda11d81c0
Merge branch 'master' of github.com:OneUptime/oneuptime 2024-05-22 12:17:27 +01:00
Simon Larsen
0d41d97b8d
refactor: Fix syntax error in MonitorStep and CriteriaFilterUtil 2024-05-22 11:59:33 +01:00
Simon Larsen
01c214b51e
refactor: Update CodeEditor placeholder for JavaScript type
This commit updates the CodeEditor component to improve the placeholder text for the JavaScript type. The placeholder now includes additional line breaks and indentation for better readability and code organization. This change enhances the user experience when working with JavaScript code in the CodeEditor.
2024-05-22 11:33:54 +01:00
snyk-bot
f756df1e5f
fix: upgrade @nivo/core from 0.85.1 to 0.86.0
Snyk has created this PR to upgrade @nivo/core from 0.85.1 to 0.86.0.

See this package in npm:
@nivo/core

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/47001ef1-7b3a-49c2-88cd-8025c56346d0?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-05-22 10:21:17 +00:00
Simon Larsen
e2a7f7efc5
refactor: Add support for ArrayOfText field type in Detail component
This commit adds support for the ArrayOfText field type in the Detail component. When the field type is ArrayOfText and there is data available, the data is joined with commas and displayed in the UI. This enhancement improves the user experience by properly rendering and handling the ArrayOfText field type in the Detail component.
2024-05-22 10:58:34 +01:00
Simon Larsen
3fb804c4e7
Update import paths for BrowserType and ScreenSizeType enums 2024-05-21 14:49:17 +01:00
Simon Larsen
ccaaaa1823
feat: Fix pagination bug in Pagination component
This commit fixes a bug in the Pagination component where the currentPageNumber was not being properly converted to a number before performing calculations. The bug caused incorrect navigation to the previous and next pages. The issue is resolved by adding a check to convert the currentPageNumber to a number if it is a string.
2024-05-21 12:04:32 +01:00
Simon Larsen
7d7fa2b8f1
feat: Remove unnecessary error message in MonitorStepsElement component 2024-05-21 11:50:47 +01:00
Simon Larsen
46a095569d
feat: Update code editor placeholders for CustomJavaScriptCode and SyntheticMonitor
This commit updates the code editor placeholders in the MonitorStep component for the CustomJavaScriptCode and SyntheticMonitor types. The placeholders now provide example code using axios and playwright modules, allowing users to easily understand and customize the code for their specific monitoring needs.
2024-05-21 10:55:29 +01:00
Simon Larsen
cec38190fd
feat: Update fetchDropdownOptions to accept item parameter
This commit modifies the `fetchDropdownOptions` function in the `Field` interface to accept an additional `item` parameter of type `FormValues<TEntity>`. This change allows for more dynamic fetching of dropdown options based on the current form values, improving the flexibility and customization of the form fields.
2024-05-21 10:44:49 +01:00
Simon Larsen
ca746d1436
feat: Update CategoryCheckboxType to make categoryId optional
This commit updates the `CategoryCheckboxType` interface to make the `categoryId` property optional. This change allows for more flexibility when working with category checkboxes, as the `categoryId` is not always required.
2024-05-21 10:20:46 +01:00
snyk-bot
2f6133bba0
fix: upgrade @nivo/line from 0.85.1 to 0.86.0
Snyk has created this PR to upgrade @nivo/line from 0.85.1 to 0.86.0.

See this package in npm:
@nivo/line

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/47001ef1-7b3a-49c2-88cd-8025c56346d0?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-05-21 08:38:52 +00:00
snyk-bot
d1f62d3c66
fix: upgrade @nivo/core from 0.85.1 to 0.86.0
Snyk has created this PR to upgrade @nivo/core from 0.85.1 to 0.86.0.

See this package in npm:
@nivo/core

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/47001ef1-7b3a-49c2-88cd-8025c56346d0?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-05-21 08:38:48 +00:00
Simon Larsen
e333c2d43b
Merge remote-tracking branch 'origin/snyk-upgrade-74c46bacccd4fb74e83b0646ec8750cb' 2024-05-20 15:20:05 +01:00
Simon Larsen
6fc8bc3628
Merge branch 'master' of github.com:OneUptime/oneuptime 2024-05-18 20:33:28 +01:00
Simon Larsen
33e9c8fbe7
refactor: Optimize bulk item deselection logic in Table component 2024-05-18 20:33:11 +01:00
Simon Larsen
6f4da22874
refactor: Update ProgressBar component to support different sizes 2024-05-18 19:53:04 +01:00