Small UI changes (#3787)

This commit is contained in:
Joe Milazzo 2025-05-04 08:14:44 -06:00 committed by GitHub
parent 50a052e412
commit 5b8a643d82
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
203 changed files with 369 additions and 446 deletions

View file

@ -2,7 +2,7 @@
namespace API.DTOs.SeriesDetail;
public class NextExpectedChapterDto
public sealed record NextExpectedChapterDto
{
public float ChapterNumber { get; set; }
public float VolumeNumber { get; set; }

View file

@ -2,7 +2,7 @@
namespace API.DTOs.SeriesDetail;
public class RelatedSeriesDto
public sealed record RelatedSeriesDto
{
/// <summary>
/// The parent relationship Series

View file

@ -7,7 +7,7 @@ namespace API.DTOs.SeriesDetail;
/// This is a special DTO for a UI page in Kavita. This performs sorting and grouping and returns exactly what UI requires for layout.
/// This is subject to change, do not rely on this Data model.
/// </summary>
public class SeriesDetailDto
public sealed record SeriesDetailDto
{
/// <summary>
/// Specials for the Series. These will have their title and range cleaned to remove the special marker and prepare

View file

@ -1,4 +1,5 @@
using System.Collections.Generic;
using API.DTOs.KavitaPlus.Metadata;
using API.DTOs.Recommendation;
namespace API.DTOs.SeriesDetail;
@ -8,7 +9,7 @@ namespace API.DTOs.SeriesDetail;
/// All the data from Kavita+ for Series Detail
/// </summary>
/// <remarks>This is what the UI sees, not what the API sends back</remarks>
public class SeriesDetailPlusDto
public sealed record SeriesDetailPlusDto
{
public RecommendationDto? Recommendations { get; set; }
public IEnumerable<UserReviewDto> Reviews { get; set; }

View file

@ -2,7 +2,7 @@
namespace API.DTOs.SeriesDetail;
public class UpdateRelatedSeriesDto
public sealed record UpdateRelatedSeriesDto
{
public int SeriesId { get; set; }
public IList<int> Adaptations { get; set; } = default!;

View file

@ -2,7 +2,7 @@
namespace API.DTOs.SeriesDetail;
#nullable enable
public class UpdateUserReviewDto
public sealed record UpdateUserReviewDto
{
public int SeriesId { get; set; }
public int? ChapterId { get; set; }

View file

@ -9,7 +9,7 @@ namespace API.DTOs.SeriesDetail;
/// Represents a User Review for a given Series
/// </summary>
/// <remarks>The user does not need to be a Kavita user</remarks>
public class UserReviewDto
public sealed record UserReviewDto
{
/// <summary>
/// A tagline for the review