Skip to content

feat(browse): show files in the Explorer as view-only rows - #673

Open
RonenMars wants to merge 1 commit into
mainfrom
feat/browse-show-files
Open

feat(browse): show files in the Explorer as view-only rows#673
RonenMars wants to merge 1 commit into
mainfrom
feat/browse-show-files

Conversation

@RonenMars

Copy link
Copy Markdown
Owner

What

The browse Explorer only listed directories, so files in a folder were invisible even though a user often needs to see them before starting a session.
Files now render below directories as plain, non-interactive rows — no press handler, no chevron, dimmed text — while directories stay tappable for navigation.

Details

BrowseResponse.files is optional, so the screen degrades to directories-only against a server that does not send files yet.
Directories are listed first, then files, both already server-sorted.
The folder emoji is replaced with the Phosphor Folder and File icons to match the project icon convention.

Depends on

Server support for the files field: RonenMars/threadbase-streamer#546.
Backward-compatible either way — this PR is safe to merge independently, it just shows no files until the server ships them.

Tests

New __tests__/integration/components/BrowseFiles.test.tsx — files render, directories navigate, files do not.
New suite 3/3; the 4 existing browse suites stay green (17/17); tsc and eslint clean.

The browse Explorer only listed directories, so files in a folder were invisible even though a user often needs to see them before starting a session.
Render files below directories as plain, non-interactive rows — no press handler, no chevron, dimmed text — while directories stay tappable for navigation.
`BrowseResponse.files` is optional, so the screen degrades to directories-only against a server that does not send files yet.
Swap the folder emoji for the Phosphor Folder and File icons to match the project icon convention.
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