Giter Club home page Giter Club logo

soporteremoto-dashboard's People

Contributors

dependabot[bot] avatar germanferrero avatar gmarcos87 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

soporteremoto-dashboard's Issues

error running the storybook server

@germanferrero wanted to try the progress and this is what I got:

Can you help me sort it out?

nico@ingorian:~/tmp/librerouterorg/soporteremoto-dashboard/web-app$ nvm use v8.10.0
Now using node v8.10.0 (npm v5.6.0)
nico@ingorian:~/tmp/librerouterorg/soporteremoto-dashboard/web-app$ yarn run storybook
yarn run v1.16.0
error Command "storybook" not found.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
nico@ingorian:~/tmp/librerouterorg/soporteremoto-dashboard/web-app$ ls
config-overrides.js  node_modules  package.json  public  README.md  src  yarn.lock
nico@ingorian:~/tmp/librerouterorg/soporteremoto-dashboard/web-app$ yarn run
yarn run v1.16.0
info Commands available from binary scripts: acorn, ansi-html, atob, autoprefixer, babylon, browserslist, build-storybook, css-blank-pseudo, css-has-pseudo, css-prefers-color-scheme, cssesc, detect, detect-port, errno, escodegen, esgenerate, eslint, esparse, esvalidate, handlebars, he, html-minifier, import-local-fixture, is-ci, jest, jest-runtime, js-yaml, jsesc, json5, loose-envify, marked, miller-rabin, mime, mkdirp, multicast-dns, parser, react-app-rewired, react-docgen, react-scripts, regexp-tree, regjsparser, rimraf, sane, semver, sha.js, shjs, sshpk-conv, sshpk-sign, sshpk-verify, start-storybook, storybook-server, svgo, terser, uglifyjs, uuid, watch, webpack, webpack-dev-server, which
info Project commands
   - build
      react-app-rewired build
   - eject
      react-scripts eject
   - start
      react-app-rewired start
   - test
      react-app-rewired test
question Which command would you like to run?: start-sorybook
error Command "start-sorybook" not found.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
nico@ingorian:~/tmp/librerouterorg/soporteremoto-dashboard/web-app$ yarn run start-storybook
yarn run v1.16.0
$ /home/nico/tmp/librerouterorg/soporteremoto-dashboard/web-app/node_modules/.bin/start-storybook
info @storybook/react v5.1.9
info 
info => Loading presets
info => Loading presets

WARN Broken build, fix the error below.
WARN You may need to refresh the browser.

ERR! Error: => Create a storybook config file in "./.storybook/config.{ext}".
ERR!     at createPreviewEntry (/home/nico/tmp/librerouterorg/soporteremoto-dashboard/web-app/node_modules/@storybook/core/dist/server/preview/entries.js:21:11)
ERR!     at <anonymous>
ERR!     at process._tickCallback (internal/process/next_tick.js:188:7)
ERR!     at Function.Module.runMain (module.js:695:11)
ERR!     at startup (bootstrap_node.js:188:16)
ERR!     at bootstrap_node.js:609:3
ERR!  { Error: => Create a storybook config file in "./.storybook/config.{ext}".
ERR!     at createPreviewEntry (/home/nico/tmp/librerouterorg/soporteremoto-dashboard/web-app/node_modules/@storybook/core/dist/server/preview/entries.js:21:11)
ERR!     at <anonymous>
ERR!     at process._tickCallback (internal/process/next_tick.js:188:7)
ERR!     at Function.Module.runMain (module.js:695:11)
ERR!     at startup (bootstrap_node.js:188:16)
ERR!     at bootstrap_node.js:609:3
ERR!   stack: 'Error: => Create a storybook config file in "./.storybook/config.{ext}".\n    at createPreviewEntry (/home/nico/tmp/librerouterorg/soporteremoto-dashboard/web-app/node_modules/@storybook/core/dist/server/preview/entries.js:21:11)\n    at <anonymous>\n    at process._tickCallback (internal/process/next_tick.js:188:7)\n    at Function.Module.runMain (module.js:695:11)\n    at startup (bootstrap_node.js:188:16)\n    at bootstrap_node.js:609:3' }
Done in 7.44s.
nico@ingorian:~/tmp/librerouterorg/soporteremoto-dashboard/web-app$ yarn run storybook-server
yarn run v1.16.0
$ /home/nico/tmp/librerouterorg/soporteremoto-dashboard/web-app/node_modules/.bin/storybook-server
info @storybook/react v5.1.9
info 
info => Loading presets
info => Loading presets

