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

[Components] clicktime #13379 #15657

Merged
merged 6 commits into from
Feb 26, 2025
Merged

[Components] clicktime #13379 #15657

merged 6 commits into from
Feb 26, 2025

Conversation

lcaresia
Copy link
Collaborator

@lcaresia lcaresia commented Feb 18, 2025

WHY

Summary by CodeRabbit

  • New Features

    • Added new actions to create and manage clients, jobs, and users in ClickTime for enhanced integration.
    • Introduced configurable cost model options (Hourly and Salary) for improved flexibility.
  • Chores

    • Updated the application version to 0.1.0 with streamlined integration components and improved dependency management.
    • Restructured file organization for better accessibility.
    • Removed unnecessary .gitignore file to allow tracking of previously ignored files.

@lcaresia lcaresia self-assigned this Feb 18, 2025
Copy link

vercel bot commented Feb 18, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs-v2 ⬜️ Ignored (Inspect) Visit Preview Feb 25, 2025 8:01pm
pipedream-docs ⬜️ Ignored (Inspect) Feb 25, 2025 8:01pm
pipedream-docs-redirect-do-not-edit ⬜️ Ignored (Inspect) Feb 25, 2025 8:01pm

@lcaresia lcaresia linked an issue Feb 18, 2025 that may be closed by this pull request
Copy link
Contributor

coderabbitai bot commented Feb 18, 2025

Walkthrough

This PR removes the existing .gitignore file from the ClickTime component and replaces the legacy clicktime.app.ts file with a new clicktime.app.mjs module that encapsulates API integration. Three new action modules for creating clients, jobs, and users have been added along with a new constants module for managing cost models. Additionally, the package.json has been updated to reflect changes in the file structure, versioning, and dependencies.

Changes

File(s) Summary
components/clicktime/.gitignore Deleted file that ignored .js, .mjs, and the dist directory.
components/clicktime/actions/create-client/create-client.mjs
components/clicktime/actions/create-job/create-job.mjs
components/clicktime/actions/create-user/create-user.mjs
Added new action modules for creating clients, jobs, and users in ClickTime.
components/clicktime/app/clicktime.app.ts Deleted legacy ClickTime application file.
components/clicktime/clicktime.app.mjs Introduced a new module for ClickTime app integration with property definitions and methods (e.g., createClient, createJob, createUser).
components/clicktime/common/constants.mjs Added constants module defining COST_MODELS ("Hourly" and "Salary").
components/clicktime/package.json Updated version from 0.0.2 to 0.1.0, modified main entry point, and added dependency on @pipedream/platform.

Sequence Diagram(s)

sequenceDiagram
  participant U as User/Trigger
  participant AC as Action Module (create-client/job/user)
  participant App as ClickTime App (clicktime.app.mjs)
  participant API as ClickTime API

  U->>AC: Trigger action to create entity
  AC->>App: Invoke createEntity method with provided data
  App->>API: Send API request with entity details
  API-->>App: Return response with entity ID
  App-->>AC: Return API response
  AC-->>U: Output summary message with new ID
Loading

Possibly related PRs

  • New Components - webscraping_ai #15526: The changes in the main PR regarding the deletion of the .gitignore file are related to the changes in the retrieved PR, which also involves the deletion of a similar .gitignore file, indicating a shared context in managing ignored files.
  • [Components] lessonspace #13378 #15576: The changes in the main PR and the retrieved PR both involve the deletion of .gitignore files that contained rules for ignoring JavaScript files and the dist directory, indicating a direct relationship at the code level.
  • [Components] zulip #13319 #15508: The changes in the main PR, which involve the deletion of a .gitignore file that previously ignored certain JavaScript files and directories, are related to the retrieved PR, which also involves the deletion of a similar .gitignore file in a different component that had the same functionality.

Suggested labels

action, trigger / source

Poem

I hopped through code with ears so keen,
Deleting ignores that once stayed unseen.
New actions bloom in ClickTime’s light,
Clients, jobs, and users taking flight.
A rabbit’s cheer in each byte and line,
Hopping forward in code so divine!
🐰✨

