Skip to content
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

Nostr activity and tag support #534

Merged
merged 2 commits into from
Sep 21, 2023
Merged

Nostr activity and tag support #534

merged 2 commits into from
Sep 21, 2023

Conversation

benalleng
Copy link
Collaborator

@benalleng benalleng commented Sep 15, 2023

Testing autofill tags on contact send

Kazam_screencast_00008.webm

@cloudflare-pages
Copy link

cloudflare-pages bot commented Sep 15, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: c6da807
Status: ✅  Deploy successful!
Preview URL: https://00fe5443.mutiny-web.pages.dev
Branch Preview URL: https://nostr-enhancement.mutiny-web.pages.dev

View logs

@benalleng benalleng force-pushed the nostr-enhancement branch 2 times, most recently from f36700c to 8b1538f Compare September 15, 2023 20:00
Copy link
Collaborator

@futurepaul futurepaul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kind of like what you were saying on our call, I think it the functionality where you click "pay" on a contact and it autopopulates is awesome, the other stuff is more of a symptom of the tag editor being not-great right now. so I'd just do the payee tagging stuff (and keep the disable state for the dropdown list, that's a nice fix) and drop the rest for now

src/components/NostrActivity.tsx Outdated Show resolved Hide resolved
}
});

const selectProps = createMemo(() => {
return createOptions(availableTags() || [], {
key: "name",
disable: (value) => props.selectedValues.includes(value),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is great thank you

@@ -70,10 +80,16 @@ export function TagEditor(props: {
/>
<div class="flex flex-wrap gap-2">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what if we just drop this whole section? it's supposed to update with recommended tags as you use them, but right now it's just kind of confusing

Copy link
Collaborator Author

@benalleng benalleng Sep 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Went ahead and completely removed it. maybe we should poll if we want it as is or remove it until the redesign

src/components/layout/Misc.tsx Outdated Show resolved Hide resolved
@@ -56,6 +56,7 @@ export function ContactViewer(props: {
showToast(result.error);
return;
} else {
result.value.privateTag = props.contact.name;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this privateTag thing was a really slick solution

@benalleng
Copy link
Collaborator Author

benalleng commented Sep 21, 2023

Going to correct the scope of this PR, It became sort of a test PR for me to demonstrate some concepts but we are going to move those things explored into #546 as they are more tag function focused.

@benalleng benalleng marked this pull request as ready for review September 21, 2023 13:50
Copy link
Collaborator

@futurepaul futurepaul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good stuff thank you

@futurepaul futurepaul merged commit 414671a into master Sep 21, 2023
4 checks passed
@futurepaul futurepaul deleted the nostr-enhancement branch September 21, 2023 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants