Skip to content

Master 13.7 #1311

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

Merged
merged 45 commits into from
Apr 9, 2025
Merged

Master 13.7 #1311

merged 45 commits into from
Apr 9, 2025

Conversation

panwaranuj01
Copy link
Contributor

@panwaranuj01 panwaranuj01 commented Apr 9, 2025

What do you want to achieve?

PR Checklist

  • I have tested it locally and all functionalities are working fine.
  • I have compared it with mocks and all design elements are the same.
  • I have tested it in IE Browser.

How was the code tested?

What new thing you came across while writing this code?

In case you fixed a bug then please describe the root cause of it?

Screenshot

NOTE: Make sure you're comparing your branch with the correct base branch

Summary by CodeRabbit

  • New Features

    • Enhanced welcome messaging with a new “Talk to Human” option.
  • Refactor / Style

    • Streamlined code formatting and improved consistency across the codebase for enhanced maintainability.
  • Documentation

    • Updated documentation by adding a Code Formatting Guide and troubleshooting tips.
  • Chores

    • Upgraded dependency versions and adjusted commit hook configurations to refine the development workflow.

panwaranuj01 and others added 30 commits February 12, 2025 12:26
TDH-:1705 Getting Error while sending Voice note and deleting Voice note
TDH-1811 -: Fix the agent status issue
 allowing  html code in text message
CUS-908 Email validation error
Cus-926 Business hour improvements
Tdh 1776 Restrict Human Handover
@panwaranuj01 panwaranuj01 requested a review from kandpal025 April 9, 2025 11:22
Copy link

github-actions bot commented Apr 9, 2025

Warnings
⚠️ ❗ Your PR has over 700 lines of code, please consider breaking it down so we can effectively review it. 👍
⚠️ Please add the JIRA issue key to the PR title (e.g. FW-123)
Messages
📖 New Files in this PR: - .husky/pre-commit , webplugin/js/app/applozic.chat-6.2.8.min.js
📖 🎉 The PR removed 38221 lines. 👏

Generated by 🚫 dangerJS against 96a3abb

@panwaranuj01 panwaranuj01 merged commit 4e43773 into master Apr 9, 2025
5 of 6 checks passed
Copy link
Contributor

coderabbitai bot commented Apr 9, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

This pull request primarily standardizes code formatting and configuration consistency across the repository. It removes deprecated hooks and replaces them with updated ones, revises Prettier and linting settings, and updates dependency versions and scripts in package.json. Additionally, numerous JavaScript, SCSS, JSON, and configuration files have been reformatted—often consolidating multi‐line expressions into single lines—to improve readability without modifying underlying functionality.

Changes

File(s) Change Summary
.github/hooks/pre-commit, .husky/.gitignore Deleted the legacy pre-commit hook and Git ignore settings.
.husky/pre-commit Added a new pre-commit hook that sources Husky and executes npm run prettify-commit.
.prettierignore, .prettierrc Updated ignore patterns and added new formatting rules (e.g., printWidth, overrides for JSON).
.vscode/launch.json, .vscode/settings.json Adjusted indentation and whitespace for consistent formatting.
package.json, custom-bot-server-code-sample/package.json, dangerfile.js Revised scripts (removal of pre-/postpublish, update to prettify-commit command) and upgraded dependencies (husky from 5.0.9 to ^7.0.0, addition of lint-staged) along with minor formatting corrections.
firebase.json, server/README.md, server/config/config-env.js, server/src/pluginClient.js Cosmetic JSON and documentation formatting tweaks; added a Code Formatting Guide and Troubleshooting section to README.
Files in rich-messages-code-sample/dialogflow-fulfillment/ Consolidated multi-line string literals and function definitions to single line(s) for improved consistency.
Files in webplugin/ (JS, SCSS, templates, etc.) Wide-ranging reformatting: converted double quotes to single, removed unnecessary line breaks, simplified conditionals, and updated style values to standardize code style.
Various configuration files (e.g., serve.json, terser.config.js) Reorganized and reformatted settings for clarity and consistency.

Sequence Diagram(s)

sequenceDiagram
    participant Dev as Developer
    participant Git as Git Commit Process
    participant Hook as Husky Pre-commit Hook
    participant NPM as NPM Process

    Dev->>Git: Initiate commit
    Git->>Hook: Trigger pre-commit hook
    Hook->>Hook: Source husky.sh script
    Hook->>NPM: Execute "npm run prettify-commit"
    NPM-->>Hook: Return formatting result
    Hook-->>Git: Return status (pass/fail)
Loading

Possibly related PRs

Suggested reviewers

  • devashishmamgain

📜 Recent review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between dc3b98f and 96a3abb.

