Commit Graph

28513 Commits

Author SHA1 Message Date
Simon Larsen
a06a0f1d16
refactor: Update import statements for TimezoneUtil in multiple files 2024-06-17 21:01:44 +01:00
Simon Larsen
139ff2d638
refactor: Add user timezone support to login and user profile
This commit adds support for user timezones in the login and user profile functionality. It updates the LoginUtil and User classes to include methods for setting and retrieving the user's timezone. Additionally, the UserTimezoneInit component in the Dashboard module is updated to display and allow the user to update their timezone. This change improves the user experience by providing accurate timezone information and allows for better handling of time-related functionality throughout the application.
2024-06-17 17:27:34 +01:00
Simon Larsen
7be603ef08
refactor: Update import statements for TimezoneUtil in multiple files 2024-06-17 17:22:00 +01:00
Simon Larsen
d23548f984
refactor: Update error message in OneUptimeDate class
This commit updates the error message in the `asDateForDatabaseQuery` method of the `OneUptimeDate` class. It now includes the `date.toString()` value to provide more information about the invalid date. This change improves error handling and debugging capabilities.
2024-06-17 17:09:17 +01:00
Simon Larsen
3573e59634
refactor: Update getCurrentTimezoneString method in Date.ts
This commit refactors the getCurrentTimezoneString method in the Date.ts file. It replaces the usage of moment.tz.guess() with this.getCurrentTimezone() to improve code readability and maintainability. Additionally, it adds a check to prepend "GMT" to the zone abbreviation if it starts with a "+" or "-" sign. This change ensures consistent formatting of the timezone string returned by the method.
2024-06-17 16:23:49 +01:00
Simon Larsen
c4e4e7e488
refactor: Update import statements for TimezoneUtil in Monitor.ts
This commit updates the import statements in the Monitor.ts file. It changes the import statement for the TimezoneUtil module to import from "Common/Types/Timezone" instead of the previous import path. This change ensures that the correct module is imported, improving the accuracy and reliability of the code.
2024-06-17 16:14:08 +01:00
Simon Larsen
be3e8447ab
refactor: Add data-testid attributes to Toast component
This commit adds data-testid attributes to the Toast component in order to improve testability. The "toast" element, "toast-icon" element, "title" element, "description" element, and "close-button" element now have corresponding data-testid attributes. This change allows for more precise targeting of elements in automated tests, enhancing the reliability and accuracy of the test suite.
2024-06-17 16:07:04 +01:00
Simon Larsen
2615e39c19
refactor: Update import statements for TimezoneUtil in multiple files 2024-06-17 15:58:30 +01:00
Simon Larsen
49b6550581
refactor: Update import statements for TimezoneUtil in UserProfile/Index.tsx 2024-06-17 15:57:32 +01:00
Simon Larsen
e870efc3c4
refactor: Remove unused code and update import statements 2024-06-17 15:33:47 +01:00
Simon Larsen
38862adf5a
refactor: Remove unused code and update import statements
This commit removes unused code and updates import statements in multiple files. It removes the unused TimezoneCode enum from the Common/Types/TimezoneCode.ts file and updates the import statements in the affected files to import Timezone from Common/Types/Timezone instead of TimezoneCode. These changes improve the accuracy and reliability of the code.
2024-06-17 13:43:09 +01:00
Simon Larsen
06b92e2745
feat: Add subscriber timezones functionality to SubscriberSettings 2024-06-17 13:18:44 +01:00
Simon Larsen
1a8e0682c7
feat: Add subscriber timezones functionality to SubscriberSettings
This commit adds the functionality to select subscriber timezones in the SubscriberSettings component. It introduces a new field, "Subscriber Timezones", which allows subscribers to choose their preferred timezones for receiving notifications. The selected timezones are displayed when subscribers receive notifications. This feature enhances the user experience by providing localized time information.

Refactor import statements for TimezoneUtil in UserProfile/Index.tsx

