Militham / search

Visualize Python package metadata and browse advisory results.

Home Page:https://thoth-station.ninja/search

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Visualize Python package metadata and browse advisory results.

https://thoth-station.ninja/search

License:GNU General Public License v3.0


Languages

Language:TypeScript 96.4%Language:JavaScript 2.4%Language:HTML 1.1%Language:Python 0.0%Language:Shell 0.0%