Skip to content

Commit 61b123c

Browse files
refator: update dashboard tour messages
1 parent b675254 commit 61b123c

File tree

2 files changed

+220
-1
lines changed

2 files changed

+220
-1
lines changed

apps/OpenSign/src/layout/HomeLayout.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ const HomeLayout = () => {
9797
...resArr,
9898
{
9999
selector: '[data-tut="reactourLast"]',
100-
content: `You are good to go`,
100+
content: `You are ready to start using OpenSign! If you need support feel free to contact us.`,
101101
position: "top"
102102
// style: { backgroundColor: "#abd4d2" },
103103
}
Lines changed: 219 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,219 @@
1+
/**
2+
*
3+
* @param {Parse} Parse
4+
*/
5+
exports.up = async Parse => {
6+
// TODO: set className here
7+
const className = 'w_dashboard';
8+
const dashboard = new Parse.Query(className);
9+
const updatedashboard = await dashboard.get('35KBoSgoAK');
10+
updatedashboard.set('rows', [
11+
{
12+
columns: [
13+
{
14+
colxs: '12',
15+
colmd: '6',
16+
collg: '6',
17+
widget: {
18+
type: 'Card',
19+
icon: 'fas fa-signature',
20+
bgColor: '#f0058e',
21+
label: 'Need your Signature',
22+
description: null,
23+
data: {
24+
id: 'e04ee9dc-932d-6b80-0202-703fd154eb74',
25+
queryType: '',
26+
class: 'contracts_Document',
27+
query:
28+
'where={"$and":[{"AuditTrail.UserPtr":{"$ne":{"__type":"Pointer","className": "contracts_Users","objectId":"#objectId#"}}},{"AuditTrail.Activity":{"$ne":"Signed"}}],"Signers":{"$in":[{"__type":"Pointer","className":"contracts_Users","objectId":"#objectId#"}]},"IsDeclined":{"$ne":true},"IsCompleted":{"$ne":true},"Type":{"$ne":"Folder"},"Placeholders":{"$ne":null},"ExpiryDate":{"#*gt":{"__type":"#Date#","iso":"#today#"}}}&count=1',
29+
key: 'count',
30+
Redirect_type: 'Report',
31+
Redirect_id: '4Hhwbp482K',
32+
tourSection: 'tourcard1',
33+
tourMessage:
34+
'Clicking on this card will take you to the list of documents awaiting your review.',
35+
},
36+
},
37+
},
38+
{
39+
colxs: '12',
40+
colmd: '6',
41+
collg: '6',
42+
widget: {
43+
type: 'Card',
44+
icon: 'fas fa-sign-out-alt',
45+
bgColor: '#g0058e',
46+
label: 'Out for signatures',
47+
description: null,
48+
data: {
49+
id: 'c1935cc0-28d4-3d73-b72a-8c1e3d18a17f',
50+
queryType: '',
51+
class: 'contracts_Document',
52+
query:
53+
'where={"Type":{"#*ne":"Folder"},"Signers":{"#*exists":true,"#*ne":[]},"Placeholders":{"#*ne":null},"IsCompleted":{"#*ne":true},"IsDeclined":{"#*ne":true},"IsArchive":{"#*ne":true},"CreatedBy":{"__type":"Pointer","className":"_User","objectId":"#UserId.objectId#"},"ExpiryDate":{"#*gt":{"__type":"#Date#","iso":"#today#"}}}&count=1',
54+
key: 'count',
55+
Redirect_type: 'Report',
56+
Redirect_id: '1MwEuxLEkF',
57+
tourSection: 'tourcard2',
58+
tourMessage:
59+
'Clicking on this card will take you to a list of documents awaiting signature.',
60+
},
61+
},
62+
},
63+
{
64+
colxs: '12',
65+
colmd: '6',
66+
collg: '6',
67+
widget: {
68+
type: 'report',
69+
reportId: '5Go51Q7T8r',
70+
data: {
71+
tourSection: 'tourreport1',
72+
tourMessage: 'This is a list of documents that are waiting for your signature.',
73+
},
74+
},
75+
},
76+
{
77+
colxs: '12',
78+
colmd: '6',
79+
collg: '6',
80+
widget: {
81+
type: 'report',
82+
reportId: 'd9k3UfYHBc',
83+
data: {
84+
tourSection: 'tourreport2',
85+
tourMessage:
86+
"This is a list of documents you've sent to other parties for signature.",
87+
},
88+
},
89+
},
90+
{
91+
colxs: '12',
92+
colmd: '12',
93+
collg: '12',
94+
widget: {
95+
type: 'report',
96+
reportId: 'kC5mfynCi4',
97+
data: {
98+
tourSection: 'tourreport3',
99+
tourMessage:
100+
'This are documents you have started but have not finalized for sending.',
101+
},
102+
},
103+
},
104+
],
105+
},
106+
]);
107+
108+
return updatedashboard.save();
109+
};
110+
111+
/**
112+
*
113+
* @param {Parse} Parse
114+
*/
115+
exports.down = async Parse => {
116+
const className = 'w_dashboard';
117+
const dashboard = new Parse.Query(className);
118+
const revertdashboard = await dashboard.get('35KBoSgoAK');
119+
revertdashboard.set('rows', [
120+
{
121+
columns: [
122+
{
123+
colxs: '12',
124+
colmd: '6',
125+
collg: '6',
126+
widget: {
127+
type: 'Card',
128+
icon: 'fas fa-signature',
129+
bgColor: '#f0058e',
130+
label: 'Need your Signature',
131+
description: null,
132+
data: {
133+
id: 'e04ee9dc-932d-6b80-0202-703fd154eb74',
134+
queryType: '',
135+
class: 'contracts_Document',
136+
query:
137+
'where={"$and":[{"AuditTrail.UserPtr":{"$ne":{"__type":"Pointer","className": "contracts_Users","objectId":"#objectId#"}}},{"AuditTrail.Activity":{"$ne":"Signed"}}],"Signers":{"$in":[{"__type":"Pointer","className":"contracts_Users","objectId":"#objectId#"}]},"IsDeclined":{"$ne":true},"IsCompleted":{"$ne":true},"Type":{"$ne":"Folder"},"Placeholders":{"$ne":null},"ExpiryDate":{"#*gt":{"__type":"#Date#","iso":"#today#"}}}&count=1',
138+
key: 'count',
139+
Redirect_type: 'Report',
140+
Redirect_id: '4Hhwbp482K',
141+
tourSection: 'tourcard1',
142+
tourMessage:
143+
'This card shows the aggregate count of documents that are awaiting your signature. Clicking on this card will seamlessly take you to the detailed list of such documents for your review and action.',
144+
},
145+
},
146+
},
147+
{
148+
colxs: '12',
149+
colmd: '6',
150+
collg: '6',
151+
widget: {
152+
type: 'Card',
153+
icon: 'fas fa-sign-out-alt',
154+
bgColor: '#g0058e',
155+
label: 'Out for signatures',
156+
description: null,
157+
data: {
158+
id: 'c1935cc0-28d4-3d73-b72a-8c1e3d18a17f',
159+
queryType: '',
160+
class: 'contracts_Document',
161+
query:
162+
'where={"Type":{"#*ne":"Folder"},"Signers":{"#*exists":true,"#*ne":[]},"Placeholders":{"#*ne":null},"IsCompleted":{"#*ne":true},"IsDeclined":{"#*ne":true},"IsArchive":{"#*ne":true},"CreatedBy":{"__type":"Pointer","className":"_User","objectId":"#UserId.objectId#"},"ExpiryDate":{"#*gt":{"__type":"#Date#","iso":"#today#"}}}&count=1',
163+
key: 'count',
164+
Redirect_type: 'Report',
165+
Redirect_id: '1MwEuxLEkF',
166+
tourSection: 'tourcard2',
167+
tourMessage:
168+
"This card indicates the total number of documents you've sent out for signatures. A single click on this card will navigate you to a comprehensive list of these documents, allowing you to monitor their status.",
169+
},
170+
},
171+
},
172+
{
173+
colxs: '12',
174+
colmd: '6',
175+
collg: '6',
176+
widget: {
177+
type: 'report',
178+
reportId: '5Go51Q7T8r',
179+
data: {
180+
tourSection: 'tourreport1',
181+
tourMessage:
182+
'Here lies a curated list of documents that are pending your signature. These are requests from other users that require your immediate attention for completion.',
183+
},
184+
},
185+
},
186+
{
187+
colxs: '12',
188+
colmd: '6',
189+
collg: '6',
190+
widget: {
191+
type: 'report',
192+
reportId: 'd9k3UfYHBc',
193+
data: {
194+
tourSection: 'tourreport2',
195+
tourMessage:
196+
"This area displays all the documents you've dispatched for signatures from other parties. It serves as a real-time tracker for documents pending external approval.",
197+
},
198+
},
199+
},
200+
{
201+
colxs: '12',
202+
colmd: '12',
203+
collg: '12',
204+
widget: {
205+
type: 'report',
206+
reportId: 'kC5mfynCi4',
207+
data: {
208+
tourSection: 'tourreport3',
209+
tourMessage:
210+
"In this section, you'll find your draft documents awaiting completion. These are the documents you've initiated but haven't yet finalized for sending.",
211+
},
212+
},
213+
},
214+
],
215+
},
216+
]);
217+
218+
return revertdashboard.save();
219+
};

0 commit comments

Comments
 (0)