⛔ Files ignored due to path filters (4)
  • package-lock.json is excluded by !**/package-lock.json
  • webplugin/js/app/applozic.chat-6.2.5.min.js is excluded by !**/*.min.js
  • webplugin/js/app/applozic.chat-6.2.6.min.js is excluded by !**/*.min.js
  • webplugin/js/app/applozic.chat-6.2.8.min.js is excluded by !**/*.min.js
📒 Files selected for processing (79)
  • .github/hooks/pre-commit (0 hunks)
  • .husky/.gitignore (0 hunks)
  • .husky/pre-commit (1 hunks)
  • .prettierignore (1 hunks)
  • .prettierrc (1 hunks)
  • .vscode/launch.json (1 hunks)
  • .vscode/settings.json (1 hunks)
  • custom-bot-server-code-sample/package.json (1 hunks)
  • dangerfile.js (3 hunks)
  • firebase.json (2 hunks)
  • package.json (4 hunks)
  • rich-messages-code-sample/amazon-lex-lambda/form-using-custom-payload.js (1 hunks)
  • rich-messages-code-sample/dialogflow-fulfillment/buttons-using-custom-payload.js (1 hunks)
  • rich-messages-code-sample/dialogflow-fulfillment/cards-using-custom-payload.js (1 hunks)
  • rich-messages-code-sample/dialogflow-fulfillment/cards.js (1 hunks)
  • rich-messages-code-sample/dialogflow-fulfillment/form-using-custom-payload.js (1 hunks)
  • rich-messages-code-sample/dialogflow-fulfillment/images-using-custom-payload.js (1 hunks)
  • rich-messages-code-sample/dialogflow-fulfillment/list-using-custom-payload.js (1 hunks)
  • rich-messages-code-sample/dialogflow-fulfillment/suggestions.js (1 hunks)
  • rich-messages-code-sample/kompose-webhook/app.js (1 hunks)
  • server/README.md (2 hunks)
  • server/config/config-env.js (8 hunks)
  • server/src/pluginClient.js (1 hunks)
  • webplugin/bundleFiles.js (1 hunks)
  • webplugin/controller.js (2 hunks)
  • webplugin/css/app/km-login-model.css (3 hunks)
  • webplugin/css/app/km-rich-message.css (5 hunks)
  • webplugin/css/app/km-sidebox.css (2 hunks)
  • webplugin/css/app/km-voice-note.css (1 hunks)
  • webplugin/development.js (7 hunks)
  • webplugin/gulpfile.js (10 hunks)
  • webplugin/js/app/apz-client-1.0.js (16 hunks)
  • webplugin/js/app/components/answer-feedback-service.js (7 hunks)
  • webplugin/js/app/components/custom-element.js (1 hunks)
  • webplugin/js/app/components/rating-service.js (3 hunks)
  • webplugin/js/app/components/typing-service.js (4 hunks)
  • webplugin/js/app/constants/km-allowed-tags.js (1 hunks)
  • webplugin/js/app/conversation/gen-ai-service.js (1 hunks)
  • webplugin/js/app/conversation/km-conversation-service.js (1 hunks)
  • webplugin/js/app/events/applozic-event-handler.js (3 hunks)
  • webplugin/js/app/km-attachment-service.js (1 hunks)
  • webplugin/js/app/km-message-markup-1.0.js (3 hunks)
  • webplugin/js/app/km-nav-bar.js (3 hunks)
  • webplugin/js/app/km-post-initialization.js (2 hunks)
  • webplugin/js/app/km-rich-text-event-handler.js (27 hunks)
  • webplugin/js/app/km-richtext-markup-1.0.js (30 hunks)
  • webplugin/js/app/km-utils.js (9 hunks)
  • webplugin/js/app/km-widget-custom-events.js (3 hunks)
  • webplugin/js/app/kommunicate-client.js (5 hunks)
  • webplugin/js/app/kommunicate-ui.js (64 hunks)
  • webplugin/js/app/kommunicate.custom.theme.js (4 hunks)
  • webplugin/js/app/kommunicate.js (28 hunks)
  • webplugin/js/app/kommunicateCommons.js (5 hunks)
  • webplugin/js/app/labels/default-labels.js (10 hunks)
  • webplugin/js/app/mck-app.js (26 hunks)
  • webplugin/js/app/mck-ringtone-service.js (1 hunks)
  • webplugin/js/app/media/media-service.js (14 hunks)
  • webplugin/js/app/media/typing-area-dom-service.js (4 hunks)
  • webplugin/js/app/sentry-8.39.0.js (8 hunks)
  • webplugin/js/app/storage/cookie-service.js (2 hunks)
  • webplugin/js/app/storage/session-service.js (1 hunks)
  • webplugin/js/app/storage/storage-service.js (2 hunks)
  • webplugin/js/app/zendesk-chat-service.js (3 hunks)
  • webplugin/knowledgebase/common.js (3 hunks)
  • webplugin/knowledgebase/helpdocs.js (3 hunks)
  • webplugin/knowledgebase/kb.js (8 hunks)
  • webplugin/plugin.js (6 hunks)
  • webplugin/scss/abstracts/_mixin.scss (1 hunks)
  • webplugin/scss/components/_km-chat-popup.scss (3 hunks)
  • webplugin/scss/components/_km-csat.scss (1 hunks)
  • webplugin/scss/components/_km-dropdown-options.scss (1 hunks)
  • webplugin/scss/components/_km-faq-card.scss (1 hunks)
  • webplugin/scss/components/_km-login-modal.scss (1 hunks)
  • webplugin/scss/components/_km-poweredby.scss (1 hunks)
  • webplugin/scss/components/_km-rating.scss (3 hunks)
  • webplugin/scss/components/_km-rtl.scss (3 hunks)
  • webplugin/scss/style.scss (1 hunks)
  • webplugin/template/serve.json (1 hunks)
  • webplugin/terser.config.js (1 hunks)
✨ Finishing Touches
  • 📝 Generate Docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ 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.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai plan to trigger planning for file edits and PR creation.
  • @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.

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.

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.

6 participants