Git Product home page Git Product logo

zep's People

Watchers

 avatar

zep's Issues

make incoming "rejectable" by hiding it

we can store rejected hashes on idb and hide them completely from the user.

i believe any normal use case will be able to handle this solution, but if the list gets too big, maybe this won't be performant enough

remove useswr all together

it's gonna be used 2 or 3 times in the whole app, might as well use native hooks for it, it's probably easy

organize code

  • move stuff into components

basically that's it, but maybe there's some more stuff that i will find in the meantime

fix qr code reader bug

when you leave the qr code read page before before the video stream loads, it keeps loading in the background and never shuts off, even if swapping to the page and leaving again (we probably lose the ref to that video)

implement contacts

this should just store a bunch of (address. name) pairs on idb

i should also load this into memory on startup because it will be bad if i have to cycle through all blocks always checking idb

improve the data flow of the app

offline, i have drawn a diagram with what i picture would be a good way to structure this.

basically it goes like this:

  • there's 2 "apis"
    • the nano price
    • the nano node
  • there're the permanent storage aka idb
  • there's react state aka context

data should flow nicely between all of them, in the following way:

  • idb only gets updated when:
    1. an action takes place (new block is confirmed by me, new preference is set)
    2. on startup, if there's any difference with the old state
  • on startup, we feed the react context immediately from idb (it should have basically the same state) and go to the node to check for differences (which will update both context and idb)
  • every time an action is successful (e.g. failed sends have no effect on state) we should reflect that both in context and idb
  • websockets flow data from node to context directly

some of this is for performance reasons, because it would be simpler to have a linear model: context <-> idb <-> node, but that's probably not fast enough

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.