getMetaLinks()

in src/content/components/Router/Router.js [101:122]


  getMetaLinks(component = "Messaging System") {
    return this.context.metas
      .filter(
        meta =>
          meta.priority === "P1" &&
          !isBugResolved(meta) &&
          meta.component === component
      )
      .sort((a, b) => {
        if (a.priority < b.priority) {
          return -1;
        }
        if (a.priority > b.priority) {
          return 1;
        }
        return a.displayName.localeCompare(b.displayName);
      })
      .map(meta => ({
        path: `/feature/${meta.id}`,
        label: meta.displayName,
      }));
  }