Coder Social home page Coder Social logo

simon-lammes / shared-concepts Goto Github PK

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

A learning app with focus on exercises and considering relationships between foundations and higher lever concepts

Home Page: https://shared-concepts.firebaseapp.com

JavaScript 1.66% TypeScript 70.05% HTML 24.80% CSS 3.48%

shared-concepts's People

Stargazers

 avatar

Watchers

 avatar  avatar

shared-concepts's Issues

Social Interaction

Requested Feature

After logging in you see your profile picture and name. By clicking on it, you are navigated to the profile page. There you can set your profile to public. After that you are able to search other public profiles. This will be the foundation for a 1v1 mode where you can challenge a friend with exercises on topics both of you choose.

Technical implementation

  • There should be a profiles collection in the root of firestore. The key of each profile is its associated user id.

put keys outside of repository

Travis CI offers environment variables. Maybe the keys can be put there. Affected are the following tokens:

  • Travis CI secure token

  • messagingSenderId in environment.prod.ts

  • apiKey of firebase in environment.prod.ts

Travis CI

This blog post describes setting up Travis CI in a very similar environment to this one.

functionality to revert settings changes

The user should be able to revert his changes to the settings. Therefore, when a user changes his settings, his previous settings should be saved inside a NGXS state model. When he presses a revert button or "Strg + Z" the user goes back to his previous settings. It is okay to store the previous settings in localstorage but the list of previous settings should not grow endlessly.

Top Level Concepts should not be preloaded

Problem

Currently all top level concepts are loaded when the concept state is initialized. This means they are also leaded when the user does not navigate to the concepts page. Also the top level concepts do not have to be loaded when the user just navigates to a specific concept like so: '/concepts/Neurology'.

Task

The top level concepts should only be loaded when the user requests to see them by navigating to '/concepts'.

Possible Procedure

  • In the concept page, check whether a concept key is provided in the url. If not, the user currently navigated to the top level concepts page.
  • In that case trigger the loading of the top level concepts. It would be nice if name of the action is changed so that it matches the naming convention of being passive. Suggestion: TopLevelConceptsRequested
  • You can verify the correct behavior by deleting localstorage and afterwards directly navigating to a url other than '/concepts'. When the network tab shows no backend calls for fetching top level concepts, you succeeded.

Displayed Concepts selector

Currently the concept.page.ts is responsible for filtering the displayed concepts. Instead this logic should be put inside a parameterized selector inside the concept.state.ts. This selector should take the concept key (to which the user currently traversed) and return the concepts that should be presented to the user. If no key is provided the user did not navigate at all and should be seeing the top level concept.

The same structural change should be made for the inspectedConcept$ inside the concept.page.ts.

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.