WARN Broken build, fix the error below.
WARN You may need to refresh the browser.

ERR! Error: => Create a storybook config file in "./.storybook/config.{ext}".
ERR!     at createPreviewEntry (/home/nico/tmp/librerouterorg/soporteremoto-dashboard/web-app/node_modules/@storybook/core/dist/server/preview/entries.js:21:11)
ERR!     at <anonymous>
ERR!     at process._tickCallback (internal/process/next_tick.js:188:7)
ERR!     at Function.Module.runMain (module.js:695:11)
ERR!     at startup (bootstrap_node.js:188:16)
ERR!     at bootstrap_node.js:609:3
ERR!  { Error: => Create a storybook config file in "./.storybook/config.{ext}".
ERR!     at createPreviewEntry (/home/nico/tmp/librerouterorg/soporteremoto-dashboard/web-app/node_modules/@storybook/core/dist/server/preview/entries.js:21:11)
ERR!     at <anonymous>
ERR!     at process._tickCallback (internal/process/next_tick.js:188:7)
ERR!     at Function.Module.runMain (module.js:695:11)
ERR!     at startup (bootstrap_node.js:188:16)
ERR!     at bootstrap_node.js:609:3
ERR!   stack: 'Error: => Create a storybook config file in "./.storybook/config.{ext}".\n    at createPreviewEntry (/home/nico/tmp/librerouterorg/soporteremoto-dashboard/web-app/node_modules/@storybook/core/dist/server/preview/entries.js:21:11)\n    at <anonymous>\n    at process._tickCallback (internal/process/next_tick.js:188:7)\n    at Function.Module.runMain (module.js:695:11)\n    at startup (bootstrap_node.js:188:16)\n    at bootstrap_node.js:609:3' }
Done in 6.64s.
nico@ingorian:~/tmp/librerouterorg/soporteremoto-dashboard/web-app$ 

Implement api .nodes

Implement the api for nodes. It should have a method called list() which takes no parameters and return the list of nodes retrieved from the backend as strings. Example: ['ql-roxa', 'ql-nicogesia']. By the moment it should be enough to return all the nodes in the same mesh network where the backend lives.

Integrate LastIssuePage component with the api.

LastIssuePage is the component showing the detail of an issue (aka, report). Implement the integration with the API so that the component takes the issueId from the propery:
props.location.state.issueId and ask the API for the issue's data.
Also, integrate the rendering of the comments with the comments api.

Offline first cross revision

Go through all the components and decide wether or not each of them should have an offline behaviour. If so, implement that behaviour.

Implement .getDefaultNode()

Implement the api endpoint getDefaultNode which returns the mesh node from where the user is connected to the dashboard if there is any or null otherwise. The node should be a string, like 'ql-roxa'

Scroll on list

Currently the scroll has effect on the whole web and should only be performed within the lists of issues or comments.

Delay retrieving last report.

After submitting a new report at NewReportWizard, we wait for reports.create to resolve and navigate back to LastIssuesPanel where the list of reports is fetched from the api, expecting our report to be in the list, but it isn't.
Right know we are workarounding it with a setTimeout.

Integrate LastIssuesPanel with the API

LastIssuesPanel shows a list with open and closed reports.
Make the component take the reports from the reports API.
Also, implement navigation to a report detail page when clicking on it.

Integrate Login with new recover account API.

Ask the user if she is sure about having typed the seed phrase correctly, when there is no data about the recovered identity. If the answer is yer, continue to home. Otherwise let her type again.

Reports api return to comply with the contract.

The actual contract is:

interface Report {
    timestamp: number,
    user: string,
    status: string,
    node: string,
    commonIssueId: string, // los Id de commonIssues están hardcodeados en la webapp,
    title: string,
    body: string,
    comments: Array(string), // Array de ids de comentarios.
}

Edit Account

Add an edit account page and a link to it at navbar.

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.