GithubHelp home page GithubHelp logo

chiubaca / jottivity Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 2.01 MB

Anlayse your thoughts, mood & productivity using sentiment analysis.

Home Page: https://jottivity.netlify.com

JavaScript 4.69% Vue 28.86% TypeScript 64.59% Batchfile 0.08% CSS 1.78%
journal nuxt productivity vue

jottivity's Introduction

jottivity's People

Contributors

chiubaca avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

jottivity's Issues

Drop Class components and Decorators

was a fun experiment but not worth the extra complexity.
Options API is easy and well document and has good enough support for typescript.

make sure any components using class components is refactored to use the options API

Tag a post

  • User should be able to tag their post with their mood or any other category
  • User can create and delete tags

Unit Tests

Need unit tests for all serverless functions and vue components

Add new Tags

When creating a new post, user should be able to create new tags which can used for other posts too

Jest Test coverage not working

Repro Steps
In jest.config.js when collectCoverage is set to true, running npm run test fails with the following:

Failed to collect coverage from D:\CODE\Projects\Jottivity-v2\components\Logo.vue
ERROR: D:\CODE\Projects\Jottivity-v2\components\Logo.vue: don't know how to turn this value into a node
STACK: Error: D:\CODE\Projects\Jottivity-v2\components\Logo.vue: don't know how to turn this value into a node
    at valueToNode (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\types\lib\converters\valueToNode.js:87:9)
    at Object.valueToNode (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\types\lib\converters\valueToNode.js:81:58)
    at Object.exit (D:\CODE\Projects\Jottivity-v2\node_modules\@jest\reporters\node_modules\istanbul-lib-instrument\dist\visitor.js:641:30)
    at PluginPass.exit (D:\CODE\Projects\Jottivity-v2\node_modules\@jest\reporters\node_modules\babel-plugin-istanbul\lib\index.js:158:38) 
    at newFn (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\traverse\lib\visitors.js:179:21)
    at NodePath._call (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\traverse\lib\path\context.js:55:20)
    at NodePath.call (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\traverse\lib\path\context.js:42:17)
    at NodePath.visit (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\traverse\lib\path\context.js:99:8)
    at TraversalContext.visitQueue (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\traverse\lib\context.js:112:16)
    at TraversalContext.visitSingle (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\traverse\lib\context.js:84:19)
    at TraversalContext.visit (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\traverse\lib\context.js:140:19)
    at Function.traverse.node (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\traverse\lib\index.js:84:17)
    at traverse (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\traverse\lib\index.js:66:12)
    at transformFile (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\core\lib\transformation\index.js:107:29)
    at transformFile.next (<anonymous>)
    at run (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\core\lib\transformation\index.js:35:12)
Failed to collect coverage from D:\CODE\Projects\Jottivity-v2\pages\index.vue
ERROR: D:\CODE\Projects\Jottivity-v2\pages\index.vue: don't know how to turn this value into a node
STACK: Error: D:\CODE\Projects\Jottivity-v2\pages\index.vue: don't know how to turn this value into a node
    at valueToNode (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\types\lib\converters\valueToNode.js:87:9)
    at Object.valueToNode (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\types\lib\converters\valueToNode.js:81:58)
    at Object.exit (D:\CODE\Projects\Jottivity-v2\node_modules\@jest\reporters\node_modules\istanbul-lib-instrument\dist\visitor.js:641:30)
    at PluginPass.exit (D:\CODE\Projects\Jottivity-v2\node_modules\@jest\reporters\node_modules\babel-plugin-istanbul\lib\index.js:158:38)
    at newFn (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\traverse\lib\visitors.js:179:21)
    at NodePath._call (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\traverse\lib\path\context.js:55:20)
    at NodePath.call (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\traverse\lib\path\context.js:42:17)
    at NodePath.visit (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\traverse\lib\path\context.js:99:8)
    at TraversalContext.visitQueue (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\traverse\lib\context.js:112:16)
    at TraversalContext.visitSingle (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\traverse\lib\context.js:84:19)
    at TraversalContext.visit (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\traverse\lib\context.js:140:19)
    at Function.traverse.node (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\traverse\lib\index.js:84:17)
    at traverse (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\traverse\lib\index.js:66:12)
    at transformFile (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\core\lib\transformation\index.js:107:29)
    at transformFile.next (<anonymous>)
    at run (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\core\lib\transformation\index.js:35:12)
