Git Product home page Git Product logo

w3shop's People

Contributors

tfelix avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

w3shop's Issues

Improve UX of the checkout process.

To give the user a nicer feeling when buying an item, some more feedback or animations would be great after the buy TX was signed. Possibly look into the Bootstrap NGX animations library to give the user more feedback something is going on.

  • User is shown a current "Waiting..." page after TX was signed
  • User gets a nice success animation when the buy process was successful

Owned items are always refreshed

When the owned item page was once resolved, re-visiting again triggers the resolving of the items. This wastes resources and slows down the whole process. Usually this does not really change and can be cached.

After an item purchase this case should be invalidated.

After item buy the shop shows an error

When items are successfully bought, the shop displays an error.
Also in general the success message of the bought items is missing.

This is caused because there is a bug in the sum function that calculates the total pricing of the checkout component. Cart is set to an empty array after the buy process, but this fails the price calculation function resulting in an error.

Update ethers.js

The latest version has an improved ESM support and can be bundled much smaller that will result in much shorter shop loading times.

Bad error message when visiting the shop and on the wrong networks

When the user enters a shop and his wallet is connected, but on a wrong network the page looks broken and bad error messages pop up.

Expected Behavior:

  • User should see a better error message
  • Remove broken elements like shop name and the empty footer as no data can be requested.

Switching network breaks shop UI

After the users has loaded a shop info, when he switches the network afterwards this breaks the UI because the error message is shown again.

It would be better if the already loaded data is hold and only a smaller error is shown when the users wants to actually interact with the chain.

image

Subsidized user product reviews

Story
As a shop owner
I want to set aside a percentage of the user payment that they get refunded
when they later leave a review for the article.

One possible option is

State holding intermediate contract

  • Contract keeps the users fee for a certain amount of time
  • Holds the state of the user bought item (can the user proof this to the contract so state save is not required?)

Pro

  • Shop owner can later change comment subsidized percentage easily without affecting open and waiting comment returns

Cons

  • Swiping funds of expired comment windows is complex and requires a lot of gas
  • Possibly a lot of data must be kept in the contract (bought item, token? (or always pay in ETH?)

Fix social links in footer

  • Create twitter account and link it
  • Rename the Orbis group
  • Link to github wiki as documentation when repo is public and wiki page can be added

Switching Networks to Goerli does not hide error msg box

When you start on the wrong network and switch to the Goerli Testnetwork by clicking the message in the alert box, after the switch is completed the alert box stays visible.

Its expected to be hidden after the successful switch.

Customizable URLs

Issue

The complex URLs that are required to fetch shops contents and bootstrap the client only app are hard to remeber: https://w3shop.eth.limo/#/s/AQAApLEHgctiognx84w8oPxVTBy_j0R-OQ

It would be nice to have subdomains available for shops to register in a self service like fashon, that allows the redirection towards the actual shop. It could look like https://awesome-shop.w3shop.eth

Solution

  • A smart contract could handle the creation of w3shop.eth subdomains for shop owners.
  • A special field in the name could hold the hashcode of the shop in question. This should be an immutable field for the user. If this can not be done with ENS a lookup contract could hold the link ENS Name -> shop address
  • The subdomain should point its IPFS address to a bootstrap shop that will detect it was loaded by a subdomain and then start the bootstrap prozess: 1. fetch contract via either ENS field lookup or via lookup contract, load the regular bootstrap prozess.

Blockers

  • Arbitrum ENS Support - So far ENS only operates on mainnet making the interaction complex as the w3shop lives on Arbitrum. The support for L2 Resolvers first must be solid with documentation.

Get rid of ng-wizards

Library seems not well maintained and it also has old angular dependencies, making upgrading harder. Replace it by a custom coded wizard.

Shop items metadata are broken

OpenSea as issues identifying the first test item. When the contract is verified and the URI can be requested of this token debug it.

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.