Warning

There were issues while running some tools. Please review the errors and either fix the tool’s configuration or disable the tool if it’s a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

components/clicktime/actions/create-user/create-user.mjs

Oops! Something went wrong! :(

ESLint: 8.57.1

Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'jsonc-eslint-parser' imported from /eslint.config.mjs
at packageResolve (node:internal/modules/esm/resolve:839:9)
at moduleResolve (node:internal/modules/esm/resolve:908:18)
at defaultResolve (node:internal/modules/esm/resolve:1038:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:557:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:525:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:246:38)
at ModuleJob._link (node:internal/modules/esm/module_job:126:49)

components/clicktime/actions/create-job/create-job.mjs

Oops! Something went wrong! :(

ESLint: 8.57.1

Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'jsonc-eslint-parser' imported from /eslint.config.mjs
at packageResolve (node:internal/modules/esm/resolve:839:9)
at moduleResolve (node:internal/modules/esm/resolve:908:18)
at defaultResolve (node:internal/modules/esm/resolve:1038:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:557:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:525:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:246:38)
at ModuleJob._link (node:internal/modules/esm/module_job:126:49)

components/clicktime/clicktime.app.mjs

Oops! Something went wrong! :(

ESLint: 8.57.1

Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'jsonc-eslint-parser' imported from /eslint.config.mjs
at packageResolve (node:internal/modules/esm/resolve:839:9)
at moduleResolve (node:internal/modules/esm/resolve:908:18)
at defaultResolve (node:internal/modules/esm/resolve:1038:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:557:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:525:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:246:38)
at ModuleJob._link (node:internal/modules/esm/module_job:126:49)

  • 1 others
✨ Finishing Touches
  • 📝 Generate Docstrings (Beta)

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR. (Beta)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 4

🧹 Nitpick comments (6)
components/clicktime/actions/create-user/create-user.mjs (1)

9-69: Consider adding validation for required fields.

The props are well-defined with clear descriptions. However, consider adding validation for required fields based on the ClickTime API documentation.

components/clicktime/package.json (1)

15-17: Consider pinning the dependency version.

Using ^3.0.3 for @pipedream/platform allows minor version updates. Consider pinning to exact version for better stability.

   "dependencies": {
-    "@pipedream/platform": "^3.0.3"
+    "@pipedream/platform": "3.0.3"
   }
components/clicktime/actions/create-client/create-client.mjs (1)

9-64: Consider adding validation for required fields.

The props are well-defined with clear descriptions. However, consider adding validation for required fields based on the ClickTime API documentation.

components/clicktime/clicktime.app.mjs (2)

63-67: Standardize date format descriptions.

For consistency, both startDate and endDate should have the same format description. Currently, only endDate includes the format example.

Also applies to: 83-87


140-155: Enhance error handling in _makeRequest method.

Consider adding:

  1. Error handling for network failures
  2. Response type documentation
  3. Retry logic for transient failures

Example implementation:

 async _makeRequest(opts = {}) {
   const {
     $ = this,
     path,
     headers,
     ...otherOpts
   } = opts;
-  return axios($, {
-    ...otherOpts,
-    url: this._baseUrl() + path,
-    headers: {
-      "Authorization": `Token ${this.$auth.api_token}`,
-      ...headers,
-    },
-  });
+  try {
+    return await axios($, {
+      ...otherOpts,
+      url: this._baseUrl() + path,
+      headers: {
+        "Authorization": `Token ${this.$auth.api_token}`,
+        ...headers,
+      },
+      // Add retry configuration
+      retry: {
+        limit: 3,
+        statusCodes: [408, 429, 500, 502, 503, 504],
+      },
+    });
+  } catch (error) {
+    if (error.response) {
+      throw new Error(`ClickTime API error: ${error.response.status} - ${error.response.data.message || error.message}`);
+    }
+    throw new Error(`Network error: ${error.message}`);
+  }
 }
components/clicktime/actions/create-job/create-job.mjs (1)

102-124: Enhance input validation and success message.

Consider these improvements:

  1. Add validation for required fields before making the API call
  2. Include more details in the success message (e.g., job name)
 async run({ $ }) {
+  // Validate required fields
+  if (!this.name || !this.clientId) {
+    throw new Error("Name and Client ID are required fields");
+  }
+
   const response = await this.app.createJob({
     $,
     data: {
       AccountingPackageID: this.accountingPackageId,
       BillingRate: this.billingRate,
       IsActive: this.isActive,
       IsEligibleTimeOffAllocation: this.isEligibleTimeOffAllocation,
       Name: this.name,
       Notes: this.notes,
       ClientID: this.clientId,
       EndDate: this.endDate,
       IncludeInRM: this.includeInRm,
       IsBillable: this.isBillable,
       JobNumber: this.jobNumber,
       StartDate: this.startDate,
       TimeRequiresApproval: this.timeRequiresApproval,
       UseCompanyBillingRate: this.useCompanyBillingRate,
     },
   });
-  $.export("$summary", `Successfully created Job with ID: ${response.data.ID}`);
+  $.export("$summary", `Successfully created Job "${this.name}" with ID: ${response.data.ID}`);
   return response;
 }
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 90af31f and ef466b0.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (8)
  • components/clicktime/.gitignore (0 hunks)
  • components/clicktime/actions/create-client/create-client.mjs (1 hunks)
  • components/clicktime/actions/create-job/create-job.mjs (1 hunks)
  • components/clicktime/actions/create-user/create-user.mjs (1 hunks)
  • components/clicktime/app/clicktime.app.ts (0 hunks)
  • components/clicktime/clicktime.app.mjs (1 hunks)
  • components/clicktime/common/constants.mjs (1 hunks)
  • components/clicktime/package.json (1 hunks)
💤 Files with no reviewable changes (2)
  • components/clicktime/app/clicktime.app.ts
  • components/clicktime/.gitignore
⏰ Context from checks skipped due to timeout of 90000ms (2)
  • GitHub Check: Verify TypeScript components
  • GitHub Check: Publish TypeScript components
🔇 Additional comments (6)
components/clicktime/actions/create-user/create-user.mjs (1)

1-8: LGTM! Clear module metadata and documentation.

The module is well-documented with a clear description and link to the API documentation.

components/clicktime/package.json (1)

3-3: Version bump from 0.0.2 to 0.1.0 indicates breaking changes.

Please ensure that the version bump follows semantic versioning principles and is documented in the changelog.

components/clicktime/actions/create-client/create-client.mjs (1)

1-8: LGTM! Clear module metadata and documentation.

The module is well-documented with a clear description and link to the API documentation.

components/clicktime/clicktime.app.mjs (2)

1-6: LGTM!

The imports and basic app setup are correctly implemented.


29-32: Make description specific to the entity type.

The description "Determines if the entity is eligible for time-off allocation" should specify whether this applies to clients, jobs, or users.

components/clicktime/actions/create-job/create-job.mjs (1)

3-8: LGTM!

The component metadata is well-defined with clear key, name, description, and version.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

♻️ Duplicate comments (1)
components/clicktime/actions/create-user/create-user.mjs (1)

95-112: ⚠️ Potential issue

Add error handling for API calls.

The run method should include error handling for API failures to provide better error messages and prevent unhandled exceptions.

Apply this diff to add error handling:

 async run({ $ }) {
-    const response = await this.app.createUser({
-      $,
-      data: {
-        BillingRate: this.billingRate,
-        IsActive: this.isActive,
-        Name: this.name,
-        StartDate: this.startDate,
-        CostModel: this.costModel,
-        CostRate: this.costRate,
-        Email: this.email,
-        EmploymentTypeID: this.employmentTypeId,
-        Role: this.role,
-      },
-    });
-    $.export("$summary", `Successfully created User with the ID: ${response.data.ID}`);
-    return response;
+    try {
+      const response = await this.app.createUser({
+        $,
+        data: {
+          BillingRate: this.billingRate,
+          IsActive: this.isActive,
+          Name: this.name,
+          StartDate: this.startDate,
+          CostModel: this.costModel,
+          CostRate: this.costRate,
+          Email: this.email,
+          EmploymentTypeID: this.employmentTypeId,
+          Role: this.role,
+        },
+      });
+      $.export("$summary", `Successfully created User with the ID: ${response.data.ID}`);
+      return response;
+    } catch (error) {
+      throw new Error(`Failed to create user: ${error.message}`);
+    }
🧹 Nitpick comments (5)
components/clicktime/clicktime.app.mjs (5)

16-17: Make descriptions specific to each entity type.

The description is generic and refers to "user, job or client". In each component that uses this property, the description should be specific to the entity type.

    billingRate: {
      type: "string",
      label: "Billing Rate",
-     description: "The billing rate for the user, job or client",
+     description: "The billing rate for the entity",
    },

26-27: Make descriptions specific to each entity type.

The description is generic and refers to "user, job or client". In each component that uses this property, the description should be specific to the entity type.

    isActive: {
      type: "boolean",
      label: "Is Active",
-     description: "Whether the user, job or client is currently active",
+     description: "Whether the entity is currently active",
    },

36-37: Make descriptions specific to each entity type.

The description is generic and refers to "user, job or client". In each component that uses this property, the description should be specific to the entity type.

    name: {
      type: "string",
      label: "Name",
-     description: "The name of the user, job or client",
+     description: "The name of the entity",
    },

41-42: Make descriptions specific to each entity type.

The description is generic and refers to "user, job or client". In each component that uses this property, the description should be specific to the entity type.

    notes: {
      type: "string",
      label: "Notes",
-     description: "Additional information related to the user, job or client",
+     description: "Additional information related to the entity",
    },

103-104: Clarify the description for startDate.

The description for startDate indicates it's for "user or job" but doesn't mention client, even though it might be used in client creation as well. It should either be generalized or specify all entity types where it applies.

    startDate: {
      type: "string",
      label: "Start Date",
-     description: "Start date of the user or job, i.e.: `2020-01-01`",
+     description: "Start date of the entity, i.e.: `2020-01-01`",
    },
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between ef466b0 and cf76d48.

📒 Files selected for processing (4)
  • components/clicktime/actions/create-client/create-client.mjs (1 hunks)
  • components/clicktime/actions/create-job/create-job.mjs (1 hunks)
  • components/clicktime/actions/create-user/create-user.mjs (1 hunks)
  • components/clicktime/clicktime.app.mjs (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • components/clicktime/actions/create-client/create-client.mjs
⏰ Context from checks skipped due to timeout of 90000ms (4)
  • GitHub Check: Publish TypeScript components
  • GitHub Check: pnpm publish
  • GitHub Check: Lint Code Base
  • GitHub Check: Verify TypeScript components
🔇 Additional comments (1)
components/clicktime/actions/create-job/create-job.mjs (1)

71-80: Make clientId optional according to API documentation.

According to the documentation, only jobNumber and name are required fields for creating a job. The clientId property should be marked as optional.

    clientId: {
      propDefinition: [
        app,
        "clientId",
        (c) => ({
          offset: c.offset,
          limit: c.limit,
        }),
      ],
+     optional: true,
    },

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (3)
components/clicktime/clicktime.app.mjs (3)

188-193: Add detailed parameters documentation for pagination.

The getClients method supports pagination, but the documentation doesn't explain the available parameters. Consider adding JSDoc comments to explain the expected parameters like limit and offset.

  async getClients(args = {}) {
+   /**
+    * Retrieve a list of clients
+    * @param {Object} args - Request arguments
+    * @param {Object} [args.params] - Query parameters
+    * @param {number} [args.params.limit] - Maximum number of results to return
+    * @param {number} [args.params.offset] - Number of results to skip for pagination
+    * @returns {Promise<Object>} API response with client data
+    */
    return this._makeRequest({
      path: "/Clients",
      ...args,
    });
  },

194-199: Add detailed parameters documentation for the getEmploymentTypes method.

Similar to getClients, this method would benefit from JSDoc comments to document the pagination parameters.

  async getEmploymentTypes(args = {}) {
+   /**
+    * Retrieve a list of employment types
+    * @param {Object} args - Request arguments
+    * @param {Object} [args.params] - Query parameters
+    * @param {number} [args.params.limit] - Maximum number of results to return
+    * @param {number} [args.params.offset] - Number of results to skip for pagination
+    * @returns {Promise<Object>} API response with employment type data
+    */
    return this._makeRequest({
      path: "/EmploymentTypes",
      ...args,
    });
  },

167-173: Add method documentation for create operations.

The create methods (createClient, createJob, createUser) lack documentation about the expected payload structure. Adding JSDoc comments would help users understand what data is required for each creation operation.

For example, for createClient:

  async createClient(args = {}) {
+   /**
+    * Create a new client in ClickTime
+    * @param {Object} args - Request arguments
+    * @param {Object} [args.data] - Client data
+    * @param {string} [args.data.Name] - Client name
+    * @param {string} [args.data.ClientNumber] - Client number
+    * @param {boolean} [args.data.IsActive] - Whether the client is active
+    * @param {string} [args.data.BillingRate] - Client billing rate
+    * @returns {Promise<Object>} API response with created client data
+    */
    return this._makeRequest({
      path: "/Clients",
      method: "post",
      ...args,
    });
  },

Also applies to: 174-180, 181-187

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between cf76d48 and a850018.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (4)
  • components/clicktime/actions/create-job/create-job.mjs (1 hunks)
  • components/clicktime/actions/create-user/create-user.mjs (1 hunks)
  • components/clicktime/clicktime.app.mjs (1 hunks)
  • components/clicktime/common/constants.mjs (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (3)
  • components/clicktime/common/constants.mjs
  • components/clicktime/actions/create-user/create-user.mjs
  • components/clicktime/actions/create-job/create-job.mjs
⏰ Context from checks skipped due to timeout of 90000ms (4)
  • GitHub Check: pnpm publish
  • GitHub Check: Verify TypeScript components
  • GitHub Check: Lint Code Base
  • GitHub Check: Publish TypeScript components
🔇 Additional comments (3)
components/clicktime/clicktime.app.mjs (3)

13-17: Improve property descriptions to be entity-specific.

The billingRate description is generic, referring to "user, job or client". As mentioned in previous reviews, descriptions should be defined separately for each component to clearly reflect the specific resource type.


23-27: Make entity descriptions more specific.

Generic descriptions for isActive, name, and notes refer to "user, job or client". These should be made specific to the entity type they apply to, as previously recommended in code reviews.

Also applies to: 33-37, 38-42


151-166: Add error handling to the _makeRequest method.

The current implementation doesn't handle API errors, which makes debugging difficult when requests fail. This was flagged in previous reviews as well.

  async _makeRequest(opts = {}) {
    const {
      $ = this,
      path,
      headers,
      ...otherOpts
    } = opts;
-   return axios($, {
-     ...otherOpts,
-     url: this._baseUrl() + path,
-     headers: {
-       "Authorization": `Token ${this.$auth.api_token}`,
-       ...headers,
-     },
-   });
+   try {
+     return await axios($, {
+       ...otherOpts,
+       url: this._baseUrl() + path,
+       headers: {
+         "Authorization": `Token ${this.$auth.api_token}`,
+         ...headers,
+       },
+     });
+   } catch (error) {
+     const statusCode = error.response?.status;
+     const statusText = error.response?.statusText;
+     const errorData = error.response?.data;
+     throw new Error(`ClickTime API error (${statusCode} ${statusText}): ${JSON.stringify(errorData) || error.message}`);
+   }
  },

Copy link
Collaborator

@michelle0927 michelle0927 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vunguyenhung vunguyenhung merged commit dbbb7d4 into master Feb 26, 2025
11 checks passed
@vunguyenhung vunguyenhung deleted the issue-13379 branch February 26, 2025 03:09
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.

[Components] clicktime
4 participants