Git Product home page Git Product logo

ignite-challenge-ii-chapter-iv's Introduction

๐Ÿ“Š About

Challenge focused on enhancing skills in ReactJS, React Query, React Hook Form and Chakra UI. The application already boasts various functionalities and stylings. The main objective was to add some code snippets to ensure the proper functioning of the image upload feature.

๐Ÿ“š Technologies e libs

๐Ÿ’ก Technology Features

React Query:

  • Infinite Queries: Employed in this application to load images stored in the database. The loading mechanism is implemented with a single click on a button.
  • Mutations: Typically used for data retrieval, mutations are responsible for creating/editing/removing data. In the application, they are utilized for registering a new image in the database.
  • Invalidations: Used to manually mark a query as stale and force data refresh. Applied in this application to mark the image listing query as stale when the mutation to register a new image is successfully executed.

React Hook Form:

  • useForm: Implementation of input registration for the image registration form, including input validations and error handling.

Chakra UI

  • Modal and Toast

๐Ÿ”„ Modified Files

All To-Do's

  • Axios request with param
  • Get and return next page param
  • Format and flat data array
  • Render loading screen
  • Render error screen
  • Render load more button if data has next page
  • Required, less than 10 MB, and accepted formats validations
  • Required, min and max length validations
  • Required, max length validations
  • Mutation API post request
  • OnSuccess mutation
  • Show error toast if image URL does not exist
  • Execute async mutation
  • Show success toast
  • Show error toast if submit failed
  • Clean form, states, and close modal
  • Register image input with validations
  • Send title errors
  • Register title input with validations
  • Send description errors
  • Register description input with validations
  • Modal with image and external link
  • Modal useDisclosure
  • Selected image URL state
  • Function handle view image
  • Card grid
  • ModalViewImage

๐Ÿ’ป Application Overview

Notion Challenge

The detailed description of the challenge can be found at:

ignite-challenge-ii-chapter-iv's People

Contributors

krochas avatar

Watchers

 avatar  avatar

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.