Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
đź’„ Colonne Externe dans le tableau des organisations

Ajoute une colonne « Externe » avec indicateur ✅/❌ dans le tableau des organisations de la page utilisateur.
4 changes: 2 additions & 2 deletions e2e/features/users/raphael_beta.feature
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ Fonctionnalité: Page utilisateur
Et je vois "Email vérifié envoyé le22/06/2023 16:34:34"

Alors je dois voir un tableau nommé "🏢 2 organisations de Raphael" et contenant
| Libellé | Siret |
| Direction interministerielle du numerique (DINUM) | 13002526500013 |
| Libellé | Siret | Interne |
| Direction interministerielle du numerique (DINUM) | 13002526500013 | âś… |
3 changes: 3 additions & 0 deletions sources/web/src/routes/users/:id/organizations/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export async function Table({
<th class="warp-break-word">Libellé</th>
<th class="warp-break-word">Domains</th>
<th class="warp-break-word">Type de vérification</th>
<th class="warp-break-word">Interne</th>
<th class="max-w-32 break-words">Code géographique officiel</th>

<th></th>
Expand Down Expand Up @@ -100,6 +101,7 @@ export function Row({
created_at,
email_domains,
id,
is_external,
siret,
verification_type,
} = organization;
Expand All @@ -121,6 +123,7 @@ export function Row({
<td>{cached_libelle}</td>
<td>{email_domains.map(({ domain }) => domain).join(", ")}</td>
<td>{verification_type}</td>
<td>{is_external ? "❌" : "✅"}</td>
<td>
<a
class="after:absolute after:inset-0 after:content-[''] focus:outline-none"
Expand Down
2 changes: 2 additions & 0 deletions sources/web/src/routes/users/:id/organizations/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ test("GET /users/:id/organizations returns user's organizations", async () => {
expect(html).toContain("Siret");
expect(html).toContain("Libellé");
expect(html).toContain("domain_not_verified_yet");
expect(html).toContain("Interne");
expect(html).toContain("âś…");
expect(html).toContain("hx-delete");
});

Expand Down