Giter Club home page Giter Club logo

bookingium's People

Contributors

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

Watchers

 avatar

bookingium's Issues

Use modelTypes in all models

  • use types of modelTypes for all mongo models
  • use objects of modelObjects for all mongo models

Use default values for all non required fields? (e.g. empty strings)

Update mongoose models to use `index: true` in usefull situations

e.g. in modelObject
change:

export const ODm = {
    userid: { type: String, required: true },
    created: { type: String, default: dayjs().format('YYYY-MM-DDTHH:mm:ssZ[Z]') },
    edited: { type: String }
}

to

export const ODm = {
    userid: { type: String, required: true, index: true },
    created: { type: String, default: dayjs().format('YYYY-MM-DDTHH:mm:ssZ[Z]') },
    edited: { type: String }
}

Fix Docker Errors

 => => # npm WARN EBADENGINE }
 => => # npm WARN EBADENGINE Unsupported engine {                                                                                                                                                                                                                                                                     
 => => # npm WARN EBADENGINE   package: '[email protected]',                                                                                                                                                                                                                                                        
 => => # npm WARN EBADENGINE   required: { node: '^12.19.0 || ^14.15.0 || ^16.13.0' },                                                                                                                                                                                                                                
 => => # npm WARN EBADENGINE   current: { node: 'v18.6.0', npm: '8.13.2' }                                                                                                                                                                                                                                            
 => => # npm WARN EBADENGINE }   

app-nextjs-dev | warn  - Attempted to load @next/swc-linux-x64-gnu, but it was not installed
app-nextjs-dev | warn  - Attempted to load @next/swc-linux-x64-gnux32, but it was not installed
app-nextjs-dev | warn  - Attempted to load @next/swc-linux-x64-musl, but it was not installed

