Skip to content

Conversation

@kanwarujjaval
Copy link
Member

No description provided.

@kanwarujjaval kanwarujjaval requested a review from Copilot July 5, 2025 05:40
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR merges the latest changes from master into the next branch.

  • Replaces a static test-id attribute with a dynamic data-test-id binding in the Vue template
  • Normalizes JSDoc @type annotation syntax in localization.js and common.js

Reviewed Changes

Copilot reviewed 3 out of 20 changed files in this pull request and generated 1 comment.

File Description
frontend/express/public/javascripts/countly/vue/templates/content/content-header.html Switches test-id to a dynamic :data-test-id and updates its value
api/utils/localization.js Converts /** @type(import(...)) */ comments to /** @type {import(...)} */
api/utils/common.js Adds missing @ in @typedef tags and wraps @type imports in braces
Comments suppressed due to low confidence (1)

frontend/express/public/javascripts/countly/vue/templates/content/content-header.html:92

  • Updating from test-id to data-test-id may break existing test selectors. Please update any corresponding test queries or selectors to use the new data-test-id attribute.
                :data-test-id="'journey-' + (toggleLocalValue ? 'Pause' : 'Publish').toLowerCase() + '-button'"

toggleLocalValue ? 'el-button--warning' : 'el-button--success'
]"
test-id="journey-publish"
:data-test-id="'journey-' + (toggleLocalValue ? 'Pause' : 'Publish').toLowerCase() + '-button'"
Copy link

Copilot AI Jul 5, 2025

Choose a reason for hiding this comment

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

[nitpick] The inline expression for data-test-id is a bit complex. Consider moving this logic into a computed property (e.g., computedTestId) to improve readability and make future updates easier.

Copilot uses AI. Check for mistakes.
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.

5 participants