Merge pull request #1832 from RoboSats/hightligh-coodinator-and-peer-rating

Hightlight Coordinator and peer rating
This commit is contained in:
KoalaSat
2025-03-28 16:16:38 +00:00
committed by GitHub
19 changed files with 53 additions and 43 deletions

View File

@ -91,9 +91,7 @@ export const SuccessfulPrompt = ({
>
<Grid item xs={12}>
<Typography variant='body2' align='center'>
{t('Rate your peer {{peer_nick}}', {
peer_nick: order.is_maker ? order.taker_nick : order.maker_nick,
})}
{t('Rate your peer')} <b>{order.is_maker ? order.taker_nick : order.maker_nick}</b>
</Typography>
</Grid>
<Grid item>
@ -109,9 +107,7 @@ export const SuccessfulPrompt = ({
</Grid>
<Grid item xs={12}>
<Typography variant='body2' align='center'>
{t('Rate your host {{coordinator}}', {
coordinator: federation.getCoordinator(order.shortAlias)?.longAlias,
})}{' '}
{t('Rate your host')} <b>{federation.getCoordinator(order.shortAlias)?.longAlias}</b>{' '}
<Typography variant='button' align='center'>
{t('BETA')}
</Typography>
@ -186,7 +182,7 @@ export const SuccessfulPrompt = ({
)}
{/* SHOW TXID IF USER RECEIVES ONCHAIN */}
<Collapse in={Boolean(order.txid)}>
<Collapse in={Boolean(order.txid)} sx={{ marginTop: 0.5 }}>
<Alert severity='success'>
<AlertTitle>
{t('Your TXID')}
@ -221,7 +217,10 @@ export const SuccessfulPrompt = ({
</Alert>
</Collapse>
<Collapse in={order.tx_queued && order.address !== undefined && order.txid == null}>
<Collapse
in={order.tx_queued && order.address !== undefined && order.txid == null}
sx={{ marginTop: 0.5 }}
>
<Alert severity='info'>
<AlertTitle>
<CircularProgress sx={{ maxWidth: '0.8em', maxHeight: '0.8em' }} />
@ -255,7 +254,13 @@ export const SuccessfulPrompt = ({
</Alert>
</Collapse>
<Grid item container alignItems='center' justifyContent='space-evenly'>
<Grid
item
container
alignItems='center'
justifyContent='space-evenly'
sx={{ marginTop: 0.5 }}
>
<Grid item>
<Button color='primary' variant='outlined' onClick={onClickStartAgain}>
<RocketLaunch sx={{ width: '0.8em' }} />
@ -281,6 +286,7 @@ export const SuccessfulPrompt = ({
{order.platform_summary != null ? (
<Grid item>
<TradeSummary
robotNick={order.ur_nick}
isMaker={order.is_maker}
makerHashId={order.maker_hash_id}
takerHashId={order.taker_hash_id}

View File

@ -40,6 +40,7 @@ import { systemClient } from '../../services/System';
import { type UseAppStoreType, AppContext } from '../../contexts/AppContext';
interface Props {
robotNick: string;
isMaker: boolean;
makerHashId: string;
takerHashId: string;
@ -52,6 +53,7 @@ interface Props {
}
const TradeSummary = ({
robotNick,
isMaker,
makerHashId,
takerHashId,
@ -79,6 +81,8 @@ const TradeSummary = ({
coordinator: coordinatorLongAlias,
order_id: orderId,
currency: currencyCode,
robot: robotNick,
role: isMaker ? 'maker' : 'taker',
maker: makerSummary,
taker: takerSummary,
platform: platformSummary,

View File

@ -676,8 +676,8 @@
"RoboSats is trying to pay your lightning invoice. Remember that lightning nodes must be online in order to receive payments.": "RoboSats està intentant pagar la teva factura de Lightning. Recorda que els nodes Lightning han d'estar en línia per rebre pagaments.",
"#82": "Phrases in components/TradeBox/Prompts/Successful.tsx",
"BETA": "BETA",
"Rate your host {{coordinator}}": "Rate your host {{coordinator}}",
"Rate your peer {{peer_nick}}": "Rate your peer {{peer_nick}}",
"Rate your host": "Rate your host",
"Rate your peer": "Rate your peer",
"Renew": "Renovar",
"RoboSats gets better with more liquidity and users. Tell a bitcoiner friend about Robosats!": "RoboSats millora amb més usuaris i liquiditat. Ensenya-li RoboSats a un amic bitcoiner!",
"Sending coins to": "Enviant monedes a",

View File

@ -676,8 +676,8 @@
"RoboSats is trying to pay your lightning invoice. Remember that lightning nodes must be online in order to receive payments.": "RoboSats se snaží zaplatit tvůj lightning invoice. Nezapomeň, že lightning nody musí být online, aby mohl přijímat platby.",
"#82": "Phrases in components/TradeBox/Prompts/Successful.tsx",
"BETA": "BETA",
"Rate your host {{coordinator}}": "Rate your host {{coordinator}}",
"Rate your peer {{peer_nick}}": "Rate your peer {{peer_nick}}",
"Rate your host": "Rate your host",
"Rate your peer": "Rate your peer",
"Renew": "Renew",
"RoboSats gets better with more liquidity and users. Tell a bitcoiner friend about Robosats!": "RoboSats bude lepší s větší likviditou a uživateli. Pověz svým přátelům o Robosats!",
"Sending coins to": "Sending coins to",

View File

@ -676,8 +676,8 @@
"RoboSats is trying to pay your lightning invoice. Remember that lightning nodes must be online in order to receive payments.": "RoboSats versucht deine Lightning-Invoice zu bezahlen. Denk daran, dass deine Lightning-Node erreichbar sein muss, um die Zahlung zu erhalten.",
"#82": "Phrases in components/TradeBox/Prompts/Successful.tsx",
"BETA": "BETA",
"Rate your host {{coordinator}}": "Rate your host {{coordinator}}",
"Rate your peer {{peer_nick}}": "Rate your peer {{peer_nick}}",
"Rate your host": "Rate your host",
"Rate your peer": "Rate your peer",
"Renew": "Renew",
"RoboSats gets better with more liquidity and users. Tell a bitcoiner friend about Robosats!": "RoboSats wird noch besser mit mehr Nutzern und Liquidität. Erzähl einem Bitcoin-Freund von uns!",
"Sending coins to": "Sending coins to",

View File

@ -676,8 +676,8 @@
"RoboSats is trying to pay your lightning invoice. Remember that lightning nodes must be online in order to receive payments.": "RoboSats is trying to pay your lightning invoice. Remember that lightning nodes must be online in order to receive payments.",
"#82": "Phrases in components/TradeBox/Prompts/Successful.tsx",
"BETA": "BETA",
"Rate your host {{coordinator}}": "Rate your host {{coordinator}}",
"Rate your peer {{peer_nick}}": "Rate your peer {{peer_nick}}",
"Rate your host": "Rate your host",
"Rate your peer": "Rate your peer",
"Renew": "Renew",
"RoboSats gets better with more liquidity and users. Tell a bitcoiner friend about Robosats!": "RoboSats gets better with more liquidity and users. Tell a bitcoiner friend about Robosats!",
"Sending coins to": "Sending coins to",

View File

@ -676,8 +676,8 @@
"RoboSats is trying to pay your lightning invoice. Remember that lightning nodes must be online in order to receive payments.": "RoboSats está intentando pagar tu factura de Lightning. Recuerda que los nodos Lightning deben estar en línea para recibir pagos.",
"#82": "Phrases in components/TradeBox/Prompts/Successful.tsx",
"BETA": "BETA",
"Rate your host {{coordinator}}": "Rate your host {{coordinator}}",
"Rate your peer {{peer_nick}}": "Rate your peer {{peer_nick}}",
"Rate your host": "Rate your host",
"Rate your peer": "Rate your peer",
"Renew": "Renovar",
"RoboSats gets better with more liquidity and users. Tell a bitcoiner friend about Robosats!": "RoboSats mejora con más liquidez y usuarios. ¡Háblale a un amigo bitcoiner sobre RoboSats!",
"Sending coins to": "Sending coins to",

View File

@ -676,8 +676,8 @@
"RoboSats is trying to pay your lightning invoice. Remember that lightning nodes must be online in order to receive payments.": "RoboSats zure Lightning faktura ordaintzen saiatzen ari da. Gogoratu lightning nodoak online egon behar direla ordainketak jaso ahal izateko.",
"#82": "Phrases in components/TradeBox/Prompts/Successful.tsx",
"BETA": "BETA",
"Rate your host {{coordinator}}": "Rate your host {{coordinator}}",
"Rate your peer {{peer_nick}}": "Rate your peer {{peer_nick}}",
"Rate your host": "Rate your host",
"Rate your peer": "Rate your peer",
"Renew": "Renew",
"RoboSats gets better with more liquidity and users. Tell a bitcoiner friend about Robosats!": "RoboSats hobetu egiten da likidezia eta erabiltzaile gehiagorekin. Aipatu Robosats lagun bitcoiner bati!",
"Sending coins to": "Sending coins to",

View File

@ -676,8 +676,8 @@
"RoboSats is trying to pay your lightning invoice. Remember that lightning nodes must be online in order to receive payments.": "RoboSats tente de payer votre facture lightning. Rappelez-vous que les nœuds lightning doivent être en ligne pour recevoir des paiements.",
"#82": "Phrases in components/TradeBox/Prompts/Successful.tsx",
"BETA": "BETA",
"Rate your host {{coordinator}}": "Rate your host {{coordinator}}",
"Rate your peer {{peer_nick}}": "Rate your peer {{peer_nick}}",
"Rate your host": "Rate your host",
"Rate your peer": "Rate your peer",
"Renew": "Renouveler",
"RoboSats gets better with more liquidity and users. Tell a bitcoiner friend about Robosats!": "RoboSats s'améliore avec plus de liquidité et d'utilisateurs. Parlez de Robosats à un ami bitcoiner!",
"Sending coins to": "Envoi coins à",

View File

@ -676,8 +676,8 @@
"RoboSats is trying to pay your lightning invoice. Remember that lightning nodes must be online in order to receive payments.": "RoboSats sta provando a pagare la tua fattura lightning. Ricorda che i nodi lightning devono essere online per ricevere pagamenti.",
"#82": "Phrases in components/TradeBox/Prompts/Successful.tsx",
"BETA": "BETA",
"Rate your host {{coordinator}}": "Rate your host {{coordinator}}",
"Rate your peer {{peer_nick}}": "Rate your peer {{peer_nick}}",
"Rate your host": "Rate your host",
"Rate your peer": "Rate your peer",
"Renew": "Rinnova",
"RoboSats gets better with more liquidity and users. Tell a bitcoiner friend about Robosats!": "RoboSats migliora se ha più liquidità ed utenti. Parla di Robosats ai tuoi amici bitcoiner!",
"Sending coins to": "Invio monete a",

View File

@ -676,8 +676,8 @@
"RoboSats is trying to pay your lightning invoice. Remember that lightning nodes must be online in order to receive payments.": "RoboSatsはあなたのライトニングインボイスを支払おうとしています。支払いを受け取るには、ライトニングードがオンラインである必要があることを忘れないでください。",
"#82": "Phrases in components/TradeBox/Prompts/Successful.tsx",
"BETA": "BETA",
"Rate your host {{coordinator}}": "Rate your host {{coordinator}}",
"Rate your peer {{peer_nick}}": "Rate your peer {{peer_nick}}",
"Rate your host": "Rate your host",
"Rate your peer": "Rate your peer",
"Renew": "更新する",
"RoboSats gets better with more liquidity and users. Tell a bitcoiner friend about Robosats!": "RoboSatsはより多くの流動性とユーザーでより良くなります。ビットコイナーのお友達にRoboSatsについて話してください",
"Sending coins to": "コインを送信する先",

View File

@ -676,8 +676,8 @@
"RoboSats is trying to pay your lightning invoice. Remember that lightning nodes must be online in order to receive payments.": "RoboSats próbuje zapłacić fakturę za błyskawicę. Pamiętaj, że węzły pioruna muszą być online, aby otrzymywać płatności.",
"#82": "Phrases in components/TradeBox/Prompts/Successful.tsx",
"BETA": "BETA",
"Rate your host {{coordinator}}": "Rate your host {{coordinator}}",
"Rate your peer {{peer_nick}}": "Rate your peer {{peer_nick}}",
"Rate your host": "Rate your host",
"Rate your peer": "Rate your peer",
"Renew": "Renew",
"RoboSats gets better with more liquidity and users. Tell a bitcoiner friend about Robosats!": "RoboSats staje się lepszy dzięki większej płynności i użytkownikom. Powiedz znajomemu bitcoinerowi o Robosats!",
"Sending coins to": "Sending coins to",

View File

@ -676,8 +676,8 @@
"RoboSats is trying to pay your lightning invoice. Remember that lightning nodes must be online in order to receive payments.": "RoboSats está tentando pagar sua lightning invoice. Lembre-se de que os nós lightning devem estar online para receber pagamentos.",
"#82": "Phrases in components/TradeBox/Prompts/Successful.tsx",
"BETA": "BETA",
"Rate your host {{coordinator}}": "Rate your host {{coordinator}}",
"Rate your peer {{peer_nick}}": "Rate your peer {{peer_nick}}",
"Rate your host": "Rate your host",
"Rate your peer": "Rate your peer",
"Renew": "Renew",
"RoboSats gets better with more liquidity and users. Tell a bitcoiner friend about Robosats!": "RoboSats fica melhor com mais liquidez e usuários. Conte a um amigo bitcoiner sobre Robosats!",
"Sending coins to": "Enviando moedas para",

View File

@ -676,8 +676,8 @@
"RoboSats is trying to pay your lightning invoice. Remember that lightning nodes must be online in order to receive payments.": "RoboSats пытается оплатить Ваш Lightning инвойс. Помните, что ноды Lightning должны быть подключены к сети, чтобы получать платежи.",
"#82": "Phrases in components/TradeBox/Prompts/Successful.tsx",
"BETA": "BETA",
"Rate your host {{coordinator}}": "Rate your host {{coordinator}}",
"Rate your peer {{peer_nick}}": "Rate your peer {{peer_nick}}",
"Rate your host": "Rate your host",
"Rate your peer": "Rate your peer",
"Renew": "Renew",
"RoboSats gets better with more liquidity and users. Tell a bitcoiner friend about Robosats!": "RoboSats становится лучше с большей ликвидностью и пользователями. Расскажите другу-биткойнеру о Robosat!",
"Sending coins to": "Отправка монет на",

View File

@ -676,8 +676,8 @@
"RoboSats is trying to pay your lightning invoice. Remember that lightning nodes must be online in order to receive payments.": "RoboSats försöker betala din lightning-faktura. Kom ihåg att lightning-noder måste vara online för att kunna mottaga betalningar.",
"#82": "Phrases in components/TradeBox/Prompts/Successful.tsx",
"BETA": "BETA",
"Rate your host {{coordinator}}": "Rate your host {{coordinator}}",
"Rate your peer {{peer_nick}}": "Rate your peer {{peer_nick}}",
"Rate your host": "Rate your host",
"Rate your peer": "Rate your peer",
"Renew": "Renew",
"RoboSats gets better with more liquidity and users. Tell a bitcoiner friend about Robosats!": "RoboSats blir bättre med mer likviditet och fler användare. Berätta om RoboSats för en Bitcoiner-vän!",
"Sending coins to": "Sending coins to",

View File

@ -676,8 +676,8 @@
"RoboSats is trying to pay your lightning invoice. Remember that lightning nodes must be online in order to receive payments.": "RoboSats inajaribu kulipa ankara yako ya umeme. Kumbuka kuwa nodi za umeme lazima ziwe mtandaoni ili kupokea malipo.",
"#82": "Phrases in components/TradeBox/Prompts/Successful.tsx",
"BETA": "BETA",
"Rate your host {{coordinator}}": "Rate your host {{coordinator}}",
"Rate your peer {{peer_nick}}": "Rate your peer {{peer_nick}}",
"Rate your host": "Rate your host",
"Rate your peer": "Rate your peer",
"Renew": "Renew",
"RoboSats gets better with more liquidity and users. Tell a bitcoiner friend about Robosats!": "RoboSats inaboreshwa na utoshelevu zaidi na watumiaji. Mwambie rafiki yako wa Bitcoin kuhusu RoboSats!",
"Sending coins to": "Inatuma sarafu kwa",

View File

@ -676,8 +676,8 @@
"RoboSats is trying to pay your lightning invoice. Remember that lightning nodes must be online in order to receive payments.": "RoboSats กำลังจ่ายเหรียญให้ lightning invoice ของท่าน lightning nodes จะต้องออนไลน์เพื่อรับเหรียญ",
"#82": "Phrases in components/TradeBox/Prompts/Successful.tsx",
"BETA": "BETA",
"Rate your host {{coordinator}}": "Rate your host {{coordinator}}",
"Rate your peer {{peer_nick}}": "Rate your peer {{peer_nick}}",
"Rate your host": "Rate your host",
"Rate your peer": "Rate your peer",
"Renew": "Renew",
"RoboSats gets better with more liquidity and users. Tell a bitcoiner friend about Robosats!": "RoboSats จะดีขึ้นเมื่อมีสภาพคล่องและผู้ใช้งานมากขึ้น ช่วยกันชวนเพื่อนของคุณมาใช้ Robosats!",
"Sending coins to": "Sending coins to",

View File

@ -676,8 +676,8 @@
"RoboSats is trying to pay your lightning invoice. Remember that lightning nodes must be online in order to receive payments.": "RoboSats 正在尝试支付你的闪电发票。请注意,闪电节点必须在线才能接收付款。",
"#82": "Phrases in components/TradeBox/Prompts/Successful.tsx",
"BETA": "BETA",
"Rate your host {{coordinator}}": "Rate your host {{coordinator}}",
"Rate your peer {{peer_nick}}": "Rate your peer {{peer_nick}}",
"Rate your host": "Rate your host",
"Rate your peer": "Rate your peer",
"Renew": "延续",
"RoboSats gets better with more liquidity and users. Tell a bitcoiner friend about Robosats!": "RoboSats 会随着更多的流动性和更高的用户数量而变得更好。把 RoboSats 推荐给你的比特币朋友吧!",
"Sending coins to": "将比特币发送到",

View File

@ -676,8 +676,8 @@
"RoboSats is trying to pay your lightning invoice. Remember that lightning nodes must be online in order to receive payments.": "RoboSats 正在嘗試支付你的閃電發票。請注意,閃電節點必須在線才能接收付款。",
"#82": "Phrases in components/TradeBox/Prompts/Successful.tsx",
"BETA": "BETA",
"Rate your host {{coordinator}}": "Rate your host {{coordinator}}",
"Rate your peer {{peer_nick}}": "Rate your peer {{peer_nick}}",
"Rate your host": "Rate your host",
"Rate your peer": "Rate your peer",
"Renew": "延續",
"RoboSats gets better with more liquidity and users. Tell a bitcoiner friend about Robosats!": "RoboSats 會隨著更多的流動性和更高的用戶数量而變得更好。把 RoboSats 推薦給你的比特幣朋友吧!",
"Sending coins to": "將比特幣發送到",