Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: Add example page for Customers Admin app #1774

Closed
prakhargupta1 opened this issue Mar 21, 2023 · 3 comments · Fixed by #2096
Closed

Docs: Add example page for Customers Admin app #1774

prakhargupta1 opened this issue Mar 21, 2023 · 3 comments · Fixed by #2096
Assignees
Labels
docs Improvements or additions to the documentation
Milestone

Comments

@prakhargupta1
Copy link
Member

prakhargupta1 commented Mar 21, 2023

Link to further details.

We'll put the working app in https://github.com/mui/mui-private repo and a showcase version in: https://github.com/mui/mui-public

@prakhargupta1 prakhargupta1 added the docs Improvements or additions to the documentation label Mar 21, 2023
@prakhargupta1 prakhargupta1 added this to the pro-code MVP milestone Mar 21, 2023
@apedroferreira apedroferreira self-assigned this Mar 21, 2023
@bharatkashyap bharatkashyap changed the title Example-3 (Customers domain UI) Docs: Add example page for Customers Admin app Apr 24, 2023
@prakhargupta1 prakhargupta1 linked a pull request Apr 25, 2023 that will close this issue
@prakhargupta1
Copy link
Member Author

Rate limitation on the Xano API that is being used:
Screenshot 2023-04-25 at 3 45 51 PM

@Janpot
Copy link
Member

Janpot commented May 3, 2023

@prakhargupta1 It's possible to "fake" a backend in-memory. For example:

import { createQuery } from "@mui/toolpad/server";

const customers = [{ name: "John Doe" }];

export async function getCustomers() {
  return customers;
}

export const addCustomer = createQuery(
  async ({ parameters }) => {
    customers.push({ name: parameters.name });
  },
  {
    parameters: {
      name: {
        typeDef: { type: "string" },
      },
    },
  }
);

We may also be able to leverage @faker-js/faker to generate data for demonstration purposes.

@prakhargupta1
Copy link
Member Author

prakhargupta1 commented May 8, 2023

Thanks, just did this and removed dependence on Xano APIs.
Also, used form and file upload component in the Add user flow.

@prakhargupta1 prakhargupta1 removed a link to a pull request Jun 5, 2023
@Janpot Janpot removed this from the beta-critical milestone Jun 5, 2023
@Janpot Janpot mentioned this issue Jun 5, 2023
1 task
@prakhargupta1 prakhargupta1 added this to the stable-v1 milestone Jun 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to the documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants