Skip to content

fix: hide author when anonymized - #1127

Merged
MaGOs92 merged 2 commits into
masterfrom
gfay_fix_hide-author-when-anonymized
Jul 16, 2026
Merged

fix: hide author when anonymized#1127
MaGOs92 merged 2 commits into
masterfrom
gfay_fix_hide-author-when-anonymized

Conversation

@MaGOs92

@MaGOs92 MaGOs92 commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the signalement UI to hide the author display when the author has been anonymized, and refreshes the generated openapi-signalement client to reflect new/updated API capabilities (sources updates, commune settings retrieval, ProConnect endpoints, and extended models).

Changes:

  • Hide author details in SignalementHeader when author.anonymizedAt is set.
  • Regenerate/extend the openapi-signalement client: new ProconnectService, SourcesService.updateSource, SettingsService.getAllCommuneSettings, and updated DTO/model shapes.
  • Adjust the generated OpenAPI client default BASE value for the signalement API.

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/lib/openapi-signalement/services/TilesService.ts Minor docstring adjustment for tiles layers parameter.
src/lib/openapi-signalement/services/SourcesService.ts Adds updateSource endpoint client method.
src/lib/openapi-signalement/services/SettingsService.ts Adds getAllCommuneSettings endpoint client method.
src/lib/openapi-signalement/services/ProconnectService.ts Adds generated ProConnect login/callback/logout client methods.
src/lib/openapi-signalement/models/UpdateSourceDTO.ts Adds DTO for source updates (name/default author).
src/lib/openapi-signalement/models/Source.ts Extends Source model with siret and defaultAuthor.
src/lib/openapi-signalement/models/CreateSourceDTO.ts Extends source creation payload with siret and defaultAuthor.
src/lib/openapi-signalement/models/Author.ts Extends Author model with emailDomain and anonymizedAt.
src/lib/openapi-signalement/index.ts Exports new/updated generated model/service entries.
src/lib/openapi-signalement/core/OpenAPI.ts Updates default OpenAPI BASE for the signalement client.
src/components/signalement/signalement-header.tsx Hides the “par ” block when the author is anonymized.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/lib/openapi-signalement/core/OpenAPI.ts Outdated
Comment thread src/lib/openapi-signalement/services/ProconnectService.ts
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@MaGOs92
MaGOs92 merged commit 9e026c0 into master Jul 16, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants