Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

πŸ› οΈ Potential Solutions

🧐 Assumptions

  • We will turn the offer search editable

  • It cannot take much time to show the offer searched

  • We have to warn the user when the offer does not exist in the list

  • It needs to search in the list every offer that contains any part of the name according to what was typed

βœ… Proposed Solution

Solution #1

The first solution is allowing the offer name to be editable using a different and when the offer is searched it will look for the offer comparing the name with what was typed.

To do this, you need to use a component that searches for the offer name based on each character typed.

Β src/components/customer-offers/forms/offer-form.tsx
const searchByOfferName =
    customer?.supportOffers?.filter(
      (offer) => offer?.name && offer?.name?.toLowerCase().includes(offerTemplate),
    );
    
return {
  ...
  <form onSubmit={handleSubmit}>
    <DialogContent>
      <Grid container spacing={2}>
        <Grid item xs={12}>
          <FormControl
            variant="outlined"
            className={classes.formControl}
            error={hasSubmitted && !offerTemplate}
          >
            {searchByOfferName && (
              <Autocomplete
                ...
              )}

βœ… Pros:

  • Quick implementation

(warning) Potential Challenges

List here potential challenges that have come across the opportunity definition or from the potential solutions so far.

πŸ’° Cost

Describe any additional cost this solution may imply.

πŸŽ›οΈ Configuration

Include here any configuration required (Sanity, LaunchDarkly flags, etc.) required to enable the solution.

πŸ“ˆ Metrics

Describe the metrics that will be used to measure the solution’s success, as well as how to measure those KPIs.

πŸ—“οΈ Delivery Plan

Link to the task or list of all the tasks required to deliver the solution, along with its progress.

πŸ§‘β€πŸš’ QA Plan

Testing scenarios. See example /wiki/spaces/EGMT/pages/4080861189.

⚠️ Call-outs

Tip: Document here any improvement or discussion regarding the feature

  • No labels