diff --git a/frontend/src/screens/CreateProfileModal.tsx b/frontend/src/screens/CreateProfileModal.tsx
index 457f471..30347d7 100644
--- a/frontend/src/screens/CreateProfileModal.tsx
+++ b/frontend/src/screens/CreateProfileModal.tsx
@@ -12,7 +12,7 @@ interface CreateProfileModalProps {
onClose: () => void;
}
-type Phase = 'choice' | 'local' | 'creating' | 'success' | 'pairing' | 'paired';
+type Phase = 'choice' | 'pair-label' | 'pairing' | 'paired' | 'local' | 'creating' | 'success';
export function CreateProfileModal({ open, onClose }: CreateProfileModalProps) {
const { state, createProfile, nip46PairStart, nip46Status, nip46Disconnect, refresh } = useApp();
@@ -39,7 +39,7 @@ export function CreateProfileModal({ open, onClose }: CreateProfileModalProps) {
// Let the local-form input take focus once that step mounts.
useEffect(() => {
- if (phase === 'local') {
+ if (phase === 'local' || phase === 'pair-label') {
const frame = requestAnimationFrame(() => inputRef.current?.focus());
return () => cancelAnimationFrame(frame);
}
@@ -133,7 +133,7 @@ export function CreateProfileModal({ open, onClose }: CreateProfileModalProps) {
const startPairing = async () => {
setError(null);
try {
- const status = await nip46PairStart(label.trim() || 'Remote Signer');
+ const status = await nip46PairStart(label.trim() || 'Amber');
if (status.pairing_uri) setLivePairingUri(status.pairing_uri);
setPhase('pairing');
} catch (err) {
@@ -170,7 +170,13 @@ export function CreateProfileModal({ open, onClose }: CreateProfileModalProps) {
{error && {error}}
-