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: display verification phrase during space registration #385

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

travis
Copy link
Member

@travis travis commented Feb 22, 2023

storacha/w3up#432 introduces a mechanism for providing "definitive verification of the validity of a [space registration] email request". A full justification for this flow is provided in that PR, and this PR updates w3ui and w3console to show the phrase generated by the access API.

New verification screen:

Screenshot 2023-02-22 at 3 34 41 PM

Still need to update verification email and will add a screenshot of that here.

Will need an updated access client to run locally and for checks to pass in this PR - storacha/w3up#432 can be merged safely without these changes so I'll update this PR once that's merged.

Use the new `pre` caveat and `startCursor` and `endCursor` from storacha/w3infra#139 to implement reverse paging.

One unsatisfying issue with this is that paging backwards reverses the
order of items in the uploads list, and that edge conditions
behave fairly confusingly.

Not entirely sure what to do about this yet, so pushing up for some feedback.

This currently only works with a bunch of custom service config and `file:/`
dependencies that I am not pushing up for now.
this brings in the necessary changes for reverse paging
- use icons instead of word buttons
- make edge cases seem less weird by not rendering 0 sized pages
we don't have the bandwidth to support @w3ui/react anymore, so start migrating w3console to use the "headless" components directly

this takes care of the markup, the next step is to get rid of custom CSS and move entirely over to idiomatic TailwindCSS styling
Since we're no longer using the external w3ui React "customizable" component
library, we can use idiomatic TailwindCSS across the board.

A few years ago I would have considered this a step backwards, moving from semantic classes
to tailwind utility classes sprinkled everywhere. While there
may be some opportunities for abstraction in a few places, Tailwind's docs make the case
for being extremely conservative with this sort of CSS-level componentization:

https://tailwindcss.com/docs/reusing-styles

I have created a `w3ui-button` class, but it probably needs to be pared
down - evidence for this can be found in the authenticator's "Register" button
in which I needed to copy most of the styles from the `w3ui-button` class
to customize it the way I wanted.
storacha/w3up#432 introduces a
mechanism for providing "definitive verification of the validity of a [space registration] email request".

A full justification for this flow is provided in that PR, and this PR
updates w3ui and w3console to show the phrase generated by the access API.
Base automatically changed from chore/eject-customizable-components to main February 24, 2023 04:08
@codesandbox-ci
Copy link

codesandbox-ci bot commented Mar 2, 2023

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 0d6b8ea:

Sandbox Source
@w3ui/example-react-file-upload Configuration
@w3ui/example-react-sign-up-in Configuration
@w3ui/example-react-uploads-list Configuration
@w3ui/example-solid-file-upload Configuration
@w3ui/example-solid-sign-up-in Configuration
@w3ui/example-solid-uploads-list Configuration
@w3ui/example-vue-file-upload Configuration

@github-actions
Copy link
Contributor

github-actions bot commented Mar 2, 2023

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.

1 participant