GithubHelp home page GithubHelp logo

iteria-app / material-ui-starter Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 18.0 23.28 MB

We are testing Iteria Lowcode using Material-UI components

Home Page: https://demo.iteria.tech

License: MIT License

HTML 0.53% TypeScript 98.95% JavaScript 0.46% CSS 0.06%
api hasura lowcode materia-ui react react-intl

material-ui-starter's People

Contributors

arobert93 avatar chvister avatar escalonc avatar hanzeltomas avatar ivanvykopal avatar jozef-slezak avatar magicsk avatar mak1k1 avatar mat-app avatar matti avatar mecirmartin avatar michal-komora avatar misosviso avatar rastislav-balcercik avatar rovel avatar shaoe avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

material-ui-starter's Issues

cleanup Types.ts

Eeach react component should have it's own input types near to functional component definition.

Data Grid filter/sort/pagination => graphql query

Goal: graphql filter/sort/page on Material-UI data grid
image
Checklist:

Support for multiple environemnts & duplicit lock filees

package.json hardcoded development:

    "build:development": "vite build --mode development",
    "serve": "vite preview",
    "codegen:watch": "cross-env DOTENV_CONFIG_PATH=./.env.development graphql-codegen --require dotenv/config  --watch --config codegen.yml",
    "codegen": "cross-env DOTENV_CONFIG_PATH=./.env.development graphql-codegen --require dotenv/config --config codegen.yml"

netlify.toml

command = "npx [email protected] i --store=node_modules/.pnpm-store && npx [email protected] run build:development"

duplicit/both pnpm lock and npm lock

Themes

  • Option in wysiwyg theme editor to chose from three themes
  • new theme 1
    • Gray background
    • White components in front with shadow
    • Rounded buttons
    • Table with simple rounded header
    • Rounded <Cards
    • Detail redesign
  • new theme 2
    • TBD

generatePage() nullpointer ak zadam viac ako jednu page

ak vybereme viacero entit tak to padne:

index.js:35435 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'type')
    at getNestedOfType (index.js:35435:33)
    at index.js:53213:31
    at eventListenerCallback (index.js:53373:9)

ak vyberiem len jednu entitu tak to funguje

`@casl` & Hasura permissions for multiple roles

@msvoro, this issue continues #31

Pages accessible only for certain roles

Entity Fields accessible only for certain roles

Extend Hasura for quering permissions

