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: bns support and registration for connect #1103

Merged
merged 15 commits into from
Apr 27, 2021

Conversation

hstove
Copy link
Contributor

@hstove hstove commented Apr 2, 2021

Try out this version of the Stacks Wallet - try the hosted version, or the Stacks testnet demo app

Fixes #736, fixes #956, fixes #946

This PR does the following:

  • Adds a new subdomain registrar to our configuration
  • Sets this new registrar for app.blockstack.org registrations
  • re-enables subdomain registrations on app.blockstack.org

Currently only a testnet subdomain registrar is configured. This upgrade must go with hirosystems/stacks.js#984 in order for apps to properly handle the upgrade.

  • Add production registrar (once available)

@changeset-bot
Copy link

changeset-bot bot commented Apr 2, 2021

⚠️ No Changeset found

Latest commit: c9a9a89

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link

vercel bot commented Apr 2, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/blockstack/stacks-wallet-web/Ft9e3uvQhbrFgAK71fdaaKdwfprr
✅ Preview: Failed

[Deployment for c9a9a89 failed]

@vercel vercel bot temporarily deployed to Preview April 2, 2021 16:37 Inactive
@vercel vercel bot temporarily deployed to Preview April 6, 2021 00:38 Inactive
@vercel vercel bot temporarily deployed to Preview April 6, 2021 00:45 Inactive
@vercel vercel bot temporarily deployed to Preview April 6, 2021 00:57 Inactive
@vercel vercel bot temporarily deployed to Preview April 6, 2021 01:10 Inactive
@vercel vercel bot temporarily deployed to Preview April 6, 2021 01:50 Inactive
@markmhendrickson markmhendrickson self-requested a review April 6, 2021 13:55
@markmhendrickson
Copy link
Collaborator

markmhendrickson commented Apr 6, 2021

@hstove Should we take this out of draft mode and move into QA?

And do we want to modify the testnet demo app to provide two auth options / buttons: one uses the registerSubdomain flag and one that doesn't, for testing both cases?

@markmhendrickson
Copy link
Collaborator

I was able to register a username with the Testnet Demo app here:

https://stacks-node-api.testnet.stacks.co/v1/names/awegawegawegawegawe.test-registrar.id

@markmhendrickson
Copy link
Collaborator

@hstove Would it be easy enough to sneak in a "Skip" option on the username screen here?

@wilsonbright just requested it given their recent experience with improved conversion without required username registration.

If not, we can break it out into its own issue and track there.

@kyranjamie kyranjamie marked this pull request as ready for review April 9, 2021 16:59
};
});
if (apiKey) {
headers.set('Authorization', `bearer ${apiKey}`);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
headers.set('Authorization', `bearer ${apiKey}`);
headers.set('Authorization', `Bearer ${apiKey}`);

Isn't this typically capitalised?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Typically, yeah. But the registrar expects lowercase 🤷🏼 .

@vercel vercel bot temporarily deployed to Preview April 19, 2021 17:48 Inactive
@vercel vercel bot temporarily deployed to Preview April 19, 2021 18:15 Inactive
@markmhendrickson
Copy link
Collaborator

Registration worked for me:

image

@markmhendrickson
Copy link
Collaborator

markmhendrickson commented Apr 22, 2021

@kyranjamie and/or @aulneau can you code review this soon? We should release as soon as possible.

@hstove is there any other change necessary, or will we be good to deploy once code review is complete?

@vercel vercel bot temporarily deployed to Preview April 23, 2021 16:13 Inactive
@vercel vercel bot temporarily deployed to Preview April 23, 2021 18:38 Inactive
@vercel vercel bot temporarily deployed to Preview April 27, 2021 18:16 Inactive
@hstove hstove merged commit 8c82ade into app.blockstack.org Apr 27, 2021
👟 UserX Kanban [🚨 DEPRECATED in favor of https://github.com/orgs/hirosystems/projects/9/views/1] automation moved this from 💻 In development | WIP limit: 5 to 🚀 Done Apr 27, 2021
@hstove hstove deleted the feat/bns-2-connect branch April 27, 2021 19:25
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.

[Blockstack Connect] Update default subdomain registrar to non-PBC host and restore username paths
3 participants