welcome_page = async (req) => {
  const packs_available = await get_cached_packs();
  const packlist = [
    ...(packs_available || []).slice(0, 5),
    { name: req.__("More..."), description: "" },
  ];
  const tables = await Table.find({}, { cached: true });
  const views = await View.find({}, { cached: true });
  const pages = await Page.find({}, { cached: true });
  const triggers = await Trigger.findAllWithTableName();
  const users = await User.find({}, { orderBy: "id" });
  const roles = await User.get_roles();
  let roleMap = {};
  roles.forEach((r) => {
    roleMap[r.id] = r.role;
  });
  return {
    above: [
      {
        besides: [
          tableCard(tables, req),
          viewCard(views, req),
          pageCard(pages, req),
        ],
        class: "welcome-page-row1",
      },
      {
        class: "welcome-page-row2",
        besides: [
          {
            type: "card",
            //title: req.__("Install pack"),
            bodyClass: "py-0 pe-0",
            class: "welcome-page-entity-list mt-2",

            tabContents:
              triggers.length > 0
                ? {
                    Triggers: await actionsTab(req, triggers),
                    Files: await filesTab(req),
                    Packs: packTab(req, packlist),
                  }
                : {
                    Packs: packTab(req, packlist),
                    Triggers: await actionsTab(req, triggers),
                    Files: await filesTab(req),
                  },
          },
          {
            type: "card",
            //title: req.__("Learn"),
            bodyClass: "py-0 pe-0",
            class: "welcome-page-entity-list mt-2",
            tabContents:
              users.length > 4
                ? {
                    Users: await usersTab(req, users, roleMap),
                    Theme: themeCard(req, roleMap),
                    Help: helpCard(req),
                  }
                : {
                    Help: helpCard(req),
                    Theme: themeCard(req, roleMap),
                    Users: await usersTab(req, users, roleMap),
                  },
          },
        ],
      },
    ],
  };
}
Wellcome page
@param {object} req
@returns {Promise<object>}