Implement either hasura action (on top of hasura permissions tables/views or rest api https://hasura.io/docs/latest/graphql/core/auth/authorization/permission-rules.html) or postgres function

query currentUserAbilities {
  currentUserAbilities {
    action
    subject
    fields
    conditions
  }
]

returns:

[
  {
    action: ['select', 'insert', 'update'],
    fields: ['id', 'seq', 'name', ...], 
    subject: 'Entity1',
    conditions: { created_by: '%current_user%'}
  },
  {
    inverted: true,
    action: ['select', 'insert', 'update', 'delete'],
    fields: ['id', 'seq', 'name', ...],
    subject: 'Entity2',
    conditions: { created_by: '%current_user%'}
  }
]

FYI, this example pull request will be used for codegen as an example.

Build failed due to warnings

I have setup netlify to preview builds for example-material-ui and it is failing due to following compilation error:

6:22:51 AM: ────────────────────────────────────────────────────────────────
6:22:51 AM:   1. Build command from Netlify app                             
6:22:51 AM: ────────────────────────────────────────────────────────────────
6:22:51 AM: ​
6:22:51 AM: $ yarn build
6:22:51 AM: yarn run v1.22.4
6:22:51 AM: $ yarn generate && react-scripts build
6:22:52 AM: $ graphql-codegen --config codegen.yml
6:22:53 AM: [04:22:53] Parse configuration [started]
6:22:53 AM: [04:22:53] Parse configuration [completed]
6:22:53 AM: [04:22:53] Generate outputs [started]
6:22:53 AM: [04:22:53] Generate src/generated/graphql.ts [started]
6:22:53 AM: [04:22:53] Load GraphQL schemas [started]
6:23:00 AM: [04:23:00] Load GraphQL schemas [completed]
6:23:00 AM: [04:23:00] Load GraphQL documents [started]
6:23:00 AM: [04:23:00] Load GraphQL documents [completed]
6:23:00 AM: [04:23:00] Generate [started]
6:23:00 AM: [04:23:00] Generate [completed]
6:23:00 AM: [04:23:00] Generate src/generated/graphql.ts [completed]
6:23:00 AM: [04:23:00] Generate outputs [completed]
6:23:02 AM: Creating an optimized production build...
6:24:10 AM: 
6:24:10 AM: Treating warnings as errors because process.env.CI = true.
6:24:10 AM: Most CI servers set it automatically.
6:24:10 AM: 
6:24:10 AM: Failed to compile.
6:24:10 AM: 
6:24:10 AM: src/theme/shadows.ts
6:24:10 AM:   Line 1:1:  Assign array to a variable before exporting as module default  import/no-anonymous-default-export
6:24:10 AM: src/theme/typography.ts
6:24:10 AM:   Line 1:1:  Assign object to a variable before exporting as module default  import/no-anonymous-default-export
6:24:10 AM: src/utils/getInitials.ts
6:24:10 AM:   Line 1:1:  Assign arrow function to a variable before exporting as module default  import/no-anonymous-default-export
6:24:10 AM: src/views/customer/CustomerListView/UpdateCustomer.tsx
6:24:10 AM:   Line 34:10:  'state' is assigned a value but never used                                                                                                                                                                                                                                                                                                            @typescript-eslint/no-unused-vars
6:24:10 AM:   Line 44:6:   React Hook React.useCallback has missing dependencies: 'customer?.email', 'customer?.name', 'customer?.phone', 'handleClose', 'newEmail', 'newName', and 'newPhoneNumber'. Either include them or remove the dependency array. If 'handleClose' changes too often, find the parent component that defines it and wrap that definition in useCallback  react-hooks/exhaustive-deps
6:24:10 AM:   Line 47:5:   React Hook React.useCallback has a complex expression in the dependency array. Extract it to a separate variable so it can be statically checked                                                                                                                                                                                                      react-hooks/exhaustive-deps
6:24:10 AM:   Line 48:5:   React Hook React.useCallback has a complex expression in the dependency array. Extract it to a separate variable so it can be statically checked                                                                                                                                                                                                      react-hooks/exhaustive-deps
6:24:10 AM:   Line 49:5:   React Hook React.useCallback has a complex expression in the dependency array. Extract it to a separate variable so it can be statically checked                                                                                                                                                                                                      react-hooks/exhaustive-deps
6:24:10 AM: src/views/customer/CustomerListView/data.tsx
6:24:10 AM:   Line 3:1:  Assign array to a variable before exporting as module default  import/no-anonymous-default-export
6:24:10 AM: src/views/customer/CustomerListView/index.tsx
6:24:10 AM:   Line 26:18:  '_reexecuteQuery1' is assigned a value but never used  @typescript-eslint/no-unused-vars
6:24:10 AM: src/views/product/ProductListView/data.tsx
6:24:10 AM:   Line 3:1:  Assign array to a variable before exporting as module default  import/no-anonymous-default-export
6:24:10 AM: src/views/test/GeneratedCustomersTable.tsx
6:24:10 AM:   Line 2:28:  'DataGrid' is defined but never used          @typescript-eslint/no-unused-vars
6:24:10 AM:   Line 6:15:  'columns' is assigned a value but never used  @typescript-eslint/no-unused-vars
6:24:10 AM: error Command failed with exit code 1.
6:24:10 AM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
6:24:10 AM: ​
6:24:10 AM: ────────────────────────────────────────────────────────────────
6:24:10 AM:   "build.command" failed                                        
6:24:10 AM: ────────────────────────────────────────────────────────────────
6:24:10 AM: ​
6:24:10 AM:   Error message
6:24:10 AM:   Command failed with exit code 1: yarn build
6:24:10 AM: ​
6:24:10 AM:   Error location
6:24:10 AM:   In Build command from Netlify app:
6:24:10 AM:   yarn build
6:24:10 AM: ​
6:24:10 AM:   Resolved config
6:24:10 AM:   build:
6:24:10 AM:     command: yarn build
6:24:10 AM:     commandOrigin: ui
6:24:10 AM:     publish: /opt/build/repo/build
6:24:11 AM: Caching artifacts
6:24:11 AM: Started saving node modules
6:24:11 AM: Finished saving node modules
6:24:11 AM: Started saving build plugins
6:24:11 AM: Finished saving build plugins
6:24:11 AM: Started saving yarn cache
6:24:11 AM: Finished saving yarn cache
6:24:11 AM: Started saving pip cache
6:24:11 AM: Finished saving pip cache
6:24:11 AM: Started saving emacs cask dependencies
6:24:11 AM: Finished saving emacs cask dependencies
6:24:11 AM: Started saving maven dependencies
6:24:11 AM: Finished saving maven dependencies
6:24:11 AM: Started saving boot dependencies
6:24:11 AM: Finished saving boot dependencies
6:24:11 AM: Started saving rust rustup cache
6:24:11 AM: Finished saving rust rustup cache
6:24:11 AM: Started saving go dependencies
6:24:11 AM: Finished saving go dependencies
6:24:14 AM: Build failed due to a user error: Build script returned non-zero exit code: 2
6:24:14 AM: Creating deploy upload records
6:24:14 AM: Failing build: Failed to build site
6:24:14 AM: Failed during stage 'building site': Build script returned non-zero exit code: 2
6:24:14 AM: Finished processing build request in 2m41.932037701s

`checkAuth`, `useAuth()` (login using: Netlify, Auth0, Firebase)

let's have some pages that require authentication using Netlify, Auth0 and Firebase:

vid. web-akular AuthProvider (abstrakcia nad Firebase, Auth0, Keycloack)

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.