Giter VIP home page Giter VIP logo

hacker-stories's Introduction

Hi there ๐Ÿ‘‹

hacker-stories's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

hacker-stories's Issues

Persist filter settings with local storage.

This feature should be implemented after at least one filter on stories is added.

  • Filter settings are lost when page is refereshed.
  • Save the filter settings in local storage, so that it is persisted even on page referesh.

Any discussion doubts, or implementation detail should be done below in comments of this issue.

Implement Filter on stories by description.

  • Every story either have the key text or not.
  • This text key represents the description for that story.
  • Use it to filter stories by description.

Scope

  • Filter on the basis of whether a story have description or not.

image

Implement Filter on stories by time range.

  • Every story have a timestamp key named time.
  • Use that timestamp to filter the stories based on the selected time range.

Implement something very similar to this UI.

image

Any doubt or implementation detail should be discussed in below comments.

Implement filter on stories by number of comments.

  • Every story have comments and number of comments is denoted by key descendants.
  • Use that descendants key to filter the stories by selected range of comments.

Scope

  • Add filter by gte (greater than or equall to) number of comments.
  • Add filter by lte (less than or equall to) number of comments.

Implement something very similar UI.

image

Any query, discussion, or implementation detail should be done below in comments.

Add functionality to search stories by title.

  • Right now we are fetching random stories.
  • Add a search box to filter and show stories by searched title.

Scope

This should be a frontend search only, as the API in use does not have endpoint to fetch via topic.

image

Desktop view redesign.

  • The web app is designed with mobile first approach.
  • Redesign the desktop view with media query.
  • The basic design requirement is to have 3 cards in one row (Can be achieved easily with flexbox).
  • The mobile view should remain same.
  • For simplicity let's have only one break point which is 768px.

Desired Output is something similar to this image:

image

Add 404 not found page.

  • Use react-router-dom for routing.
  • Capture invalid routes and show 404 not found page.
  • On 404 page, just download and add the following svg.

hs_page_not_found

Show count of stories on top right.

  • On top right show the number of stories currentlly in view.
  • There is a state with array of stories.
  • Length of that array should be enough to show the count of stories in view.

Roughly something like this.

image

Implement infinite scroll on stories.

  • Currently we have a load more button.
  • This button when clicked loads 10 more stories.
  • Remove this button and add infinite scroll.
  • When we scroll to the bottom of the page it should fetch 10 more stories.
  • Instead of having to click the load more button.

Detail

Just moving the button onClick login to the point when scroller reaches end of page should do the job.

image

Change the `Past` button text to `Best`.

  • File path: src/components/menu/menu.component.jsx line 39
  • Change the text Past to Best.

That tab is for the best hackerNews stories not specifically for the the past stories.

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.