File tree Expand file tree Collapse file tree 9 files changed +59
-17
lines changed Expand file tree Collapse file tree 9 files changed +59
-17
lines changed Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ # Load the environment variables
4
+ source " $( pwd) " /proposals/env.sh
5
+
6
+ # build and get batch_id, evidence:
7
+ # dfx deploy ic_message_frontend --ic --by-proposal
8
+
9
+ export BLOB=" $( didc encode --format blob ' (record {batch_id=48:nat; evidence=blob "\3f\e4\76\71\58\03\88\29\22\6f\84\f5\24\64\99\55\26\e7\53\15\d6\98\51\6d\55\34\25\79\49\2b\19\3e"})' ) "
10
+
11
+ quill sns make-proposal --canister-ids-file ./sns_canister_ids.json --pem-file $PROPOSAL_PEM_FILE $PROPOSAL_NEURON_ID --proposal " (
12
+ record {
13
+ title = \" Execute commit_proposed_batch() to release ic_message_frontend v2.9.6\" ;
14
+ url = \" https://dMsg.net/\" ;
15
+ summary = \" This proposal executes commit_proposed_batch() on 2fvu6-tqaaa-aaaap-akksa-cai to release ic_message_frontend v2.9.6.\n\n1. chore: improve dMsg app.\" ;
16
+ action = opt variant {
17
+ ExecuteGenericNervousSystemFunction = record {
18
+ function_id = 1100 : nat64;
19
+ payload = ${BLOB} ;
20
+ }
21
+ };
22
+ }
23
+ )" > proposal-message.json
24
+
25
+ # quill send proposal-message.json
Original file line number Diff line number Diff line change 84
84
"test" : " vitest run"
85
85
},
86
86
"type" : " module" ,
87
- "version" : " 2.9.5 "
87
+ "version" : " 2.9.6 "
88
88
}
Original file line number Diff line number Diff line change 89
89
myID = myState .id
90
90
const accounts = await authStore .nameIdentityAPI .get_my_accounts ()
91
91
hasNameAccounts = !! accounts .length
92
- myAccounts = []
93
92
if (! hasNameAccounts ) {
93
+ myAccounts = []
94
94
return
95
95
}
96
+
96
97
const srcId = authStore .srcIdentity ?.getPrincipal ()!
98
+ const srcUser = await myState .tryLoadUser (srcId )
99
+ if (! srcUser ) {
100
+ // should not happen
101
+ return
102
+ }
103
+
104
+ const users = await myState .batchLoadUsersInfo (
105
+ accounts .map ((account ) => account .account )
106
+ )
97
107
98
- const users = await myState .batchLoadUsersInfo ([
99
- srcId ,
100
- ... accounts .map ((account ) => account .account )
101
- ])
102
108
const userInfos = users .map (toDisplayUserInfo )
109
+ const rt = []
103
110
for (const ac of accounts ) {
104
111
const _id = ac .account .toText ()
105
112
const info = userInfos .find (
110
117
info .username = ac .name
111
118
}
112
119
info .isNameAccount = true
113
- myAccounts .push (info )
120
+ rt .push (info )
114
121
} else {
115
- myAccounts .push ({
122
+ rt .push ({
116
123
_id ,
117
124
username: ac .name ,
118
125
name: ac .name ,
121
128
})
122
129
}
123
130
}
124
- myAccounts .push (userInfos [0 ] as DisplayUserInfoEx )
131
+
132
+ rt .push (toDisplayUserInfo (srcUser ) as DisplayUserInfoEx )
133
+ myAccounts = rt
125
134
}
126
135
127
136
onMount (() => {
193
202
fill =" fill-white"
194
203
width =" w-8"
195
204
/>
196
- <span class =" truncate" >
205
+ <span class =" max-w-44 truncate" >
197
206
{info .name + (info .username ? ' @' + info .username : ' ' )}
198
207
</span >
199
208
{#if info .isNameAccount && myID !== info ._id }
Original file line number Diff line number Diff line change 284
284
{/ snippet }
285
285
286
286
<ModalCard {parent }>
287
- <div class =" !mt-0 text-center text-xl font-bold" >Wallet</div >
287
+ <div class =" !mt-0 text-center text-xl font-bold" >dMsg Wallet</div >
288
288
<div class =" !mt-6 flex flex-col gap-3 rounded-xl bg-surface-500/20 px-4 py-3" >
289
289
<TextClipboardPopup
290
290
textLable =" Address:"
Original file line number Diff line number Diff line change 680
680
681
681
<div class =" flex flex-col gap-4" >
682
682
<p >
683
- A <b >username permanent account</b > is a fixed account generated from
684
- the username that does not change. This account supports adding multiple
685
- delegate accounts, allowing multiple users to use it simultaneously,
683
+ A <b >username permanent account</b > is a standalone fixed account generated
684
+ from the username that does not change. This account supports adding
685
+ multiple delegate accounts, allowing multiple users to use it simultaneously,
686
686
making it ideal for team collaboration.
687
687
</p >
688
688
{#if delegators .length > 0 }
817
817
class =" flex flex-row items-center space-x-2"
818
818
href =" https://dmsg.net/PANDA"
819
819
>
820
- <Avatar src =" /_assets/logo.svg" fill =" fill-white" width =" w-8" />
820
+ <Avatar
821
+ src =" /_assets/logo_panda.png"
822
+ fill =" fill-white"
823
+ width =" w-8"
824
+ />
821
825
<span class =" ml-1 truncate" >ICPanda</span >
822
826
<span class =" text-neutral-500" >@PANDA</span >
823
827
</a >
Original file line number Diff line number Diff line change 1
1
const src = globalThis . location ?. href || ''
2
2
3
- export const APP_VERSION = '2.9.5 '
3
+ export const APP_VERSION = '2.9.6 '
4
4
export const IS_LOCAL = src . includes ( 'localhost' ) || src . includes ( '127.0.0.1' )
5
5
export const ENV = IS_LOCAL ? 'local' : 'ic'
6
6
export const APP_ORIGIN = IS_LOCAL
Original file line number Diff line number Diff line change 412
412
href =" {APP_ORIGIN }/PANDA"
413
413
>
414
414
<div class =" flex flex-row items-center space-x-2 max-md:max-w-72" >
415
- <Avatar src =" /_assets/logo.svg" fill =" fill-white" width =" w-10" />
415
+ <Avatar
416
+ src =" /_assets/logo_panda.png"
417
+ fill =" fill-white"
418
+ width =" w-10"
419
+ />
416
420
<span class =" ml-1 truncate text-neutral-200" >ICPanda</span >
417
421
<span class =" " >@PANDA</span >
418
422
<p class =" truncate max-md:hidden" >| Ask me anything</p >
You can’t perform that action at this time.
0 commit comments