Giter Club home page Giter Club logo

react-json-schema-form-extras's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

react-json-schema-form-extras's Issues

IMO popup enter to search

In the IMO search popup window, it seems like it would be a major convenience to be able to press enter to trigger the search. Right now in Chrome enter doesn't work, I need to click the search button.

onChange

May need to add onChange or some other handler so that the data of custom widgets stays in sync with Mozilla's json schema form view of the data. This will matter when we try to submit the form - the Mozilla object will need access to the widget's data.

Will build a small playground to experiment with submission of custom widgets.

AsyncTypeahead ignores selection

For some reason during testing it often happens, that when selecting an item typeahead simply ignores it, maybe we need to switch to in-house implementation instead of react-bootstrap-typeahead.

Support configured labelKey function in typeahaed fields

We need to be able to query CPT codes in RxNT and present results in the same way, it's done currently - ${Code} - ${Description}
Typeahead package allows to do this, with a function specified as a labelKey, but we can't serialize function in a JSON, so we'll have to find some other way to do this.

AsyncTypeaheadAPI auth error, while integration

During integration, Autocomplete does not work with following error
Uncaught TypeError: Cannot read property '0' of undefined
at search (AsyncTypeaheadAPI.js:17)
at AsyncTypeaheadField._this.handleSearch (AsyncTypeaheadField.js:56)
at Container.eval (

Table with custom field autocomplete can make data inconsistent

Use case is following,
We have allergies, that have a server autocomplete functionality (they have allergy name and id).
We add allergies to the Table and want to edit Allergy name.
When editing allergy name, we also want to use Autocomplete from server side.

Problem.
Currently autocomplete will change a single field name leaving the old id intact, and making data inconsistent.

Solution:
We need to change both Allergy name and Allergy ID on table autocomplete.

Cell resizing on edit

@mavarazy

When clicking a cell in the table, the input resizes and squishes the other table cells. In order to mirror RxNT's billing system (and to have a table that looks clean), we probably don't want any resizing to happen. The input should be the same size as the table cell.

I dug around for about 30 mins in the CSS & in the react bootstrap table project to try to come up with a solution, figured I'd run it by you and see if you had any ideas. Also, it may be better to solve this inside of the extras project and not with slap-on CSS in the encounter project, since I imagine users are generally going to want this fixed.

The main problem I ran into is that I can't see which CSS classes are being added via chrome's inspector, because the input element is dynamically inserted.

RxNT Fork Needed

This project is now at a point that a fork is needed for RxNT-specific features. We can move the widgets for allergies and medications to this other repository, then leave this project with a simple abstraction that allows for using asyncTypeahead via a decorator.

This project will also soon contain a grid widget, and possibly other abstract widgets.

inputField: none

In some cases for the RxNT encounter, we don't want any input search field shown above the table (we might use only the plus icon next to the collapser, for example).

It would be great to be able to exclude the inputField with a 'none' option instead of having to provide a 'typeahead' or 'asyncTypeahead'.

TableField exception during integration

VM7679 TableField.js:44 Uncaught TypeError: Cannot read property 'map' of undefined
at addIndex (VM7679 TableField.js:44)
at TableField._this.toTableConf (VM7679 TableField.js:147)
at TableField.render (

Allow Table columns order configuration

Currently when rending Table with no configurations, order of columns is determined by the order in schema properties part.

{
   type: "object",
   properties: {
      a: { type: "boolean" },
      b: { type: "string" }
   }
}

We expect a to be the first column and b to be the last one. While testing this caused problems - a & b switched position, after saving and reading from mongo.

In order to handle this cases we need to be able to specify predefined column order.

Use uiSchema instead of externalFieldsData

I think uiSchema is the original place to put ui related configurations, so I reused and so we don't need to have externalFieldsData as a separate configuration. I think that makes things simpler.

Remove IMO field configurations

IMO field will make the same requests for Problem and details, there is no need to store it in configurations, since they are not going to change.
We can remove extra IMO configuration, making support easier in long term

Table CSS loads from CDN

Currently the CSS file for the table module loads from the CDN provided by the table creator. Will probably want to adjust this dependency to rely directly on the CSS file inside of the npm package.

IMO should be doing authentication itself

After talking with Raj, it turns out we are responsible for authentication with RxNT to make IMO working. Authentication info is taken from externalTemplateV2User and encounterTemplateV2EncounterInfo parent infos

{  
  "ApplicationName": "EHR",
  "ExternalDoctorCompanyId": externalTemplateV2User.DoctorCompanyID
  "ExternalAppLoginId": encounterTemplateV2EncounterInfo.LoggedInUserID

}

And should be submitted to https://devqa.rxnt.com/PMV2API/billing/authentication/AuthenticateExternalUser for credentials

Expandable fields

One of the requirements of RxNT is to have some fields expandable and collapsible, we need to support this functionality

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.