feat: Améliorer l'interface utilisateur du processus de pairing
- Afficher l'adresse du créateur dans l'interface: 'Creator address: tsp1...'
- Afficher le statut d'attente des relays: '⏳ Waiting for relays to be ready...'
- Mettre à jour l'UI en temps réel pendant le processus de pairing
- Améliorer l'expérience utilisateur avec des messages informatifs
This commit is contained in:
parent
7444f64394
commit
0cf6abdcd5
@ -700,6 +700,10 @@ export default class Services {
|
|||||||
|
|
||||||
if (!relayAddress) {
|
if (!relayAddress) {
|
||||||
console.log('⏳ Waiting for relays to be ready...');
|
console.log('⏳ Waiting for relays to be ready...');
|
||||||
|
// Update UI status
|
||||||
|
const { updateCreatorStatus } = await import('../utils/sp-address.utils');
|
||||||
|
updateCreatorStatus('⏳ Waiting for relays to be ready...');
|
||||||
|
|
||||||
await this.getRelayReadyPromise();
|
await this.getRelayReadyPromise();
|
||||||
relayAddress = this.getAllRelays()[0]?.spAddress;
|
relayAddress = this.getAllRelays()[0]?.spAddress;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2697,6 +2697,9 @@ export async function prepareAndSendPairingTx(): Promise<void> {
|
|||||||
|
|
||||||
console.log(`🔍 DEBUG: Creator address: ${creatorAddress}`);
|
console.log(`🔍 DEBUG: Creator address: ${creatorAddress}`);
|
||||||
|
|
||||||
|
// Update UI with creator address
|
||||||
|
updateCreatorStatus(`Creator address: ${creatorAddress}`);
|
||||||
|
|
||||||
// Create pairing process with creator's address
|
// Create pairing process with creator's address
|
||||||
const createPairingProcessReturn = await service.createPairingProcess(
|
const createPairingProcessReturn = await service.createPairingProcess(
|
||||||
creatorAddress, // Use creator's address as memberPublicName
|
creatorAddress, // Use creator's address as memberPublicName
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user