Skip to content

Commit 2cfc258

Browse files
authored
feat(app): named badges on the card, chosen by their owner, and a switch for Angie (#83)
1 parent e0ea5fb commit 2cfc258

67 files changed

Lines changed: 1080 additions & 89 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.agents/skills/add-a-custom-badge/SKILL.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Ask for anything missing; never guess it. The "Badge request" issue form asks fo
1313

1414
| What | Why |
1515
| --- | --- |
16-
| Each person's GitHub username and role (`creator`, `co-creator`, `maintainer` or `organizer`) | who wears it |
16+
| Each person's GitHub username and role (`creator`, `co-creator`, `founder`, `co-founder`, `maintainer`, `organizer` or `lead organizer`) | who wears it |
1717
| Project name | the tooltip |
1818
| Website, its main page | where the badge links |
1919
| GitHub repository (required for a library or a tool) | to check the project and the role |
@@ -39,8 +39,8 @@ Done when every row not marked optional has an answer (the repository only for a
3939
] },
4040
```
4141

42-
- **`badge`.** Two or three words, playful, about what the project does ("Analog alchemist", "Icon smith", "Slide master"). Use a word other badges don't already use. Don't use the plain role ("Creator"): the one exception is the badge of Angularians' own creator.
43-
- **`tone`.** The project's name in kebab case. Add its colours to `app/src/app/profile/badge-pill.css`, after the other projects, built from the brand colour `C` like theirs: `--pill-bg: color-mix(in oklab, C 10%, transparent)`, `--pill-text: L`, `--pill-ring: color-mix(in oklab, C 30%, transparent)` in `.tone-<project>`, then `--pill-text: D` and `--pill-ring: color-mix(in oklab, C 40%, transparent)` in `:host-context(.dark) .tone-<project>`. `L` is `C` darkened until it has 4.5:1 contrast on white. `D` is `C` lightened until it has 4.5:1 on `#0a0a0a`.
42+
- **`badge`.** Two or three words, playful, about what the project does ("Analog alchemist", "Icon smith", "Slide master"). Use a word other badges don't already use. Don't use the plain role ("Creator"): the one exception is the badge of Angularians' own creator. A conference or a community is different: its badge is its real name and the role ("NG Poland organizer"), never a joke, with `badgeIsOfficial: true`.
43+
- **`tone`.** The project's name in kebab case. Add its colours to `app/src/app/profile/badge-pill.css`, after the other projects, built from the brand colour `C` like theirs: `--pill-bg: color-mix(in oklab, C 10%, transparent)`, `--pill-text: L`, `--pill-ring: color-mix(in oklab, C 30%, transparent)` in `.tone-<project>`, then `--pill-text: D` and `--pill-ring: color-mix(in oklab, C 40%, transparent)` in `:host-context(.dark) .tone-<project>`. `L` is `C` darkened until it has 4.5:1 contrast on white. `D` is `C` lightened until it has 4.5:1 on `#0a0a0a`. Add the same `C` and `D` to `TAG_COLORS` in `app/src/server/card/tag-colors.ts`: the card has no theme.
4444
- **`builtOn`.** Leave it out. It is only for the tools Angularians itself runs on.
4545
4. **Notices.** Add the logo's credit to `THIRD_PARTY_NOTICES.md`, under "Credited logos".
4646
5. **Data.** Leave `data/` as the collector wrote it.
@@ -59,7 +59,7 @@ pnpm dev
5959
With `pnpm dev` running, open:
6060
- `/<username>`: the badge shows with the logo and title, its tooltip reads "<Role> of <Project>", and clicking it opens the website.
6161
- Both themes, and phone width.
62-
- `/<username>/card.png`: the logo shows in the card's footer.
62+
- `/<username>/card.png`: the badge shows under the stats, with its logo, title and colour.
6363

6464
Done when the test, typecheck and build pass and each page above shows the badge as described.
6565

‎.agents/skills/add-a-translator/SKILL.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Done when you hold the footer link, the date of the angular/angular commit that
1717
## 2. Add it
1818

