Coder Social home page Coder Social logo

dasish / qddt-client Goto Github PK

View Code? Open in Web Editor NEW
7.0 6.0 3.0 24.48 MB

DASISH Task 3.2 - Front end web app for QDDT

Home Page: https://qddt-test.nsd.no/

License: GNU General Public License v3.0

TypeScript 76.35% CSS 1.57% HTML 20.39% JavaScript 1.62% Dockerfile 0.08%
qddt ddi restful angular-cli angular angular6

qddt-client's People

Contributors

bibi-watson avatar dependabot[bot] avatar hildeorten avatar liuy97 avatar scav avatar stignorland avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

qddt-client's Issues

build errors with your commits of qddt-client on June 6

please fix them. It's better that you can create an issue before you commit any code so that others can understand why you commit and when you finish committing. The issue number can be referred in your commit message.

Question text not saving

I had the same problem today as Lizzy had last week - I entered a question and it showed up as saved

But when I tried to attach it to a concept it didn't come up as an option

It was the question "conflit"

Adding authors

Should be possible to add authors (name and affiliation) for survey, study and (especially) module

In ESS it is not necessary to have this function for individual concepts or questions - though this might be useful for other studies

grid/list edit (questionlist) edit fails

When selecting an item in a grid for editing, it opens correctly, but when u select anything in modal form, focus changes in list to first element.
Find a way to keep focus on selected item.

exception when creating category template

Description:

After creating and editing category templates several times, this exception happens. But this error maybe does not occur immediately when the first category template is created.

Requestion boday:

  categoryType:"LIST"
  children:[{id: "378949ec-65d0-11e5-9d70-feff819cdc9f", modified: [2015, 1, 1, 12, 0, 1],…}]  
  description:"sdf"
  label:"s3"
  name:"S3"

Exception message:

Uncaught could not execute statement; SQL [n/a]; constraint [uk_98qo8cf5kyu4c5d0bcrd04cqg]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement

History icon not working

The history icon - clock wrapped in an arrow - doesn't seem to be working. Even where there are edits implemented it shows no info on history

I tested it for concepts specifically

Improve loading time

Change what is lazy and what is eager
Survey + study by user
topic + concept by study
QuestionItem +question + responsedomain by concept/instrument
instrument by study
revision on demand.

More users in qddt

We need more user accounts in qddt as soon as the Resonse domains have been published

CommentListComponent fetch strategy

Currently when a comment is added, the application is fetching the last entities in as a pageable resource. We are likely going to have to consider adding items on the fly locally for the user adding a comment if the server is seeing to much load from this.

Add an "undo" button

Is it possible to add an undo button which can be used from anywhere in the tool to undo the last action - in case you press a button and for e.g. delete something by mistake

problem of displaying revisions

Firstly, a survey program is created. Its revision has a revision number (1) with Reason "created". When a study is created for this survey. The survey will have two revision numbers: (1) and (2), where both of the reasons are "created". But the revision number of the new created study will be (2).

(@hildeorten, please check whether this workflow is consistent with what you expect.)

Add confirmation box to delete operations

Possibly dangerous to have such an easy delete option next to questions

At the same time it would be helpful to be able to delete concepts/questions - and text within these - in case they mistakenly get entered in the wrong place. It should be possible to undo genuine human error (spotted and corrected prior to a published version) without having to assign a rationale/new version

blank pages when having cors problems

In IE10, XMLHttpRequest required Cross Origin Resource Sharing (CORS) or required CORS preflight.
This will result in the failure of creating questions.

Testing

For now, there are not any tests in the application. This will change as Angular 2 gets closer to exiting its alpha.

Currently, we are looking for a better strategy than wait(); for asynchronous tests. Feel free to comment if anyone has any pointers or fixes for this.

Breadcrumbs menu

Currently its just a simple hack, it needs to be improved.

It is based on a lot of null / not null and hide/show flags in home.component.

add category template

Refs #24,

A category template has been supported. A category template is a group including categories or sub-groups of categories.

improve loading time client

In order to improve on loading time
change code to load revision history on demand (i.e. when user click on "link")
not when page loads. That will also fix a "bug" that revision isn't updated after a save

response domain

Response domain has to be supported in qddt-client. Category will be implemented as well.

EventEmitter.next should send data

Some of the event logic inside EventEmitter.next() could be used to transport more data, instead of barely doing anything.

Right now a we have code like the following code, which instead of sending a string, could send a User object to the listening component.

this.loginEvent.next('event');

exception when creating a category scheme

checkout the latest qddt and create a category scheme (Type "List") with one category ("VERY_BAD") from demo.

Exception Message

{
  "id" : "statement",
  "url" : "http://nsd277.nsd.lan:8080/category/create/",
  "exceptionMessage" : "could not execute statement; SQL [n/a]; constraint [uk_98qo8cf5kyu4c5d0bcrd04cqg]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement"
}

All edit_components, when submit, close

When user press submit, the dialogboxes doesn't close.
this is true for
/survey/edit/survey_edit.components.ts
/study/edit/study_edit.components.ts
/topic/edit/topic_edit.components.ts
/concept/edit/concept_edit.components.ts

Concepts

Create a concept component that can add,remove and reorder child concepts.
The root concept will always have a topic as its parent.
and every concept has 0 or more question "attached" to it
questions could be added from a simple dropdown for the time being. (but should be selected from a search-result later on)
the hierarchy should be visual similar to how the comments are drawn.

Split Category into two distinct pages

On page to create different categories still to be named Category
And a new page where the "Template" creation is made (List/Range/Missing values)
Call this page Category Schema

and use Category list, Scale & Missing Value as names instead of List/Range/Missing values.

codes of a code domain can be alphanumeric

The input from @hildeorten :

It is only for scale domain that the direction is important (see issue #29 ). In a code domain codes can also be alphanumeric like 'NO','SE'. A code list also supports alphanumeric.

Codelist:
'NO' Norway
'SE' Sweden

Moving up and down hierarchy

There is a "-" sign next to survey but not next to Study or Module

Is the idea of the "-" to let you move up a level in the same way that "+" moves you down a level? Useful to have for Study or Module but not Survey which is the highest level

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.