Giter Site home page Giter Site logo

onto-med / top-frontend Goto Github PK

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

JavaScript based frontend of the TOP Framework

License: MIT License

Dockerfile 0.14% HTML 0.28% JavaScript 4.84% Vue 82.88% TypeScript 11.07% Sass 0.33% Shell 0.45%
quasar-framework typescript vuejs

top-frontend's People

Contributors

christophb avatar dependabot[bot] avatar fmatthies avatar konradhoeffner avatar ralphbln avatar

Watchers

 avatar  avatar  avatar

Forkers

konradhoeffner

top-frontend's Issues

Let users select from a list of default constants

Constants are used in composite and derived expressions. Currently, users can only enter numbers, but there may also be constants like Pi, true and false. They should be retrieved from the backend and provided via a select field.

Introducing default aggregation function

Some functions do not support multiple values for a phenotype argument. They will use a default aggregation function, to generate a single value. This aggregation function should be selectable by users, when building queries. Each in-/exclusion criterion has it's own default aggregation function.

  • add field where users can select the default aggregation function

Improve input fields for restrictions/ranges

  • restrict selectable comparators for minimum (>, >=) and maximum (<, <=)
  • add stacked labels to minimum and maximum field
  • remove "values" text between minimum and maximum fields

Entity tab should automatically scroll to bottom

e.g., if the user adds some code fields, the tab should scroll down. Otherwise it is really painful to add a long list of codes, because the user always has to scroll manually after adding one entry.

Close unchanged tabs on tab switch

Currently, tabs remain open and the tab bar gets messy very fast. The user is forced to occasionally close some unused tabs.

  • if user switches to another tab: close previous tab if it was not changed
  • add function to "pin" tabs, so that they remain open, even if they are unchanged

Manipulation of term codes

Allow users to search for taxonomy terms by selecting a taxonomy (e.g. LOINC) and entering codes or term names. The term should then be saved as annotation in the neo4j database.

It is currently unclear where terms can be searched in. Maybe we will store them in the backend or we will query a dedicated terminology service.

Add switch component to specify mapping to scores

Unrestricted boolean phenotypes and restricted phenotypes shall be mapped to score values. For this, a simple component is required, where each row represents one mapping. The user should be allowed to select one phenotype per row and specify a score value. One additional row is required for default values.

Mockup:

col 1 col 2 col 3
phenotype select field input field add btn
default value: input field
phenotype 1: 1 remove btn
phenotype 2: 2 remove btn

Managing entity versions

  • Entities have one or more versions.
  • One of this versions is the current version.
  • All versions of an entity can be listed, including version number, creation date and current version state.
    • Versions are deletable - except for the current version.
    • An entity can be reverted to a version, that is not the current version. Revert is possible independently from the chronological order.
    • The entity form can be populated with data from another version. After population the user is able to modify the data and save if as a new version.
  • Entities are deletable too. Deleting an entity will delete all of it's versions.
  • To be discussed: Where should the function to delete an entity be placed?

Add parameter to disable authentication

In it's current development state an authentication service is mandatory to run the TOP framework.

There should be an option, parameter or environment variable to control whether the user must be authenticated to use the frontend.

Autofocus entity title field

When the user creates a new entity (i.e., right click on entity tree > select one of the create options), the title field in the new entity tab should be focused automatically.

Query builder

Kannst Du Dir im Frontend ein Formular zur Spezifikation von Abfragen vorstellen mit folgenden Feldern: Age, Gender, Inclusion, Exclusion und Projection (vielleicht noch ein Paar andere Sachen, wie z.B. das Datum), in die man dann z.B. per d&d die gewünschten Klassen ziehen kann?

Updating IDs

Users cannot update the ID of content (e.g., organisations). The new ID is used as URL parameter, thus the old entity is not referenced correctly when sending a PATCH request.

Duplicate entities option

Extend the context menu of the entity tree with an option to duplicate the selected entity. When this option is used, a new entity should be created with the same data as the duplicated entity.

  • an ID must be generated for the new entity
  • maybe this option should be restricted to a selected set of entity types?

Improvements to entity form

  • focus title field when new entity is created
  • preselect unused language when adding a new title field
  • rearrange form components
  • make some fields mandatory, check presents of values and add indicator e.g.: "*"

Add keyboard shortcuts

e.g.:

  • submit current entity form (ctrl+s)
  • close current entity tab (maybe esc)
  • switch tabs (ctrl+arrow)

Switching repositories while loading results in inconsistently displayed data

Data are loaded in async functions and populated when promises are resolved. If, for example, a repository is very large and takes some time to load, users may switch to another repository while loading is still performed in background. The result would be that entities from the previous repository are displayed in the entity tree.

Before resolving a promise, it must first be checked if the repository is still the same as it was when the promise was created.

Use map to store entities?

Using a HashMap to store entities, loaded from server, could improve performance for repositories with many entities.

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.