Skip to content

fix(app): fit the application list to its cards - #63

Closed
nikunj95 wants to merge 1 commit into
mainfrom
fix/bcc-empty-card-gap
Closed

nikunj95 wants to merge 1 commit into
mainfrom
fix/bcc-empty-card-gap

Conversation

@nikunj95

Copy link
Copy Markdown
Collaborator

What

With a board that offers a single application, such as the AkidaTag with Keyword Spotting, the Select the Application screen showed an empty grey band inside the application list under the card, down to Device Status.

The list's frame used flex: 1 and its scroll view flex: 1, so the frame always stretched to every pixel between the title and Device Status, whatever its cards needed. With two applications the cards overflow that space, which hid the problem on the BrainBoard1500.

The frame now only shrinks (flexShrink: 1) and the scroll view no longer grows (flexGrow: 0). The list is exactly as tall as its cards, and when the cards do not fit it still shrinks to the space above Device Status and scrolls, as before. Device Status now sits right under the list instead of at a fixed height near the bottom, which leaves the free space below it rather than inside the list.

__tests__/applicationListHeight.test.tsx pins both halves: the list does not grow into free space, and it still shrinks to scroll. It fails on main and passes here.

How to test

  1. Install the build from this branch (the debug APK built with scripts/build-standalone-debug-apk.sh; it is already on the phone).
  2. Open BrainChip Connect, tap Get Started if asked, and connect to the AkidaTag.
  3. On Select the Application, look at the Keyword Spotting card.
    • Pass: Device Status starts right under the card's frame. There is no empty grey band between the More Information / Run Application buttons and Device Status.
  4. Tap More Information, then Less Information.
    • Pass: the card grows and shrinks, and Device Status follows its bottom edge each time with no empty band.
  5. Unpair from Profile, then connect to the BrainBoard1500.
    • Pass: the list shows Keyword Spotting and Vision Human Detection as before. The list fills the space down to Device Status and scrolls to the second card; Device Status stays where it was.

The application list stretched to fill the screen down to Device Status,
so a board offering one application left an empty grey band under its
card. The list now grows only as tall as its cards and still shrinks to
scroll when they do not fit.
@nikunj95

Copy link
Copy Markdown
Collaborator Author

Closing without merging: the fixed-height, scrollable application area above Device Status is the intended design.

@nikunj95 nikunj95 closed this Oct 30, 2026
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.

1 participant