feat(help): added find bug button for easy navigation (#5214)

Signed-off-by: Abhiuday <contact.abhiuday@gmail.com>
This commit is contained in:
Abhiuday Gupta 2024-04-09 17:33:53 +05:30 committed by GitHub
parent 09db410985
commit e363ca4aa4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 20 additions and 12 deletions

View File

@ -1,5 +1,6 @@
{
"string": {
"ContactUs": "Contact us"
"ContactUs": "Contact us",
"ReportBug": "Report a Bug?"
}
}
}

View File

@ -1,5 +1,6 @@
{
"string": {
"ContactUs": "Contacta con Nosotros"
"ContactUs": "Contacta con Nosotros",
"ReportBug": "Reportar un error?"
}
}
}

View File

@ -1,5 +1,6 @@
{
"string": {
"ContactUs": "Contate-nos"
"ContactUs": "Contate-nos",
"ReportBug": "Reportar um erro?"
}
}
}

View File

@ -1,5 +1,6 @@
{
"string": {
"ContactUs": "Связаться с нами"
"ContactUs": "Связаться с нами",
"ReportBug": "Сообщить об ошибке?"
}
}
}

View File

@ -22,6 +22,7 @@ export * from './types'
export { deleteSupportConversation, updateSupportConversation } from './utils'
export const supportLink = 'https://join.slack.com/t/hulycommunity/shared_invite/zt-2cyrevz8g-AGqEDZNsujbn4wHOWd7myg'
export const reportBugLink = 'https://github.com/hcengineering/platform/issues/new'
/**
* @public
@ -40,6 +41,7 @@ export default plugin(supportId, {
Support: '' as Asset
},
string: {
ContactUs: '' as IntlString
ContactUs: '' as IntlString,
ReportBug: '' as IntlString
}
})

View File

@ -15,8 +15,7 @@
<script lang="ts">
import { getClient } from '@hcengineering/presentation'
import setting, { settingId } from '@hcengineering/setting'
import support, { supportLink } from '@hcengineering/support'
import { getSupportClient } from '@hcengineering/support-resources'
import support, { supportLink, reportBugLink } from '@hcengineering/support'
import {
Button,
capitalizeFirstLetter,
@ -172,7 +171,7 @@
{#if jj !== 0}
<div class="ml-1 mr-1 lower"><Label label={view.string.Then} /></div>
{/if}
{#each k as kk, j}
{#each k as kk}
<div class="flex-center text-sm key-box">
{capitalizeFirstLetter(kk.trim())}
</div>
@ -188,6 +187,9 @@
</Scroller>
{/if}
<div class="footer">
<a href={reportBugLink} target="_blank">
<Button id="report-a-bug" kind={'primary'} label={support.string.ReportBug} stopPropagation={false} />
</a>
<a href={supportLink}>
<Button
id="contact-us"