Giter Club home page Giter Club logo

link's Issues

Persist the selected account

Ideally, when you navigate around or refresh the page the same account should be selected in the dropdown. If the account doesn't exist anymore, it should default to the first account found.

False error message shown

To reproduce:

  1. Paste an URL
  2. Delete letters from the alias field so that the error is shown
  3. Type more letters in the alias field
  4. See incorrect error for a brief second
Screen.Recording.2023-06-01.at.19.14.24.mov

Handle non-existing slugs

When a user tries to go to tiny.ink/some-non-existing-slug the app doesn't do anything.
This is an older issue, unrelated to useInk migration

Allow users to revisit the links they create

A links overview page was introduced here #20 but i removed it from the MVP.
I think it might be cleaner to use react-router instead of HeadlessUI tabs, but the layout can be copy-pasted.
Maybe we should limit to displaying 15 links, the list can grow fast.

Is there a way to get all the links shortened by an account from contract storage?

Add basic contract

  • Add resolve function
  • Add shorten(slug: Vec<u8>, url: Vec<u8>) -> Result<()> function, assert that len >= 5.
  • Make it upgradeable with a multisig using a proxy account

Waiting time too long

The waiting time for a shorten transaction to finalize is longer than 12s in the UI, meaning something is lagging somewhere
Also the resolving takes up to a few seconds sometimes and it used to be faster

Integrated Rococo faucet

Would be nice to allow people to drip funds in their account directly from the app. Needs design.

Check if a signer extension is available

Currently we assume users have the Polkadot.js extension in their browser. Other wallets haven't been tested.
The user experience is very poor for first time users. There is no guide to install a compatible extension and create a new account.

Form is disabled after connecting wallet

If the user already pasted a URL in the field and connects the wallet via the button below, all inputs and submit button are disabled.

Note: doesn't happen if the user connects via the top right corner button or if the form is empty when clicking the button.

Screen.Recording.2023-06-05.at.11.01.52.mov

Cannot connect if no accounts are present

The wallet connection flow goes doesn't handle the possibility of the user not having set up an account yet. Clicking on the "Connect to... " button doesn't do anything.
Noticed this on Firefox, where there are no imported accounts in the pjs extension. Not sure if it's browser specific.

Screen.Recording.2023-06-07.at.18.22.21.mov

Page immediately blanks after entering URL in textbox

I am using the live version here: https://tiny.ink/

I have Polkadot-JS extension installed, with valid accounts, and tried in both Brave and Chrome.

I have tried this both before and after connecting my wallet, but I see the same behavior.

TO REPRODUCE:

  1. Visit page
  2. Enter any URL in the textbox labeled "Paste an URL to get cost estimations" - for example, "https://en.wikipedia.org/wiki/Cockatiel". Alternatively, you can start typing and the same behavior will occur after a few keystrokes.

EXPECTED BEHAVIOR:

  1. User can then click "Shorten"

OBSERVED BEHAVIOR:

  1. Page becomes entirely blank (only purple background)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.