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

feat: use r/demo/profile for gno user info #1250

Merged
merged 8 commits into from
Aug 7, 2024
Merged

Conversation

hthieu1110
Copy link
Collaborator

@hthieu1110 hthieu1110 commented Aug 6, 2024

Closes #1244

Use Gno r/demo/profile for UPP page. Here are some results:

Screenshot 2024-08-06 at 23 27 06
Screenshot 2024-08-06 at 23 27 10
Screenshot 2024-08-06 at 23 27 17
Screenshot 2024-08-06 at 23 27 20

Copy link

netlify bot commented Aug 6, 2024

Deploy Preview for testitori ready!

Name Link
🔨 Latest commit f0fa485
🔍 Latest deploy log https://app.netlify.com/sites/testitori/deploys/66b3be762b056200080c5356
😎 Deploy Preview https://deploy-preview-1250--testitori.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Aug 6, 2024

Deploy Preview for teritori-dapp ready!

Name Link
🔨 Latest commit f0fa485
🔍 Latest deploy log https://app.netlify.com/sites/teritori-dapp/deploys/66b3be762794f4000816cfc8
😎 Deploy Preview https://deploy-preview-1250--teritori-dapp.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Collaborator

@n0izn0iz n0izn0iz left a comment

Choose a reason for hiding this comment

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

I think we shouldn't add a new hook and instead adapt the existing

  • useNSPrimaryAlias (returns r/demo/users name)
  • useNSUserInfo (returns relevant fields in r/demo/profiles)

without changing interfaces.

This way, everything we did before will be automatically supported

@n0izn0iz n0izn0iz changed the title Feat: use Gno profile on UPP page feat: use Gno profile on UPP page Aug 6, 2024
Copy link
Collaborator

@n0izn0iz n0izn0iz left a comment

Choose a reason for hiding this comment

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

this is much better, thanks :)

one last thing:

we should try to keep changes minimal (remove dev artifacts)

this makes the changes more atomic, make reviews easier and prevents including unwanted changes

thus can you revert the unneeded changes in

  • packages/components/images/AvatarWithFrame.tsx
  • packages/screens/UserPublicProfile/components/UPPIntro.tsx

pls

hthieu1110 and others added 2 commits August 8, 2024 00:50
Signed-off-by: Norman Meier <norman@samourai.coop>
@n0izn0iz n0izn0iz changed the title feat: use Gno profile on UPP page feat: use r/demo/profile for gno user info Aug 7, 2024
@n0izn0iz n0izn0iz changed the title feat: use r/demo/profile for gno user info feat: use r/demo/profile for gno user info Aug 7, 2024
Signed-off-by: Norman Meier <norman@samourai.coop>
@n0izn0iz n0izn0iz merged commit 8a9726d into main Aug 7, 2024
22 checks passed
@n0izn0iz n0izn0iz deleted the feat/gno-ns-for-upp branch August 7, 2024 22:28
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.

feat: use new profile realm in upp / user data
2 participants