mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
integrations: Revise integration CATEGORY dict structure.
Adds a META_CATEGORY dict for categories that are not best described as groups of 'tools', so that in the subsequent commit the PAGE_TITLE can be set accordingly. Also, removes 'tools' from the 'Miscellaneous' category text and spells out 'Human resources' instead of using 'HR'.
This commit is contained in:
committed by
Tim Abbott
parent
04fd1c8773
commit
09d94c62a5
@@ -25,7 +25,9 @@ To add a new webhook integration, declare a WebhookIntegration in the
|
|||||||
WEBHOOK_INTEGRATIONS list below (it will be automatically added to
|
WEBHOOK_INTEGRATIONS list below (it will be automatically added to
|
||||||
INTEGRATIONS).
|
INTEGRATIONS).
|
||||||
|
|
||||||
To add a new integration category, add to the CATEGORIES dict.
|
To add a new integration category, add to either the CATEGORIES or
|
||||||
|
META_CATEGORY dicts below. The META_CATEGORY dict is for categories
|
||||||
|
that do not describe types of tools (e.g., bots or frameworks).
|
||||||
|
|
||||||
Over time, we expect this registry to grow additional convenience
|
Over time, we expect this registry to grow additional convenience
|
||||||
features for writing and configuring integrations efficiently.
|
features for writing and configuring integrations efficiently.
|
||||||
@@ -33,22 +35,26 @@ features for writing and configuring integrations efficiently.
|
|||||||
|
|
||||||
OptionValidator = Callable[[str, str], Optional[str]]
|
OptionValidator = Callable[[str, str], Optional[str]]
|
||||||
|
|
||||||
CATEGORIES: Dict[str, "StrPromise"] = {
|
META_CATEGORY: Dict[str, "StrPromise"] = {
|
||||||
"meta-integration": gettext_lazy("Integration frameworks"),
|
"meta-integration": gettext_lazy("Integration frameworks"),
|
||||||
|
"bots": gettext_lazy("Interactive bots"),
|
||||||
|
}
|
||||||
|
|
||||||
|
CATEGORIES: Dict[str, "StrPromise"] = {
|
||||||
|
**META_CATEGORY,
|
||||||
"continuous-integration": gettext_lazy("Continuous integration"),
|
"continuous-integration": gettext_lazy("Continuous integration"),
|
||||||
"customer-support": gettext_lazy("Customer support"),
|
"customer-support": gettext_lazy("Customer support"),
|
||||||
"deployment": gettext_lazy("Deployment"),
|
"deployment": gettext_lazy("Deployment"),
|
||||||
"entertainment": gettext_lazy("Entertainment"),
|
"entertainment": gettext_lazy("Entertainment"),
|
||||||
"communication": gettext_lazy("Communication"),
|
"communication": gettext_lazy("Communication"),
|
||||||
"financial": gettext_lazy("Financial"),
|
"financial": gettext_lazy("Financial"),
|
||||||
"hr": gettext_lazy("HR"),
|
"hr": gettext_lazy("Human resources"),
|
||||||
"marketing": gettext_lazy("Marketing"),
|
"marketing": gettext_lazy("Marketing"),
|
||||||
"misc": gettext_lazy("Miscellaneous"),
|
"misc": gettext_lazy("Miscellaneous"),
|
||||||
"monitoring": gettext_lazy("Monitoring tools"),
|
"monitoring": gettext_lazy("Monitoring"),
|
||||||
"project-management": gettext_lazy("Project management"),
|
"project-management": gettext_lazy("Project management"),
|
||||||
"productivity": gettext_lazy("Productivity"),
|
"productivity": gettext_lazy("Productivity"),
|
||||||
"version-control": gettext_lazy("Version control"),
|
"version-control": gettext_lazy("Version control"),
|
||||||
"bots": gettext_lazy("Interactive bots"),
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user