-
-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Contacts V2: Implementing Nostr contacts #1907
Conversation
a958fca
to
78799d3
Compare
locales/en.json
Outdated
"views.NostrContacts.NostrContacts": "Nostr Contacts", | ||
"views.NostrContacts.LookUpContacts": "Look up Contacts", | ||
"views.NostrContacts.ImportAllContacts": "Import all Contacts", | ||
"views.ContactDetails.AddToTheContacts": "Add to the Contacts", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's call this one Save to contacts
0bfd67c
to
7a3f8c9
Compare
7a3f8c9
to
c195c12
Compare
We need to do validation on the npub input form |
I also noticed that npubs are not being saved to profiles |
6503353
to
afc6c73
Compare
e751545
to
6745b41
Compare
7897be6
to
8639b68
Compare
views/NostrContacts.tsx
Outdated
}} | ||
rightComponent={ | ||
<Row> | ||
{this.state.contactsData.length > 0 && ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
contactsData
var is available on line 428
views/NostrContacts.tsx
Outdated
transform: [{ translateX: slideInRight }] | ||
}} | ||
> | ||
<CheckBox checked={isSelected} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
checkbox here should also trigger the toggleContactSelection
func
views/NostrContacts.tsx
Outdated
fontSize: 16 | ||
}} | ||
> | ||
Enter npub |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this needs to be localized
16e0f09
to
1efd438
Compare
<SelectButton /> | ||
<Icon | ||
onPress={() => { | ||
this.setState({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isValidNpub
should also be set to false
when the clear button is hit
1efd438
to
df80eed
Compare
views/NostrContacts.tsx
Outdated
console.log('Error importing contacts:', error); | ||
Alert.alert( | ||
'Error', | ||
'Failed to import contacts. Please try again.' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be localized
views/NostrContacts.tsx
Outdated
console.log('Error importing contacts:', error); | ||
Alert.alert( | ||
'Error', | ||
'Failed to import contacts. Please try again.' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
df80eed
to
a0fce3c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tACK
No description provided.