Coder Social home page Coder Social logo

tripby.org's People

Contributors

dependabot[bot] avatar dlbnco avatar

Stargazers

 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

tripby.org's Issues

"EditDrug" page

  1. Load EditDrugPage with current Drug data
  2. Create new Drug with new values as soon as any data is changed.
    • Create relationship between new Drug and current Drug
    • A given user can have only 1 active contribution for each Drug
  3. If a contribution is accepted, new Drug becomes current Drug. Old Drug is discarded.

Nicotine substance page isn't working

Bug report

Describe the bug

Nicotine substance page isn't working. It seems like something from api.

To Reproduce

Go to /substance/Nicotine and look at the console.

Screenshots

image

image

System information

  • Firefox 79.0
  • OS: Ubuntu 20.04

Rating system for drugs

  • Ability to rate a drug (1.0 to 5.0) and write a review.
  • Show average rating on DrugPage and list reviews.

Show proper credits and license information

Feature request

Is your feature request related to a problem? Please describe.

PsychonautWiki data is under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license
, but it still not properly referenced on the website.

Describe the solution you'd like

We should:

Attribution โ€” You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.

ShareAlike โ€” If you remix, transform, or build upon the material, you must distribute your contributions under the same license as the original.

Translations in Portuguese/Spanish

Feature request

Translations in Portuguese/Spanish can help a lot of people working with harm reduction informations.

PS: I can help with i18n!

Display interactions between substances

Feature request

The PsychonautWiki API provides information regarding drug interactions for some substances, but this is not shown yet in the interface.

Describe the solution you'd like

On each substance page, it could have a list of interactions, with links to each substance. Each type of interaction (safe, unsafe, etc.) could have a different visual treatment.

Migrate from Apollo to React Query and statically generate page props

There are just 4 queries in the entire app and Apollo is probably overkill for this. React Query has the same caching and lifecycle utilities while being probably more straightforward to integrate with data fetching in Next.js.

We should probably use getStaticProps in pages to save requests to the PsychonautWiki API and also function invocations on Vercel. The wiki data doesn't update that often, and 1 day or even more should be a good revalidate period.

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.