Skip to content

Commit 49fee44

Browse files
Merge pull request #2226 from frappe/develop
chore(release): dev to main
2 parents 5cd2a3f + 332a9f1 commit 49fee44

54 files changed

Lines changed: 460 additions & 1310 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/helpers/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,5 @@ bench setup requirements --dev
5050
wait $wkpid
5151

5252
bench start &> bench_run_logs.txt &
53-
CI=Yes bench build --app frappe &
53+
CI=Yes bench build &
5454
bench --site test_site reinstall --yes

.github/workflows/server-tests.yml

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -114,33 +114,9 @@ jobs:
114114
FRAPPE_BRANCH: ${{ github.event.inputs.branch }}
115115

116116
- name: Run Tests
117-
run: 'cd ~/frappe-bench/ && bench --site test_site run-tests --app helpdesk --coverage'
117+
run: 'cd ~/frappe-bench/ && bench --site test_site run-tests --app helpdesk'
118118
env:
119119
TYPE: server
120120
CI_BUILD_ID: ${{ github.run_id }}
121121
ORCHESTRATOR_URL: http://test-orchestrator.frappe.io
122122

123-
- name: Upload coverage data
124-
uses: actions/upload-artifact@v3
125-
with:
126-
name: coverage
127-
path: /home/runner/frappe-bench/sites/coverage.xml
128-
129-
coverage:
130-
name: Coverage
131-
needs: test
132-
runs-on: ubuntu-latest
133-
steps:
134-
- name: Clone
135-
uses: actions/checkout@v2
136-
137-
- name: Download artifacts
138-
uses: actions/download-artifact@v3
139-
140-
- name: Upload coverage data
141-
uses: codecov/codecov-action@v2
142-
with:
143-
name: MariaDB
144-
token: ${{ secrets.CODECOV_TOKEN }}
145-
fail_ci_if_error: true
146-
verbose: true

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ share/python-wheels/
3232

3333
helpdesk/docs/current
3434
helpdesk/public/desk
35+
helpdesk/public/frontend
3536
helpdesk/public/node_modules
3637
helpdesk/www/helpdesk/index.html
3738
desk/components.d.ts

desk/index.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,6 @@
206206
<div id="popovers"></div>
207207
<script type="module" src="/src/main.js"></script>
208208
<script>
209-
window.csrf_token = "{{ csrf_token }}";
210-
window.site_name = "{{ site_name }}";
211209
window.favicon = "{{ favicon }}";
212210

213211
document.querySelectorAll("link[rel='icon']").forEach((link) => {

desk/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@
44
"version": "0.0.0",
55
"scripts": {
66
"dev": "vite",
7-
"preview": "vite preview",
8-
"build": "vite build --base=/assets/helpdesk/desk/ && yarn copy-html-entry",
9-
"serve": "vite preview",
10-
"copy-html-entry": "cp ../helpdesk/public/desk/index.html ../helpdesk/www/helpdesk/index.html"
7+
"build": "vite build",
8+
"serve": "vite preview"
119
},
1210
"dependencies": {
1311
"@headlessui/vue": "^1.7.22",
@@ -25,7 +23,7 @@
2523
"autoprefixer": "^10.4.13",
2624
"dayjs": "^1.11.7",
2725
"echarts": "^5.4.1",
28-
"frappe-ui": "0.1.105",
26+
"frappe-ui": "0.1.119",
2927
"lodash": "^4.17.21",
3028
"lucide-static": "^0.276.0",
3129
"mime": "^3.0.0",
@@ -50,6 +48,8 @@
5048
"cheerio": "1.0.0-rc.12"
5149
},
5250
"devDependencies": {
53-
"vite-plugin-pwa": "^0.20.5"
51+
"vite-plugin-pwa": "^0.20.5",
52+
"typescript": "^5.0.2",
53+
"prettier": "2.8.4"
5454
}
5555
}

desk/src/components/CannedResponseSelectorModal.vue

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
<template>
2-
<Dialog v-model="show" :options="{ title: 'Canned Responses', size: '4xl' }">
2+
<Dialog
3+
v-model="show"
4+
:options="{
5+
title: 'Canned Responses',
6+
size: '4xl',
7+
}"
8+
>
39
<template #body-content>
410
<TextInput
511
ref="searchInput"
@@ -40,6 +46,17 @@
4046
</div>
4147
</div>
4248
</div>
49+
<div class="flex justify-end mt-4">
50+
<Button
51+
label="New Canned Response"
52+
@click="
53+
() => {
54+
$router.push('/canned-responses#new');
55+
templates.data = null;
56+
}
57+
"
58+
/>
59+
</div>
4360
</template>
4461
</Dialog>
4562
</template>

desk/src/components/CommentBox.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@
5050
<div class="rounded bg-gray-50 px-4 py-3">
5151
<TextEditor
5252
ref="editorRef"
53-
:editor-class="'prose-f shrink text-p-sm transition-all duration-300 ease-in-out block w-full content'"
53+
:editor-class="[
54+
'prose-f shrink text-p-sm transition-all duration-300 ease-in-out block w-full content',
55+
getFontFamily(_content),
56+
]"
5457
:content="_content"
5558
:editable="editable"
5659
:bubble-menu="textEditorMenuButtons"
@@ -106,6 +109,7 @@ import {
106109
createToast,
107110
textEditorMenuButtons,
108111
isContentEmpty,
112+
getFontFamily,
109113
} from "@/utils";
110114
import { AttachmentItem } from "@/components";
111115
import { useAuthStore } from "@/stores/auth";

desk/src/components/CommentTextEditor.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
'prose-sm max-w-none',
77
editable &&
88
'min-h-[7rem] mx-10 max-h-[50vh] overflow-y-auto border-t py-3',
9+
getFontFamily(newComment),
910
]"
1011
:content="newComment"
1112
:starterkit-options="{ heading: { levels: [2, 3, 4, 5, 6] } }"
@@ -107,7 +108,7 @@ import { AttachmentItem } from "@/components/";
107108
import { useAgentStore } from "@/stores/agent";
108109
import { useStorage } from "@vueuse/core";
109110
import { PreserveVideoControls } from "@/tiptap-extensions";
110-
import { isContentEmpty, textEditorMenuButtons } from "@/utils";
111+
import { isContentEmpty, textEditorMenuButtons, getFontFamily } from "@/utils";
111112
112113
const { agents: agentsList } = useAgentStore();
113114
onMounted(() => {

desk/src/components/EmailArea.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
@click="
3535
emit('reply', {
3636
content: content,
37-
to: to && sender.name,
37+
to: sender?.name ?? to,
3838
})
3939
"
4040
>

desk/src/components/EmailContent.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
<script setup>
1010
import { ref, watch } from "vue";
11+
import { getFontFamily } from "@/utils";
1112
1213
const props = defineProps({
1314
content: {
@@ -230,7 +231,7 @@ watch(iframeRef, (iframe) => {
230231
const emailContent =
231232
iframe.contentWindow.document.querySelector(".email-content");
232233
let parent = emailContent.closest("html");
233-
234+
emailContent.classList.add(getFontFamily(_content.value));
234235
iframe.style.height = parent.offsetHeight + 1 + "px";
235236
236237
let replyCollapsers = emailContent.querySelectorAll(".replyCollapser");

0 commit comments

Comments
 (0)