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

Make Autopilot reviews configurable #108

Open
asafkorem opened this issue Mar 7, 2025 · 1 comment
Open

Make Autopilot reviews configurable #108

asafkorem opened this issue Mar 7, 2025 · 1 comment
Assignees

Comments

@asafkorem
Copy link
Collaborator

Currently, autopilot reviews are "hard-coded" - UX, A11Y and I18N. We want to make them configurable and make it possible to dynamically define the reviews we want from Autopilot (perhaps from the autopilot call itself in the form of options object).
This will enable us to let the user decide on the reviews he wants, and to determine the standards and guidelines he wants to have (e.g. Wix UX review guidelines or Wix A11Y review guidelines).

@asafkorem
Copy link
Collaborator Author

As for the presets, it should be something like this (psuedo-idea):

const AUTOPILOT_REVIEW_PRESENTS = {
  UX_REVIEW: {
    title: "UX Review",
    icon: "🎨",
    description: "Review the UX of the application",
    guidelines: [
        "Check if the application is user-friendly",
        "Check if the application is visually appealing",
    ]
  },
  FUNCTIONALITY_REVIEW: {
      title: "Functionality Review",
      icon: "🔍",
      description: "Review the functionality of the application",
      guidelines: [
          "Check if the application is working as expected",
          "Check if the application is responsive",
      ]
  },
  ACCESSIBILITY_REVIEW: {
    title: "Accessibility Review",
    icon: "👨‍🦯",
    description: "Review the accessibility of the application",
    guidelines: [
        "Check if the application is accessible to all users",
        "Check if the application is usable by people with disabilities",
    ]
  }
}

export { AUTOPILOT_REVIEW_PRESENTS };

await pilot.autopilot("create a new site on wix", { reviewOptions: [
    AUTOPILOT_REVIEW_PRESENTS.UX_REVIEW,
    {
        title: "Performance Review",
        icon: "⚡",
        description: "Review the performance of the application",
        guidelines: [
            "Check if the application is fast and responsive",
            "Check if the application is optimized for performance",
        ]
    }
  ]});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants