Skip to content

Show file size on each timeline frame #7

Description

@elkampu

Goal

Show each captured frame's file size in the Timeline gallery. FrameInfo.SizeBytes already exposes the value, so this should stay in the presentation layer.

Acceptance criteria

  • Use the same display contract in both rendering paths: whole KiB below 1 MiB and one decimal MiB at or above 1 MiB. For example, 2,048 bytes displays as 2 KB and 1,572,864 bytes displays as 1.5 MB.
  • Server-rendered frame cards and frames added by Load more show the same value.
  • Use the existing FrameInfo.SizeBytes field; do not change the frames endpoint shape.
  • The layout remains usable at the mobile breakpoint.
  • Extend TimelinePageTests to cover the initial server-rendered card and the dynamically constructed Load more card, including a KB and an MB case.

Please comment with your proposed approach before starting. A draft PR is welcome.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

.NETPull requests that update .NET codeenhancementNew feature or requestgood first issueGood for newcomershelp wantedExtra attention is needed

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions