Code Monkey home page Code Monkey logo

Comments (6)

vvatelot avatar vvatelot commented on May 31, 2024

🙏🏻 Praise: Thank you for your contribution! I think this needs a more detailed user scenario:

  • What happens exactly on click of the badge? (open a popin/popup..?)

from ecoindex_badge.

guillaumew avatar guillaumew commented on May 31, 2024

If a page doesn't have a score, if a user clicks on the badge:

  • then it opens the eco-index website
  • target is set according to the way it is implemented (new tab with the code provided in readme)
  • when the ecoindex website opens, the requested URL is already set in the input and it launches the test
  • Therefore I can the the popin with the text: "L’analyse est en cours pour « https://xxx »"
  • If I wait a minute I can see the score
  • When the initial page is reloaded, the score is displayed

OR

If a page doesn't have a score, if a user clicks on the badge:

  • then it opens the eco-index website
  • target is set according to the way it is implemented (new tab with the code provided in readme)
  • when the ecoindex website opens, the requested URL is already set in the input
  • a message reads: "This page doesn't have a score yet. Click on 'Tester le site' in order to get its environmental footprint." (to be adapted) The message can be displayed in a Toast or Snackbar in order to understand that it is contextual.

Both scenarios are fine to me.

from ecoindex_badge.

github-actions avatar github-actions commented on May 31, 2024

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

from ecoindex_badge.

guillaumew avatar guillaumew commented on May 31, 2024

I just realized this issue might be more about ecoindex_bff

from ecoindex_badge.

vvatelot avatar vvatelot commented on May 31, 2024

Hello @guillaumew IMO, this is a issue about the plugin itself and not the BFF. The main question that we need to answer to is "what do we want to do with this badge?"...

The first idea was to keep it the smallest and simpliest as possible... But if we think it could be interesting to make it evolve, let's do it...

from ecoindex_badge.

github-actions avatar github-actions commented on May 31, 2024

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

from ecoindex_badge.

Related Issues (10)

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.