Giter Club home page Giter Club logo

search's Introduction

Thoth Search

CI/CD

This is a React powered web app for displaying Python package metadata and insights using Thoth Advise. You can check of the latest build here: thoth-station.ninja/search

See a bug?

Create an issue describing the bug and how to reproduce it. It helps if you include the advisor ID or package name and version with your issue.

How to contribute

Fork the project and install the dependencies using yarn. Also take a look at github.com/alan2207/bulletproof-react as a guide on how to structure new components. This project follows that file structure mostly. More info bellow and in the documentation /docs

Project Structure

Most of the code lives in the src folder and looks like this:

src
|
+-- assets            # assets folder can contain all the static files such as images, fonts, etc.
|
+-- components        # shared components used across the entire application
|
+-- config            # all the global configuration, env variables etc. get exported from here and used in the app
|
+-- features          # feature based modules
|
+-- hooks             # shared hooks used across the entire application
|
+-- lib               # re-exporting different libraries preconfigured for the application
|
+-- providers         # all of the application providers
|
+-- routes            # routes configuration
|
+-- stores            # global state stores
|
+-- test              # test utilities and mock server
|
+-- utils             # shared utility functions

Adding a new metric card

A commom new feature is adding a new metric card to either the package dashboard or advise summary dashboard. Advise metrics are contained in the src/features/advise (read up on what a feature is in the docs or here). The metrics themsleves are defined in the src/features/advise/hooks/useMetrics.ts hook and its UI in src/features/advise/components/{metric_name}Metric. Follow the structure of one of the already created metrics. Metrics are finally placed in routes/ImageSummary inside the feature.

This same process is the same for metrics for a package but now under the package feature.

Documentation

We use react-styleguidist for documentation building. Check out their docs to learn more.

To run docs locally: styleguide:build

To build docs: yarn run styleguide

search's People

Contributors

gkrumbach07 avatar sesheta avatar fridex avatar khebhut[bot] avatar

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.