Code Monkey home page Code Monkey logo

amcat4react's People

Contributors

kasperwelbers avatar nruigrok avatar vanatteveldt avatar

Watchers

 avatar  avatar  avatar  avatar

amcat4react's Issues

Check state consistency

It would be good to run through all components to see if state/values is always consistent when e.g. switching index or amcat

Refactor upload and move to typescript

Edit: move is mostly complete, only upload is left, but that probably needs a bit of refactor first


I think we should move to type script.

This can be done by installing typescript and renaming sources files to tsx one by one. Imports also need to be changed AFAICS, it doesn't automatically check for a tsx file if you don't specify an extension (?)

Benefits:

  • Better automatic documentation, especially of props
  • Automatic checking especially of props and callback argument types -> fewer bugs
  • Better autocomplete in editor

Process:

  • https://webpack.js.org/guides/typescript/ install typescript and ts-loader and set webpack to run tsx files through ts-loader
  • change jsx: react to jsx: react-jsx in tsconfig [https://stackoverflow.com/questions/64656055/react-refers-to-a-umd-global-but-the-current-file-is-a-module]
  • deal with lots of error messsages

Useful links:

add routing

I want to be able to point to an article and possibly to a query

Related (?), I want to have an host and index in the url to point people to the :right" location for a client

allow filter on url (and text?) fields?

Selecting urls from a list doesn't make sense, but doing a substring/regex/elastic search as filter might.

This might actually work on all text fields, and/or we could think about a category for textual fields that are not really part of the document text, e.g. location, description, etc?

Highlighting article not refreshed until opening a new article

To reproduce:

  • choose an index, go to articles tab, open first article (no highlighting)
  • query on a word in that article (e.g. Senate in sotu test index). Articles table is now highlighted.
  • open the first article again, should be highlighted but isn't
  • open any other article, and then re-open the first article. This will fix the highlighting

(similarly, changing/removing the query and then re-opening the same article will show the old highlighting)

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.