Giter Site home page Giter Site logo

prive's People

Contributors

dependabot[bot] avatar github-actions[bot] avatar moreorover avatar

prive's Issues

Create /admin/orders endpoint

Create /admin/orders endpoint

The objective is to construct an endpoint, /admin/orders, which will offer functionalities for viewing, creating, and updating orders. This endpoint will serve as a vital tool for administrators to manage orders efficiently.

Key features will include:

  1. View Orders: The endpoint will enable administrators to view all existing orders, including crucial details pertaining to each order.

  2. Create Orders: The endpoint will also include the functionality to create new orders. It will accept and validate the necessary parameters for order creation.

  3. Update Orders: Administrators will be able to update existing orders. Any changes made to order details should be implemented immediately.

The successful deployment of this endpoint will streamline the procedure of order administration. All functionalities should also be well-documented and thoroughly tested to ensure seamless operation.

skeleton

Research if skeleton migrating to skeleton UI would result in better development experience

Stock page improvments

Stock table

  • update created_by field to reference profiles table
  • update updated_by field to reference profiles table
  • update length_cm field to be not null and default value 0#
  • update weight_expected_grams field to be not null and default value 0
  • update weight_received_grams field to be not null and default value 0
  • update superforms createStockSchema to represent above changes

/stocks page

  • add in table column Created By which will display creators full name
  • add in table column Updated By which will display updaters full name

scripts/utils.ts

  • update stock.purchased_at to use string instead of Date
  • update updated_by to randomly assign updated_by field

incorrect supabase type declaration

Incorrect type is being inferred here.

const { data: stock, error: stockError } = await event.locals.supabase

const stock: {
    id: string;
    created_by: SelectQueryError<"Referencing missing column `full_name`">[];
    updated_by: SelectQueryError<"Referencing missing column `full_name`">[];
}[] | null

However, data returned is correct.

Also page.svelte does not see full_name variable on returned object

<TableBodyCell>{stock.created_by?.full_name ?? "--"}</TableBodyCell>

<TableBodyCell>{stock.updated_by?.full_name ?? "--"}</TableBodyCell>

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.