1919
1. Get each id: `gh api users/<username> -q .id`.
20-
2. A new translation: an entry in `TRANSLATIONS`, in the footer's order, with `language` in that language, its `code` and `flag` (a country in `COUNTRIES` of `shared/src/countries.ts`), `site`, `repository` and `joinedAt` (the day the footer commit landed: its committer date), and its `.tone-lang-<code>` in `badge-pill.css`, built from the flag's main colour as the other languages' are, added to the dark `:is()` list above them too. A new translator: `{ githubId: <id>, username: '<username>' }` in its `translators`, with `helper: true` unless they lead it (their badge then says contributor, and they score 10).
20+
2. A new translation: an entry in `TRANSLATIONS`, in the footer's order, with `language` in that language, its `code` and `flag` (a country in `COUNTRIES` of `shared/src/countries.ts`), `site`, `repository` and `joinedAt` (the day the footer commit landed: its committer date), and its `.tone-lang-<code>` in `badge-pill.css`, built from the flag's main colour as the other languages' are, added to the dark `:is()` list above them too, and to `TAG_COLORS` in `app/src/server/card/tag-colors.ts` for the card. If its name uses letters the card cannot draw yet, the card says only "Translator": `DRAWABLE` and `TAG_FONTS` in `app/src/server/card/tag-fonts.ts` need it (for Korean, Japanese or Chinese, a font from Google Fonts with `text=` set to the name, kept in `app/src/server/card/fonts`). A new translator: `{ githubId: <id>, username: '<username>' }` in its `translators`, with `helper: true` unless they lead it (their badge then says contributor, and they score 10).
2121
3. Update the list's "as of <month year>" line.
2222

2323
Done when the ids are in, `pnpm test` passes, and `/<username>` with `pnpm dev` shows "<language> translator" (or "<language> contributor" for a helper).

‎.github/ISSUE_TEMPLATE/badge-request.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,11 @@ body:
6868
options:
6969
- Creator
7070
- Co-creator
71+
- Founder
72+
- Co-founder
7173
- Maintainer
7274
- Organizer
75+
- Lead organizer
7376
validations:
7477
required: true
7578
- type: textarea

‎THIRD_PARTY_NOTICES.md‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ MIT, Copyright (c) 2026 HatScripts. The full licence ships with the package.
108108

109109
- [Manrope](https://github.com/sharanda/manrope), the site's font: SIL Open Font License 1.1, Copyright 2019 The Manrope
110110
Project Authors, through `@fontsource-variable/manrope` (and, for the cards, `app/src/server/card/fonts`).
111+
- [Noto Sans KR, JP, SC and TC](https://fonts.google.com/noto), for the language names on the cards: SIL Open Font License 1.1, Copyright 2014-2021 Adobe, reduced by Google Fonts to the letters used, in `app/src/server/card/fonts`.
111112
- [cobe](https://github.com/shuding/cobe), the globe: MIT, Copyright (c) 2021 Shu Ding.
112113
- [satori](https://github.com/vercel/satori) and [resvg-js](https://github.com/yisibl/resvg-js), which draw the cards:
113114
MPL 2.0, unmodified.
@@ -127,7 +128,9 @@ The special badges also show, unchanged, the marks of Pangular Inspector (https:
127128

128129
The badges of Ashley Hunter's Angular Native (https://ng-native.com) and Angular Primitives
129130
(https://angularprimitives.com) show their marks, unchanged, in `app/public/credits/`. Santosh Yadav's ngx-builders
130-
(https://github.com/ngx-builders) shows its GitHub organization avatar, unchanged.
131+
(https://github.com/ngx-builders) shows its GitHub organization avatar, unchanged. The badges of NG Baguette (https://ngbaguette.angulardevs.fr) and Angular
132+
Devs France (https://angulardevs.fr) show their logos, reduced to 256 pixels (NG Baguette's white logo on a dark tile, so it shows in both themes), and OpenNG (https://www.openng.org) its GitHub
133+
organization avatar. NG Poland (https://ng-poland.pl) and NG Asia (https://ng-asia.org) show the mark their own sites use, and NG Tunisia (https://ng-tunisia.org) its logo, reduced to 256 pixels. Angular Space (https://www.angularspace.com) shows its site icon, unchanged, and Angular Wrocław (https://www.meetup.com/angularwroclaw/) the shield from its Meetup banner.
131134

132135
## Data
133136

39.1 KB
Loading
55.8 KB
Loading
102 KB
Loading

‎app/public/credits/ng-asia.png‎

34.6 KB
Loading

‎app/public/credits/ng-baguette.png‎

30.4 KB
Loading

‎app/public/credits/ng-poland.png‎

11.9 KB
Loading

0 commit comments

Comments
 (0)