Giter Site home page Giter Site logo

cartotype's Introduction

Cartotype

Prototype of a Shopping Cart with Administrative Capabilities

Tools intentionally used for groking

  1. custom hooks a. useMultiStepForm b. useLocalStorage
  2. context API,
  3. advanced TypeScript,
  4. reducing effect dependencies,
  5. use reducer to extract state logic into
  6. querying a series of state updates (aka batch updates)
  7. Multi-step forms with state management
  8. Forwarding refs

Aim is to keep components β€œpure” without overcomplicating modularization.

Run the app locally

- go to the root directory
- `npm install`
- `npm run dev`
- go to http://localhost:5173

This app is also a collection of agnostic components intended to be able to be plugged into any React app

cartotype's People

Contributors

shelrothman avatar

Watchers

 avatar

cartotype's Issues

clean up

  • find all TODOs and either do them, or create an issue for them
  • clean up all the code, remove anything not used, modulate, etc

streamline ui bits

streamline the design of all the subcomponents to be modern and clean and in sync with one another

lazy load images in the storeItem cards

implement lazy loading using the react-skeleton-loader within in image SO THAT the user doesnt see the ugly white squares when loading

and also just perpetual lazy loading as you scroll for when the db grows

UI | Render the storeItemTags logic to display

  • seperate type of tag by color
  • #11
  • display in Note view mode
  • #26
  • store : display on each storeItem Card in /Store -> hover over to view notes attached
  • admin : edit : on each item in selectionList AND in the edit details part
    • i.e. each of the preview cards
  • admin: preview
  • admin : add : add option in the deailForm to put them in there...
  • #9
  • #12
  • #3

add credit text to each unsplash image

  • apply whats shown in addForm to the select elements in the editForm
  • save/persist the urls and user data for each store item
    • update the db table and all cruding to it
  • render them to display in editForm
    • for the previews
      • in editForm
      • in addForm
      • in storeItemView
    • for the store

Refactor Routing

the routing is not the way it should really be if keeping it all like on the client.. issues w the routes or like refreshing..is bc its stuck in being like express routes... its not... so think about it like react with state and context and all that..

parent routes like /store cant refresh./..

Convert over all styles to new Themeing Sass

Still to do:

  • convert to modulated css files
  • side popout cart convert
  • adjust styled links in Home
  • add primary background to the divs in form steps (Admin)

once all organized -> then can start actually implementing the store-tag changes. i.e. make actual changes

Turn it into a Component Library

turn into component library
personal
store tags correlate to the Items which are components
tags correlate to tags still, eg 'modal' 'react'.. like the ones on Stack Overflow

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.