This commit updates the import statements in the UserProfile/Index.tsx file to import TimezoneUtil from "Common/Types/Timezone" instead of "CommonUI/src/Utils/Timezone". This change ensures that the correct module is imported, improving the accuracy and reliability of the code.

Refactor import statements for TimezoneUtil in UserProfile/Index.tsx

This commit updates the import statements in the UserProfile/Index.tsx file to import TimezoneUtil from "Common/Types/Timezone" instead of "CommonUI/src/Utils/Timezone". This change ensures that the correct module is imported, improving the accuracy and reliability of the code.

Refactor import statements for TimezoneUtil in UserProfile/Index.tsx

This commit updates the import statements in the UserProfile/Index.tsx file to import TimezoneUtil from "Common/Types/Timezone" instead of "CommonUI/src/Utils/Timezone". This change ensures that the correct module is imported, improving the accuracy and reliability of the code.

Refactor import statements for TimezoneUtil in UserProfile/Index.tsx

This commit updates the import statements in the UserProfile/Index.tsx file to import TimezoneUtil from "Common/Types/Timezone" instead of "CommonUI/src/Utils/Timezone". This change ensures that the correct module is imported, improving the accuracy and reliability of the code.

refactor: Update retries value in playwright.config.ts

This commit updates the retries value in the playwright.config.ts file to a fixed value of 3. This change ensures that the tests are retried up to 3 times, improving the reliability of the test suite.

refactor: Update import statements for jest in test files

This commit updates the import statements for jest in multiple test files to use the correct module name "jest" instead of "globals". This change ensures that the jest module is imported correctly, improving the accuracy and reliability of the test setup.

refactor: Update docker-compose command in test.e2e.yaml

This commit updates the docker-compose command in the test.e2e.yaml file to remove the duplicate `e2e` service name. This change improves the clarity and efficiency of the script.

fix: job dependencies

Merge branch 'release' of github.com:OneUptime/oneuptime into release