Failed to collect coverage from D:\CODE\Projects\Jottivity-v2\pages\login.vue
ERROR: D:\CODE\Projects\Jottivity-v2\pages\login.vue: don't know how to turn this value into a node
STACK: Error: D:\CODE\Projects\Jottivity-v2\pages\login.vue: don't know how to turn this value into a node
    at valueToNode (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\types\lib\converters\valueToNode.js:87:9)
    at Object.valueToNode (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\types\lib\converters\valueToNode.js:81:58)
    at Object.exit (D:\CODE\Projects\Jottivity-v2\node_modules\@jest\reporters\node_modules\istanbul-lib-instrument\dist\visitor.js:641:30)
    at PluginPass.exit (D:\CODE\Projects\Jottivity-v2\node_modules\@jest\reporters\node_modules\babel-plugin-istanbul\lib\index.js:158:38)
    at newFn (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\traverse\lib\visitors.js:179:21)
    at NodePath._call (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\traverse\lib\path\context.js:55:20)
    at NodePath.call (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\traverse\lib\path\context.js:42:17)
    at NodePath.visit (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\traverse\lib\path\context.js:99:8)
    at TraversalContext.visitQueue (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\traverse\lib\context.js:112:16)
    at TraversalContext.visitSingle (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\traverse\lib\context.js:84:19)
    at TraversalContext.visit (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\traverse\lib\context.js:140:19)
    at Function.traverse.node (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\traverse\lib\index.js:84:17)
    at traverse (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\traverse\lib\index.js:66:12)
    at transformFile (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\core\lib\transformation\index.js:107:29)
    at transformFile.next (<anonymous>)
    at run (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\core\lib\transformation\index.js:35:12)
Failed to collect coverage from D:\CODE\Projects\Jottivity-v2\pages\sandbox.vue
ERROR: D:\CODE\Projects\Jottivity-v2\pages\sandbox.vue: don't know how to turn this value into a node
STACK: Error: D:\CODE\Projects\Jottivity-v2\pages\sandbox.vue: don't know how to turn this value into a node
    at valueToNode (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\types\lib\converters\valueToNode.js:87:9)
    at Object.valueToNode (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\types\lib\converters\valueToNode.js:81:58)
    at Object.exit (D:\CODE\Projects\Jottivity-v2\node_modules\@jest\reporters\node_modules\istanbul-lib-instrument\dist\visitor.js:641:30)
    at PluginPass.exit (D:\CODE\Projects\Jottivity-v2\node_modules\@jest\reporters\node_modules\babel-plugin-istanbul\lib\index.js:158:38)
    at newFn (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\traverse\lib\visitors.js:179:21)
    at NodePath._call (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\traverse\lib\path\context.js:55:20)
    at NodePath.call (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\traverse\lib\path\context.js:42:17)
    at NodePath.visit (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\traverse\lib\path\context.js:99:8)
    at TraversalContext.visitQueue (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\traverse\lib\context.js:112:16)
    at TraversalContext.visitSingle (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\traverse\lib\context.js:84:19)
    at TraversalContext.visit (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\traverse\lib\context.js:140:19)
    at Function.traverse.node (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\traverse\lib\index.js:84:17)
    at traverse (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\traverse\lib\index.js:66:12)
    at transformFile (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\core\lib\transformation\index.js:107:29)
    at transformFile.next (<anonymous>)
    at run (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\core\lib\transformation\index.js:35:12)
Failed to collect coverage from D:\CODE\Projects\Jottivity-v2\pages\signup.vue
ERROR: D:\CODE\Projects\Jottivity-v2\pages\signup.vue: don't know how to turn this value into a node
STACK: Error: D:\CODE\Projects\Jottivity-v2\pages\signup.vue: don't know how to turn this value into a node
    at valueToNode (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\types\lib\converters\valueToNode.js:87:9)
    at Object.valueToNode (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\types\lib\converters\valueToNode.js:81:58)
    at Object.exit (D:\CODE\Projects\Jottivity-v2\node_modules\@jest\reporters\node_modules\istanbul-lib-instrument\dist\visitor.js:641:30)
    at PluginPass.exit (D:\CODE\Projects\Jottivity-v2\node_modules\@jest\reporters\node_modules\babel-plugin-istanbul\lib\index.js:158:38)
    at newFn (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\traverse\lib\visitors.js:179:21)
    at NodePath._call (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\traverse\lib\path\context.js:55:20)
    at NodePath.call (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\traverse\lib\path\context.js:42:17)
    at NodePath.visit (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\traverse\lib\path\context.js:99:8)
    at TraversalContext.visitQueue (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\traverse\lib\context.js:112:16)
    at TraversalContext.visitSingle (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\traverse\lib\context.js:84:19)
    at TraversalContext.visit (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\traverse\lib\context.js:140:19)
    at Function.traverse.node (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\traverse\lib\index.js:84:17)
    at traverse (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\traverse\lib\index.js:66:12)
    at transformFile (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\core\lib\transformation\index.js:107:29)
    at transformFile.next (<anonymous>)
    at run (D:\CODE\Projects\Jottivity-v2\node_modules\@babel\core\lib\transformation\index.js:35:12)

Cause
unknown

Workaround
Set collectCoverage is set to false

Same tags appear on all journals

Each journal should have its own set of tags.

Tags store should clean and filter only tags which are associate to the current journal which is open

Changes to names of properties to be less confusing

  • References to uid should be updated to userid so that it is not confused to be a db unique identifier
  • References to id should be updated to journalid or postid to make it clearer it is a firebase document id

Delete tags

user should be able to delete tags and they wont to appear in any new posts

Spinners

loading spinners when journal or posts are loading

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.