Giter VIP home page Giter VIP logo

pictura's Issues

feature: add search functionality

  • Add search page
  • Add a search input and use the hook useDebouncedValue.
  • Make the change of the value on the input change the URL "search" query.
  • Using the supabase client, which you can get with the hook "useSupabase", fetch the posts from the table "posts" where the "title" equals the search query value and order it by the most recent to the oldest post.
  • display the images in a grid. take how it is done in the src/app/(site)/app/profile/[username]/page.tsx as an example.

refactor: re-design the feed component

  • Remove post options, post owner, etc. only leave the picture alone.
  • Make the feed a new component in a separate file
  • Move the post component to a separate file

feature: improve images

  • create a column on the DB to save the image width
  • Create a column on the DB to save the image height
  • add width and height info to the post request when posting a new image (Cloudinary response returns it)
  • when displaying images, take that height and width to calculate the new image size on the grid layout and set that size for the image skeleton

fix: aside icons not adapting to light mode

the aside icons are not adapting to light mode when hovered
how to reproduce? go to app/settings/section/account

  • Change the icon hover color to be a hundred less intense.
    image

fix: posts grid items skeleton

  • get the grid container width
  • calculate each item grid based in the container width
  • calculate the size of the image rendered with that width
  • set the height to the skeleton

feat: add client routing model

Build a class for the frontend routes, so when we want to redirect the user, we have the routes centralized in a class, and if we have for some reason to change them, we can do it in just one place.

remember to put the service on the "models/routing" folder!

feat: add backend routing service

Build a class for the api routes, so when we want to redirect the user, we have the routes centralized in a class, and if we have for some reason to change them, we can do it in just one place.

remember to put the service on the "services/routing" folder!

refator: migrate log in form loading state from react hook form to use state

now we are managing the loading state of the button "log in" on src/app/(site)/(guest)/auth/log-in/page.tsx, but it is not reflecting correctly if it is loading or not, so we must

  • create a use state to handle the loading state
  • set loading true at the beginning of submitting the form
  • set loading false at the end of submitting the form
  • migrate the old loading state to the new use state (button loading and disabled state)

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.