Skip to content

refactor(api): normalize application='ufs' to storage='ufs'#9

Merged
SuperKali merged 2 commits intoarmbian:mainfrom
HeyMeco:ufs
Apr 24, 2026
Merged

refactor(api): normalize application='ufs' to storage='ufs'#9
SuperKali merged 2 commits intoarmbian:mainfrom
HeyMeco:ufs

Conversation

@HeyMeco
Copy link
Copy Markdown
Contributor

@HeyMeco HeyMeco commented Apr 23, 2026

Overview

This PR is one possible implementation of showing UFS images on the website as currently these images are only part of the dedicated applications section with no type showing. You could only make out that it is an UFS image by hovering over the link.

Another implementation could be just to show them in their respective category (like Desktop) with the correct UFS type

Screenshot

CleanShot 2026-04-24 at 00 32 15@2x

Before this PR:
CleanShot 2026-04-24 at 00 38 31@2x

@HeyMeco HeyMeco requested a review from SuperKali April 23, 2026 22:40
@SuperKali
Copy link
Copy Markdown
Member

This should be fixed API side not directly, i'm looking into it

Promote UFS from app overlay to storage dimension in the normalizer so
the UI treats it uniformly with other storage/format variants via the
existing chip mechanism. Removes the dedicated UFS section and the
duplicated table in the downloads component.
@SuperKali
Copy link
Copy Markdown
Member

Hi @HeyMeco, thanks a lot for spotting this and putting the work in — you correctly identified that UFS images were essentially invisible in the UI.

Looking at the root cause, the issue lived one layer upstream: the feed tags these images with application='ufs', which is semantically wrong (UFS is a storage-hardware dimension, not an application overlay like Kali or Home Assistant). That's why they ended up mis-classified under "Dedicated Applications" with no visual marker.

I pushed a small refactor on top of your branch (ce379a6): the fix now sits in the API normalizer (apps/api/src/services/normalizer.ts), where application='ufs' gets promoted to storage='ufs' and the application flag is cleared. This way UFS images fall into their natural category (minimal / desktop / server) and automatically get the cyan "UFS" chip in the Type column via the existing deriveChips mechanism — same pattern as QEMU, rootfs, QDL.

Net effect: the dedicated section, the duplicated table, and the three local filters in the downloads component all go away, and the whole thing collapses to 9 lines in the normalizer. Verified end-to-end against radxa-nio-12l (the only board currently shipping UFS images).

Thanks again — your PR is what surfaced this, and the data-model discussion wouldn't have happened otherwise.

@SuperKali SuperKali changed the title Add UFS Section and Type refactor(api): normalize application='ufs' to storage='ufs' Apr 24, 2026
@SuperKali SuperKali merged commit 6086109 into armbian:main Apr 24, 2026
1 check 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