team: Add more repositories and rename tabs.

Based on an audit of all repositories in the zulip organization.
This commit is contained in:
Tim Abbott 2024-02-15 16:52:13 -08:00
parent 666041e480
commit 3c708edb2c
4 changed files with 68 additions and 37 deletions

View File

@ -92,7 +92,7 @@ contributors, and more than 75 with 100+ commits." %}
<label for="total"><i class="zulip-icon zulip-icon-globe" aria-hidden="true"></i>&nbsp; Total</label> <label for="total"><i class="zulip-icon zulip-icon-globe" aria-hidden="true"></i>&nbsp; Total</label>
<input id="server" type="radio" name="tabs" /> <input id="server" type="radio" name="tabs" />
<label for="server"><i class="fa fa-server" aria-hidden="true"></i>&nbsp; Server</label> <label for="server"><i class="fa fa-server" aria-hidden="true"></i>&nbsp; Server & Web</label>
<input id="desktop" type="radio" name="tabs" /> <input id="desktop" type="radio" name="tabs" />
<label for="desktop"><i class="fa fa-desktop" aria-hidden="true"></i>&nbsp; Desktop</label> <label for="desktop"><i class="fa fa-desktop" aria-hidden="true"></i>&nbsp; Desktop</label>
@ -100,18 +100,14 @@ contributors, and more than 75 with 100+ commits." %}
<input id="mobile" type="radio" name="tabs" /> <input id="mobile" type="radio" name="tabs" />
<label for="mobile"><i class="fa fa-mobile" aria-hidden="true"></i>&nbsp; Mobile</label> <label for="mobile"><i class="fa fa-mobile" aria-hidden="true"></i>&nbsp; Mobile</label>
<input id="python-zulip-api" type="radio" name="tabs" />
<label for="python-zulip-api"><i class="fa fa-code" aria-hidden="true"></i>&nbsp; Python API</label>
<input id="zulip-js" type="radio" name="tabs" />
<label for="zulip-js"><i class="fa fa-code" aria-hidden="true"></i>&nbsp; JS API</label>
<input id="zulipbot" type="radio" name="tabs" />
<label for="zulipbot"><i class="fa fa-at" aria-hidden="true"></i>&nbsp; Zulipbot</label>
<input id="terminal" type="radio" name="tabs" /> <input id="terminal" type="radio" name="tabs" />
<label for="terminal"><i class="fa fa-terminal" aria-hidden="true"></i>&nbsp; Terminal</label> <label for="terminal"><i class="fa fa-terminal" aria-hidden="true"></i>&nbsp; Terminal</label>
<input id="api-clients" type="radio" name="tabs" />
<label for="api-clients"><i class="fa fa-code" aria-hidden="true"></i>&nbsp; Integrations</label>
<input id="devtools" type="radio" name="tabs" />
<label for="devtools"><i class="fa fa-at" aria-hidden="true"></i>&nbsp; Devtools</label>
<div id="tab-total" class="contributors"> <div id="tab-total" class="contributors">
<div class="contributors-grid"></div> <div class="contributors-grid"></div>
</div> </div>
@ -124,18 +120,15 @@ contributors, and more than 75 with 100+ commits." %}
<div id="tab-mobile" class="contributors"> <div id="tab-mobile" class="contributors">
<div class="contributors-grid"></div> <div class="contributors-grid"></div>
</div> </div>
<div id="tab-python-zulip-api" class="contributors">
<div class="contributors-grid"></div>
</div>
<div id="tab-zulip-js" class="contributors">
<div class="contributors-grid"></div>
</div>
<div id="tab-zulipbot" class="contributors">
<div class="contributors-grid"></div>
</div>
<div id="tab-terminal" class="contributors"> <div id="tab-terminal" class="contributors">
<div class="contributors-grid"></div> <div class="contributors-grid"></div>
</div> </div>
<div id="tab-api-clients" class="contributors">
<div class="contributors-grid"></div>
</div>
<div id="tab-devtools" class="contributors">
<div class="contributors-grid"></div>
</div>
</div> </div>
<!-- Compiled using lodash --> <!-- Compiled using lodash -->

View File

@ -107,15 +107,29 @@ def update_contributor_data_file() -> None:
# the total count, including those that should *not* have tabs on the team # the total count, including those that should *not* have tabs on the team
# page (e.g. if they are deprecated). # page (e.g. if they are deprecated).
repo_names = [ repo_names = [
"docker-zulip",
"errbot-backend-zulip",
"github-actions-zulip",
"hubot-zulip",
"puppet-zulip",
"python-zulip-api", "python-zulip-api",
"trello-to-zulip",
"swift-zulip-api",
"zulint",
"zulip", "zulip",
"zulip-android-legacy", "zulip-android-legacy",
"zulip-architecture",
"zulip-archive",
"zulip-csharp",
"zulip-desktop", "zulip-desktop",
"zulip-desktop-legacy",
"zulip-flutter", "zulip-flutter",
"zulip-ios-legacy", "zulip-ios-legacy",
"zulip-js", "zulip-js",
"zulip-mobile", "zulip-mobile",
"zulip-redmine-plugin",
"zulip-terminal", "zulip-terminal",
"zulip-zapier",
"zulipbot", "zulipbot",
] ]

View File

@ -8,39 +8,64 @@ import _ from "lodash";
// referenced from Contributor, rather than having repository names be // referenced from Contributor, rather than having repository names be
// direct keys in the namespace that also has `email`. // direct keys in the namespace that also has `email`.
const all_repository_names = [ const all_repository_names = [
"zulip", "docker-zulip",
"zulip-desktop", "errbot-backend-zulip",
"zulip-mobile", "github-actions-zulip",
"hubot-zulip",
"puppet-zulip",
"python-zulip-api", "python-zulip-api",
"zulip-js", "trello-to-zulip",
"zulipbot", "swift-zulip-api",
"zulip-terminal", "zulint",
"zulip-ios-legacy", "zulip",
"zulip-android-legacy", "zulip-android-legacy",
"zulip-architecture",
"zulip-archive",
"zulip-csharp",
"zulip-desktop",
"zulip-desktop-legacy",
"zulip-flutter", "zulip-flutter",
"zulip-ios-legacy",
"zulip-js",
"zulip-mobile",
"zulip-redmine-plugin",
"zulip-terminal",
"zulip-zapier",
"zulipbot",
] as const; ] as const;
const all_tab_names = [ const all_tab_names = [
"server", "server",
"desktop", "desktop",
"mobile", "mobile",
"zulip-js",
"python-zulip-api",
"zulipbot",
"terminal", "terminal",
"api-clients",
"devtools",
] as const; ] as const;
type RepositoryName = (typeof all_repository_names)[number]; type RepositoryName = (typeof all_repository_names)[number];
type TabName = (typeof all_tab_names)[number]; type TabName = (typeof all_tab_names)[number];
const tab_name_to_repo_list: Record<TabName, RepositoryName[]> = { const tab_name_to_repo_list: Record<TabName, RepositoryName[]> = {
server: ["zulip"], server: ["zulip", "docker-zulip"],
desktop: ["zulip-desktop"], desktop: ["zulip-desktop", "zulip-desktop-legacy"],
mobile: ["zulip-mobile", "zulip-flutter", "zulip-ios-legacy", "zulip-android-legacy"], mobile: ["zulip-mobile", "zulip-flutter", "zulip-ios-legacy", "zulip-android-legacy"],
"zulip-js": ["zulip-js"],
"python-zulip-api": ["python-zulip-api"],
zulipbot: ["zulipbot"],
terminal: ["zulip-terminal"], terminal: ["zulip-terminal"],
"api-clients": [
"python-zulip-api",
"zulip-js",
"zulip-archive",
"errbot-backend-zulip",
"github-actions-zulip",
"hubot-zulip",
"puppet-zulip",
"trello-to-zulip",
"swift-zulip-api",
"zulip-csharp",
"zulip-redmine-plugin",
"zulip-zapier",
],
devtools: ["zulipbot", "zulint", "zulip-architecture"],
}; };
export type Contributor = { export type Contributor = {

View File

@ -704,9 +704,8 @@ input#total:checked ~ #tab-total,
input#server:checked ~ #tab-server, input#server:checked ~ #tab-server,
input#desktop:checked ~ #tab-desktop, input#desktop:checked ~ #tab-desktop,
input#mobile:checked ~ #tab-mobile, input#mobile:checked ~ #tab-mobile,
input#python-zulip-api:checked ~ #tab-python-zulip-api, input#api-clients:checked ~ #tab-api-clients,
input#zulip-js:checked ~ #tab-zulip-js, input#devtools:checked ~ #tab-devtools,
input#zulipbot:checked ~ #tab-zulipbot,
input#terminal:checked ~ #tab-terminal { input#terminal:checked ~ #tab-terminal {
display: block; display: block;