refactor: Clear user data and remove cookies on authentication error
2024-06-17 11:03:37 +01:00
Simon Larsen
e0189356d5
refactor: Remove TimezoneCode enum and update import statements
This commit removes the TimezoneCode enum from the Common/Types/TimezoneCode.ts file. The enum is no longer needed and can be safely deleted. Additionally, it updates the import statements in the affected files to import Timezone from Common/Types/Timezone instead of TimezoneCode. This change ensures that the correct module is imported and improves the accuracy and reliability of the code.
2024-06-17 10:56:59 +01:00
Simon Larsen
dad07b9f80
refactor: Update import statements for TimezoneUtil in UserProfile/Index.tsx
This commit updates the import statements in the UserProfile/Index.tsx file. It changes the import statement for TimezoneUtil from "CommonUI/src/Utils/Timezone" to "Common/Types/Timezone". This change ensures that the correct module is imported, improving the accuracy and reliability of the code.
2024-06-17 10:47:23 +01:00
Simon Larsen
8d59710306
refactor: Update import statements for TimezoneUtil in UserProfile/Index.tsx
This commit updates the import statements in the UserProfile/Index.tsx file. It changes the import statement for TimezoneUtil from "CommonUI/src/Utils/Timezone" to "Common/Types/Timezone". This change ensures that the correct module is imported, improving the accuracy and reliability of the code.
2024-06-17 10:42:43 +01:00
Simon Larsen
5e9227eb4f
refactor: Add TimezoneUtil to UserProfile/Index.tsx
This commit refactors the import statements in the UserProfile/Index.tsx file. It updates the import statement for TimezoneUtil from "CommonUI/src/Utils/Timezone" to "Common/Types/Timezone". This change ensures that the correct module is imported, improving the accuracy and reliability of the code.
2024-06-17 10:41:04 +01:00
Simon Larsen
24d9219a62
refactor: Update retries value in playwright.config.ts
This commit updates the retries value in the playwright.config.ts file. The previous value was determined based on the environment variable "CI", but it has been changed to a fixed value of 3. This change ensures that the tests are retried up to 3 times, improving the reliability of the test suite.
2024-06-14 19:38:03 +01:00
Simon Larsen
6ed588d7aa
refactor: Update import statements for jest in test files
This commit updates the import statements for jest in multiple test files. The previous import statements used "globals" as the module name, which is incorrect. The correct module name is "jest". This change ensures that the jest module is imported correctly, improving the accuracy and reliability of the test setup.
2024-06-14 18:54:53 +01:00
Simon Larsen
17c1862eac
```text
refactor: Update docker-compose command in test.e2e.yaml

This commit updates the docker-compose command in the test.e2e.yaml file. The previous command included the `e2e` service name twice, which is unnecessary. The updated command removes the duplicate service name, improving the clarity and efficiency of the script.
2024-06-14 18:34:11 +01:00
Simon Larsen
37b1846363
fix job dependencies 2024-06-14 18:21:51 +01:00
Simon Larsen
da3e6bc3af
Merge branch 'release' of github.com:OneUptime/oneuptime into release 2024-06-14 18:02:55 +01:00
Simon Larsen
a35ea2ba66
refactor: Clear user data and remove cookies on authentication error 2024-06-14 18:02:36 +01:00
Simon Larsen
b2fa2e40f4
refactor: Clear user data and remove cookies on authentication error
This commit clears the user data and removes cookies when an authentication error occurs. This ensures that the user is logged out and any stored data is removed, preventing unauthorized access. The code change is made in the API.ts file.
2024-06-14 18:01:51 +01:00
Simon Larsen
babecb5170
chore: Update axios and posthog-js dependencies
This commit updates the axios and posthog-js dependencies in the package-lock.json file. The axios dependency is updated from version 1.7.1 to 1.7.2, and the posthog-js dependency is updated from version 1.131.4 to 1.133.0. This update ensures that the latest stable versions of these dependencies are used, improving the functionality and security of the application.
2024-06-14 17:35:33 +01:00
Simon Larsen
6e0e643337
refactor: Update import statements for jest in test files
This commit updates the import statements for jest in multiple test files. The previous import statements used "globals" as the module name, which is incorrect. The correct module name is "jest". This change ensures that the jest module is imported correctly, improving the accuracy and reliability of the test setup.
2024-06-14 17:01:06 +01:00
Simon Larsen
2a59faa6b4
refactor: Update import statements for jest in test files
This commit updates the import statements for jest in multiple test files. The previous import statements used "globals" as the module name, which is incorrect. The correct module name is "jest". This change ensures that the jest module is imported correctly, improving the accuracy and reliability of the test setup.
2024-06-14 16:54:53 +01:00
Simon Larsen
9d7d44afda
refactor: Update import statements for jest in test files
This commit updates the import statements for jest in multiple test files. The previous import statements used "globals" as the module name, which is incorrect. The correct module name is "jest". This change ensures that the jest module is imported correctly, improving the accuracy and reliability of the test setup.
2024-06-14 16:42:55 +01:00
Simon Larsen
8f1e67da3a
refactor: Remove ignore for all JavaScript files in eslint configuration 2024-06-14 15:44:31 +01:00
Simon Larsen
c09f863d58
refactor: Remove unused imports and update eslint configuration 2024-06-14 15:42:45 +01:00
Simon Larsen
3c8c2a3feb
refactor: Update import statements for jest in test files
This commit updates the import statements for jest in multiple test files. The previous import statements used "globals" as the module name, which is incorrect. The correct module name is "jest". This change ensures that the jest module is imported correctly, improving the accuracy and reliability of the test setup.
2024-06-14 15:42:33 +01:00
Simon Larsen
4c4169e245
refactor: Update import statements for jest in test files 2024-06-14 14:24:45 +01:00
Simon Larsen
34c5cb1e94
refactor: Update import statements for jest in test files 2024-06-14 14:20:24 +01:00
Simon Larsen
f5fca46e5b
refactor: Update import statements for jest in test files
This commit updates the import statements for jest in multiple test files. The previous import statements used "globals" as the module name, which is incorrect. The correct module name is "jest". This change ensures that the jest module is imported correctly, improving the accuracy and reliability of the test setup.
2024-06-14 14:16:56 +01:00
Simon Larsen
48e3c24c6e
refactor: Update import statement for jest in setupTest.js
This commit updates the import statement for jest in the setupTest.js file. The previous import statement used "globals" as the module name, which is incorrect. The correct module name is "jest". This change ensures that the jest module is imported correctly, improving the accuracy and reliability of the test setup.
2024-06-14 14:11:32 +01:00
Simon Larsen
e9c94876c0
refactor: Update import statement for jest in setupTest.js
This commit updates the import statement for jest in the setupTest.js file. The previous import statement used "globals" as the module name, which is incorrect. The correct module name is "jest". This change ensures that the jest module is imported correctly, improving the accuracy and reliability of the test setup.
2024-06-14 14:06:41 +01:00
Simon Larsen
fcd6c8ea7d
refactor: Remove unused imports and update eslint configuration 2024-06-14 13:50:52 +01:00
Simon Larsen
81726ce7b2
refactor: Update import statement for jest in setupTest.js 2024-06-14 13:40:33 +01:00
Simon Larsen
6349c60bdb
refactor: Update import statement for jest in setupTest.js
This commit updates the import statement for jest in the setupTest.js file. The previous import statement used "globals" as the module name, which is incorrect. The correct module name is "jest". This change ensures that the jest module is imported correctly, improving the accuracy and reliability of the test setup.
2024-06-14 13:01:38 +01:00
Simon Larsen
74cf119444
refactor: Remove unused globals.jquery from eslint configuration 2024-06-14 12:36:11 +01:00
Simon Larsen
ba6ac2e32e
refactor: Update symbol type to use lowercase 'symbol' in ColumnAccessControl files 2024-06-14 12:34:56 +01:00
Simon Larsen
1498656a43
refactor: Update symbol type to use lowercase 'symbol' in ColumnAccessControl files 2024-06-14 12:15:36 +01:00
Simon Larsen
70a2a3993b
refactor: Update symbol type to use lowercase 'symbol' in ColumnAccessControl files 2024-06-14 12:09:53 +01:00
Simon Larsen
5152d5de12
refactor: Remove @trivago/prettier-plugin-sort-imports and update eslint configuration
This commit removes the "@trivago/prettier-plugin-sort-imports" plugin from the ".prettierrc.json" file and updates the eslint configuration in the "package.json" file. The plugin was removed because it is no longer needed and caused conflicts with the updated eslint configuration. This change improves the codebase by simplifying the prettier configuration and ensuring compatibility with the updated eslint rules.
2024-06-14 12:07:16 +01:00
Simon Larsen
2999e539b3
refactor: Update symbol type to use lowercase 'symbol' in ColumnAccessControl files 2024-06-14 12:01:14 +01:00
Simon Larsen
8ce432256c
refactor: Update symbol type to use lowercase 'symbol' in ColumnAccessControl files
This commit updates the symbol type from 'Symbol' to 'symbol' in the ColumnAccessControl files. The use of 'symbol' aligns with the TypeScript convention for symbol types. This change improves code consistency and readability.
2024-06-14 11:53:27 +01:00
Simon Larsen
ddbfbac802
refactor: Remove unused files and update eslint configuration 2024-06-14 11:51:38 +01:00
Simon Larsen
1d6a7ee1fa
feat: Add timezone dropdown to user profile page
This commit adds a new dropdown component for selecting the timezone on the user profile page. The dropdown options are populated using the `TimezoneCode` enum from the `Common/Types/TimezoneCode.ts` file. Users can now select their timezone, which will be used for all date and time related notifications sent to them. This enhancement improves the user experience by providing a convenient way to set the timezone preference.
2024-06-14 11:21:25 +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
36a13b60fe
refactor: Update notification subjects for incidents and announcements 2024-06-14 10:20:57 +01:00