They are caused by WSL (SWC compiler is missing?) and by the NodeJS version (this project is using v18.15.0, openid is using <16.x.x

Split name into name and lastname in all schemas

First, think about if this is usefull!
Split first and lastname. Update all schemas and types, also update db (write function to automatically update db entries)

Also, if this is working, think about a way to easily save people in a way to create a "database" of persons (e.g. export/import from outlook)

Add react hook for session validation

This as a hook

export function validateSession(router: NextRouter, session: SessionProps["session"], query: { from: string }) {
    if ((session && session.status === "unathorized") || !session) {
        router.push({
            pathname: "/auth/login",
            query
        });
    }
}

Try to fix npm warnings

NOTE: Might be fixed in Mantine v5! Also look at React 18 dependency clash #1201
=> maybe switch to yarn instead of npm?

npm WARN Found: [email protected]
npm WARN node_modules/react
npm WARN   peer react@">=16.8.0" from @emotion/[email protected]
npm WARN   node_modules/@emotion/react
npm WARN     @emotion/react@"11.7.1" from @mantine/[email protected]
npm WARN     node_modules/@mantine/ssr
npm WARN     1 more (@mantine/styles)
npm WARN   29 more (@mantine/core, @mantine/dates, @mantine/dropzone, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer react@"^16.8 || ^17.0" from @radix-ui/[email protected]
npm WARN node_modules/@mantine/core/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-primitive
npm WARN   @radix-ui/react-primitive@"0.1.4" from @radix-ui/[email protected]
npm WARN   node_modules/@mantine/core/node_modules/@radix-ui/react-scroll-area
npm WARN
npm WARN Conflicting peer dependency: [email protected]
npm WARN node_modules/react
npm WARN   peer react@"^16.8 || ^17.0" from @radix-ui/[email protected]
npm WARN   node_modules/@mantine/core/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-primitive
npm WARN     @radix-ui/react-primitive@"0.1.4" from @radix-ui/[email protected]
npm WARN     node_modules/@mantine/core/node_modules/@radix-ui/react-scroll-area
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: @radix-ui/[email protected]
npm WARN Found: [email protected]
npm WARN node_modules/react
npm WARN   peer react@">=16.8.0" from @emotion/[email protected]
npm WARN   node_modules/@emotion/react
npm WARN     @emotion/react@"11.7.1" from @mantine/[email protected]
npm WARN     node_modules/@mantine/ssr
npm WARN     1 more (@mantine/styles)
npm WARN   29 more (@mantine/core, @mantine/dates, @mantine/dropzone, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer react@"^16.8 || ^17.0" from @radix-ui/[email protected]
npm WARN node_modules/@mantine/core/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-use-callback-ref
npm WARN   @radix-ui/react-use-callback-ref@"0.1.0" from @radix-ui/[email protected]
npm WARN   node_modules/@mantine/core/node_modules/@radix-ui/react-scroll-area
npm WARN 
npm WARN Conflicting peer dependency: [email protected]
npm WARN node_modules/react
npm WARN   peer react@"^16.8 || ^17.0" from @radix-ui/[email protected]
npm WARN   node_modules/@mantine/core/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-use-callback-ref
npm WARN     @radix-ui/react-use-callback-ref@"0.1.0" from @radix-ui/[email protected]
npm WARN     node_modules/@mantine/core/node_modules/@radix-ui/react-scroll-area
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: @radix-ui/[email protected]
npm WARN Found: [email protected]
npm WARN node_modules/react
npm WARN   peer react@">=16.8.0" from @emotion/[email protected]
npm WARN   node_modules/@emotion/react
npm WARN     @emotion/react@"11.7.1" from @mantine/[email protected]
npm WARN     node_modules/@mantine/ssr
npm WARN     1 more (@mantine/styles)
npm WARN   29 more (@mantine/core, @mantine/dates, @mantine/dropzone, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer react@"^16.8 || ^17.0" from @radix-ui/[email protected]
npm WARN node_modules/@mantine/core/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-use-direction
npm WARN   @radix-ui/react-use-direction@"0.1.0" from @radix-ui/[email protected]
npm WARN   node_modules/@mantine/core/node_modules/@radix-ui/react-scroll-area
npm WARN
npm WARN Conflicting peer dependency: [email protected]
npm WARN node_modules/react
npm WARN   peer react@"^16.8 || ^17.0" from @radix-ui/[email protected]
npm WARN   node_modules/@mantine/core/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-use-direction
npm WARN     @radix-ui/react-use-direction@"0.1.0" from @radix-ui/[email protected]
npm WARN     node_modules/@mantine/core/node_modules/@radix-ui/react-scroll-area
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: @radix-ui/[email protected]
npm WARN Found: [email protected]
npm WARN node_modules/react
npm WARN   peer react@">=16.8.0" from @emotion/[email protected]
npm WARN   node_modules/@emotion/react
npm WARN     @emotion/react@"11.7.1" from @mantine/[email protected]
npm WARN     node_modules/@mantine/ssr
npm WARN     1 more (@mantine/styles)
npm WARN   29 more (@mantine/core, @mantine/dates, @mantine/dropzone, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer react@"^16.8 || ^17.0" from @radix-ui/[email protected]
npm WARN node_modules/@mantine/core/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-use-layout-effect
npm WARN   @radix-ui/react-use-layout-effect@"0.1.0" from @radix-ui/[email protected]
npm WARN   node_modules/@mantine/core/node_modules/@radix-ui/react-scroll-area
npm WARN
npm WARN Conflicting peer dependency: [email protected]
npm WARN node_modules/react
npm WARN   peer react@"^16.8 || ^17.0" from @radix-ui/[email protected]
npm WARN   node_modules/@mantine/core/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-use-layout-effect
npm WARN     @radix-ui/react-use-layout-effect@"0.1.0" from @radix-ui/[email protected]
npm WARN     node_modules/@mantine/core/node_modules/@radix-ui/react-scroll-area
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: @radix-ui/[email protected]
npm WARN Found: [email protected]
npm WARN node_modules/react
npm WARN   peer react@">=16.8.0" from @emotion/[email protected]
npm WARN   node_modules/@emotion/react
npm WARN     @emotion/react@"11.7.1" from @mantine/[email protected]
npm WARN     node_modules/@mantine/ssr
npm WARN     1 more (@mantine/styles)
npm WARN   29 more (@mantine/core, @mantine/dates, @mantine/dropzone, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer react@"^16.8 || ^17.0" from @radix-ui/[email protected]
npm WARN node_modules/@mantine/core/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot
npm WARN   @radix-ui/react-slot@"0.1.2" from @radix-ui/[email protected]
npm WARN   node_modules/@mantine/core/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-primitive
npm WARN
npm WARN Conflicting peer dependency: [email protected]
npm WARN node_modules/react
npm WARN   peer react@"^16.8 || ^17.0" from @radix-ui/[email protected]
npm WARN   node_modules/@mantine/core/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot
npm WARN     @radix-ui/react-slot@"0.1.2" from @radix-ui/[email protected]
npm WARN     node_modules/@mantine/core/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-primitive
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '[email protected]',
npm WARN EBADENGINE   required: { node: '^12.19.0 || ^14.15.0 || ^16.13.0' },
npm WARN EBADENGINE   current: { node: 'v18.5.0', npm: '8.13.2' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '[email protected]',
npm WARN EBADENGINE   required: { node: '^12.19.0 || ^14.15.0 || ^16.13.0' },
npm WARN EBADENGINE   current: { node: 'v18.5.0', npm: '8.13.2' }
npm WARN EBADENGINE }

Update form layout

Also update "child" dialog:

  • deal memo form, venue form, lopro form, hotel form, band form
  • try to create simpler understanding, better and faster workflow,

Add specific band layout to list usefull informations

Create BandList component to list bands and to go to specific band

  • list band members
  • and list all other usefull informations
  • list all deal memos for a specific band
  • list all contracts for a specific band
  • list all tours based on their date
  • add a field to add ISRC codes (and also list them => also add a field to add starting number => increment on new submission; this needs to also update the db models and might need new collection(s) in db!)
  • add calender tab to every band and list concerts/shows or meetings (this needs more subtasks and needs additional collection(s) in db!)

Make everything editable!

Change header text based on page

  • e.g. if on page "/add/deal-memo" write "Add Deal Memo" to header
  • when working on this, also update links.ts to add more meta data (e.g. header text / slug) and rework to use this data everywhere (=> could also be a new ticket!)

Use FormInputs in all other forms

Use AddressInput, CompanyInput, ContactInput and ContactPersonInput in all forms to avoid duplicates

=> also check, if model interfaces can be used. Look at this (nested types in form)

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.