Improve Integration Cards (#643)

* Add integration action components and update integration JSON files

- Introduced new action components for Email, Slack, Discord, Webhook, and Google Sheets integrations, enhancing the user interface for managing these integrations.
- Updated the `integrations.json` files to include `actions_file_name` for each integration, linking them to their respective action components.
- Improved the `GoogleSheetsIntegrationActions.vue` component by replacing direct provider information display with a badge for better UI consistency.

These changes aim to streamline integration management and improve the overall user experience.

* Minor UI fixes

---------

Co-authored-by: Julien Nahum <julien@nahum.net>
This commit is contained in:
Chirag Chhatrala
2024-12-18 17:37:19 +05:30
committed by GitHub
parent 49c2d6bf04
commit c1ee072b71
9 changed files with 235 additions and 9 deletions

12
client/lib/utils.js vendored
View File

@@ -109,3 +109,15 @@ export const customDomainUsed = function () {
return host !== appDomain && getDomain(host) !== appDomain
}
export const mentionAsText = (content) => {
if (!content) return ''
// Parse the content and style mentions
return content.replace(
/<span\s+mention-field-id="([^"]+)"\s+mention-field-name="([^"]+)"[^>]*>([^<]+)<\/span>/g,
(match, fieldId, fieldName, text) => {
return `${text}`
}
)
}