Addresses feedback on #30 to improve type safety of the settings array in CalendarSettingsService.
Changes
Added CalendarSetting interface defining the structure of settings objects
Applied explicit type annotation readonly CalendarSetting[] to the settings array
Imported WritableSignal from @angular/core
interfaceCalendarSetting{signal: WritableSignal<boolean>;id: string;description: string;}readonlysettings: readonlyCalendarSetting[]=[{signal: this.showWeekNumbers,id:'showWeekNumbers',description:'Afficher les numéros de semaine',},// ...
];
This provides compile-time type checking for all settings array operations and makes the expected structure explicit.
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.
Addresses feedback on #30 to improve type safety of the `settings` array in `CalendarSettingsService`.
## Changes
- Added `CalendarSetting` interface defining the structure of settings objects
- Applied explicit type annotation `readonly CalendarSetting[]` to the settings array
- Imported `WritableSignal` from `@angular/core`
```typescript
interface CalendarSetting {
signal: WritableSignal<boolean>;
id: string;
description: string;
}
readonly settings: readonly CalendarSetting[] = [
{
signal: this.showWeekNumbers,
id: 'showWeekNumbers',
description: 'Afficher les numéros de semaine',
},
// ...
];
```
This provides compile-time type checking for all settings array operations and makes the expected structure explicit.
<!-- START COPILOT CODING AGENT TIPS -->
---
💬 We'd love your input! Share your thoughts on Copilot coding agent in our [2 minute survey](https://gh.io/copilot-coding-agent-survey).
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
fonts.googleapis.com
Triggering command: ng build (vac-optimizer) (dns block)
If you need me to access, download, or install something from one of these locations, you can either:
Configure Actions setup steps to set up my environment, which run before the firewall is enabled
Add the appropriate URLs or hosts to the custom allowlist in this repository's Copilot coding agent settings (admins only)
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.
> [!WARNING]
>
> <details>
> <summary>Firewall rules blocked me from connecting to one or more addresses (expand for details)</summary>
>
> #### I tried to connect to the following addresses, but was blocked by firewall rules:
>
> - `fonts.googleapis.com`
> - Triggering command: `ng build (vac-optimizer)` (dns block)
>
> If you need me to access, download, or install something from one of these locations, you can either:
>
> - Configure [Actions setup steps](https://gh.io/copilot/actions-setup-steps) to set up my environment, which run before the firewall is enabled
> - Add the appropriate URLs or hosts to the custom allowlist in this repository's [Copilot coding agent settings](https://github.com/THoguet/vac-optimizer/settings/copilot/coding_agent) (admins only)
>
> </details>
Source requested reviewers: admin-backup (GitLab user 3).
The linked history record retains original IDs and source dates. No historical identity was merged into nessar or granted new authentication permissions.
<!-- gitlab-to-gitea-assignment:35:MergeRequest:35 -->
Preserved source assignment/reviewer metadata. Historical accounts stay inactive.
Source requested reviewers: admin-backup (GitLab user 3).
The linked history record retains original IDs and source dates. No historical identity was merged into nessar or granted new authentication permissions.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Addresses feedback on #30 to improve type safety of the
settingsarray inCalendarSettingsService.Changes
CalendarSettinginterface defining the structure of settings objectsreadonly CalendarSetting[]to the settings arrayWritableSignalfrom@angular/coreThis provides compile-time type checking for all settings array operations and makes the expected structure explicit.
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.
assigned to
@Copilotassigned to
@THoguetmentioned in merge request !30
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.
changed title from {-[WIP] Fix dynamic settings in-} calendar settings {-dialog-} to {+Add type definition for+} calendar settings {+array+}
requested review from
@THoguetapproved this merge request
Merged by: THoguet at 2025-11-03 23:50:33 UTC
Preserved source assignment/reviewer metadata. Historical accounts stay inactive.
Source requested reviewers: admin-backup (GitLab user 3).
The linked history record retains original IDs and source dates. No historical identity was merged into nessar or granted new authentication permissions.
Preserved GitLab !35 history: source attribution, exact timestamps, discussion grouping and review positions. Historical diff snapshots: 1; visible source notes: 8.
gitlab-35-mergerequest-35.md (SHA-256
19af7b043acbd20742f1ed83b2a284593f6b5a99544e6bbe9f7d433b8f745ff4)gitlab-35-mergerequest-35.json (SHA-256
00e1cd95caee947170b5b2ffafb3c2a54bbdedbe7e906c72efb326bc9f61cf57)Old CI job execution and reports are omitted. Original source files and rollback backups remain protected.