Coder Social home page Coder Social logo

6bin's People

Contributors

bleucitron avatar davidbruant avatar vallettea avatar

Watchers

 avatar  avatar  avatar

6bin's Issues

The button retry is far too expensive.

Yesterday we had a bug on 6element and bin couldn't be retrieved. So we changed stuf and pressed many times on the retry button. But this button can be pressed so easily that it costed us 9.5euros:

screen shot 2016-01-06 at 09 14 13

I think we should at least impose a limit to number of times it can be pressed per minutes.

Update .npmignore

It should be the same as .gitignore, including .js but excluding .ts

Question the `prepublish`script

Since there is a prepublish script that compiles basically everything, dependencies are not needed...
Is it a good choice ?

Customize Chromium so it consumes less data

https://www.chromium.org/developers/how-tos/run-chromium-with-flags
http://peter.sh/experiments/chromium-command-line-switches/

Consider the following flags:

  • --safebrowsing-disable-auto-update "If present, safebrowsing only performs update when SafeBrowsingProtocolManager::ForceScheduleNextUpdate() is explicitly called. This is used for testing only."
  • --bwsi "Indicates that the browser is in "browse without sign-in" (Guest session) mode. Should completely disable extensions, sync and bookmarks."
  • --disable-background-networking "Disable several subsystems which run network requests in the background. This is for use when doing network performance testing to avoid noise in the measurements."
  • --disable-extensions "Disable extensions"
  • --disable-sync "Disables syncing browser data to a Google Account."
  • --no-experiments "Disables all experiments set on about:flags. Does not disable about:flags itself. Useful if an experiment makes chrome crash at startup: One can start chrome with --no-experiments, disable the problematic lab at about:flags and then restart chrome without this switch again."
  • --no-first-run "Skip First Run tasks, whether or not it's actually the First Run. Overridden by kForceFirstRun. This does not drop the First Run sentinel and thus doesn't prevent first run from occuring the next time chrome is launched without this flag."
  • --no-pings "Don't send hyperlink auditing pings"
  • --kiosk

Interesting, but not sure:

  • --disable-quic "Disables support for the QUIC protocol."
  • --disable-infobars "Prevent infobars from appearing."

Implement Redux app on 6bin server ?

Maybe it would interesting to have a store on 6bin server, with only bins and recycling_center infos. This could have some benefits regarding data transfert between 6bin client and kerrigan server.

The user can display and change opening times and dates

  • The user has a one-click button to notify the recycling center is closed for today
  • The user can modify the recycling center regular hours
  • The user can modify the recycling center hours only the this week and the next one (special modification)
  • The user can list upcoming days when the recycling center will be closed exceptionally and provide a description of why (this message will be shown on the citizen phone, warn about this in the UI)

Immutable size / length ??

in server/src/main.js, i try to log the size of an Immutable List<BinData>.

console.log('SAVING BIIIIIIIIINS !!!', data.action.bins.length, data.action.bins.size);

I get a TS warning: server/src/main.ts(46,60): error TS2339: Property 'length' does not exist on type 'List<BinData>'.
The length outputs the correct length, while size outputs undefined...

Order bin list

Bin list doesn't have any ordering by now, expect the order of addition which bugs when the list is split into 2 lines.

Promise counter is serverLink => same as nextPending ??

There is a promise Map in serverLink whose purpose is to resolve the correct promise when coming back from server.
There is also a pendingAction Map in the client Store, to warn the user some actions are still pending.

Currently, the indexes are different, but should probably be the same.

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.