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

add contact feature #28

Merged
merged 8 commits into from
Sep 3, 2024
Merged

add contact feature #28

merged 8 commits into from
Sep 3, 2024

Conversation

humorless
Copy link
Member

@humorless humorless commented Aug 30, 2024

Add contact button

  • An "Add contact" button in the menu.
  • Brings up a QR code.
  • Properly encode the data inside QR code.
  • Someone else can scan this QR code using their own camera, and then get connected.
  • After connection, the other person shows up in a list of "connecions."

progress

  • show QR code
截圖 2024-08-30 下午6 32 27
  • contact shows after scan the QR code and get the that http link
contact-show-in-profile

Use case:

I'm talking to a cool person at the bar, how do I keep in touch with you?

@humorless
Copy link
Member Author

In my experiment, :cardinality/many seems to assure that the value of that attribute is unique.

Run the code below several time, and user/contacts is written only in the first time.

(let [result @(db/transact [{:db/id 17592186045495
                             :user/contacts 5}])]
  (clojure.pprint/pprint result))

@plexus plexus merged commit 3cad444 into main Sep 3, 2024
1 check failed
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.

2 participants