Skip to content
Open
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
1 change: 1 addition & 0 deletions src/Humans.Application/Interfaces/ICityPlanningService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public interface ICityPlanningService
Task UpdateOfficialZonesAsync(string geoJson, Guid userId, CancellationToken cancellationToken = default);
Task DeleteOfficialZonesAsync(Guid userId, CancellationToken cancellationToken = default);
Task UpdatePlacementDatesAsync(LocalDateTime? opensAt, LocalDateTime? closesAt, CancellationToken cancellationToken = default);
Task UpdateRegistrationInfoAsync(string? registrationInfo, CancellationToken cancellationToken = default);

// Export
Task<string> ExportAsGeoJsonAsync(int year, CancellationToken cancellationToken = default);
Expand Down
3 changes: 3 additions & 0 deletions src/Humans.Domain/Entities/CityPlanningSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ public class CityPlanningSettings
/// <summary>Informational scheduled close time shown in help modal. Not enforced.</summary>
public LocalDateTime? PlacementClosesAt { get; set; }

/// <summary>Admin-editable markdown content shown at the top of the barrio registration page. Null/empty = hidden.</summary>
public string? RegistrationInfo { get; set; }

/// <summary>GeoJSON FeatureCollection defining the visual site boundary. Null until uploaded.</summary>
public string? LimitZoneGeoJson { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ public void Configure(EntityTypeBuilder<CityPlanningSettings> builder)

builder.HasIndex(s => s.Year).IsUnique();

builder.Property(s => s.RegistrationInfo).HasColumnType("text");
builder.Property(s => s.LimitZoneGeoJson).HasColumnType("text");
builder.Property(s => s.OfficialZonesGeoJson).HasColumnType("text");
}
Expand Down
Loading
Loading