Giter VIP home page Giter VIP logo

stackoverflow-instant-answers's People

Contributors

pustur avatar solal avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

stackoverflow-instant-answers's Issues

Some feedback

Thanks for the extension! I think it has a lot of potential.

First impressions:

  • Move the answer box below the google snippet, or, even better:
    • Ability to show the question
  • Telemetry should be opt-in
  • Animation is distracting. Actually the whole left panel with the checkmark and vote count is a bit useless.
  • Add light mode

Requests with special characters fail

Hi there, just installed the extension on Brave/Win10 but the buttons don't work.

When google loads this error shows up in the console.

Failed to load resource: the server responded with a status of 400 (Bad Request) 

// and this is the bad request:
https://api.stackexchange.com/2.2/questions/60251889;tagged;tagged;tagged;tagged;tagged;tagged;6884313;tagged;tagged/answers?order=desc&sort=activity&site=stackoverflow&filter=!b6Aub*uCt1FjWD

Clicking a button throws another error:

base.js:151 Uncaught TypeError: Cannot read property 'body' of undefined
    at addAnswerContent (base.js:151)
    at HTMLButtonElement.<anonymous> (base.js:111)
    at HTMLButtonElement.dispatch (jquery-2.2.4.min.js:3)
    at HTMLButtonElement.r.handle (jquery-2.2.4.min.js:3)

As a user I want my results to be cached

  • Only cache about 1k results
  • If ceiling is reached, purge results not accessed recently (individual results need recency timestamp for when they were last accessed).
  • If result is older than 6 months, purge it to retrieve a newer version of the result.

Remove jQuery completely.

jQuery is being used for some (not all) DOM access and manipulation.
Remove it entirely in favor of vanilla JS.

As a user I want my "seen" answer status to be retained

  • Use Chrome's storage API to store the values locally.
  • Retain about 2k "seen" statuses to be mindful of the user's storage.
  • If 2k limit reached, purge "seen" statuses not accessed recently (needs timestamp on the status to store latest access).

Styles cleanup

  • Move all styles to SCSS.
  • Cleanup the mess that is the current stylesheet to make it easier to maintain.

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.