Skip to content

Media manager#2358

Draft
hahn-kev wants to merge 18 commits into
developfrom
media-manager
Draft

Media manager#2358
hahn-kev wants to merge 18 commits into
developfrom
media-manager

Conversation

@hahn-kev

Copy link
Copy Markdown
Collaborator
image

Lets users view media associated with the project. Manually trigger downloading all media or upload pending.

This has highlighted an issue with our current strategy/design. Right now the metadata for media files only lives on lexbox, if the file isn't downloaded we don't even know the file name or type. It would be really nice to store the metadata with the resource, so that gets synced between clients automatically. This may require a harmony change, but there could be other ways to do this.

hahn-kev added 3 commits June 16, 2026 13:55
- Introduced MediaFileDetail component for displaying file details and handling file downloads.
- Implemented GetFileStream method in MediaFilesServiceJsInvokable to retrieve file streams.
- Updated ILcmFileMetadata to include SizeInBytes property.
- Enhanced IMediaFilesServiceJsInvokable interface with getFileStream method.
@hahn-kev hahn-kev marked this pull request as draft June 16, 2026 09:18
@coderabbitai

coderabbitai Bot commented Jun 16, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 61f78dbf-d3b9-4989-bf7b-5375f185ba0a

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch media-manager

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions Bot added the 💻 FW Lite issues related to the fw lite application, not miniLcm or crdt related label Jun 16, 2026
@github-actions

github-actions Bot commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

UI unit Tests

  1 files  ±0   62 suites  ±0   29s ⏱️ +2s
186 tests ±0  186 ✅ ±0  0 💤 ±0  0 ❌ ±0 
258 runs  ±0  258 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit e19ea6f. ± Comparison against base commit fa14cfa.

♻️ This comment has been updated with latest results.

@github-actions

github-actions Bot commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

C# FwHeadless Unit Tests

48 tests   48 ✅  18s ⏱️
 5 suites   0 💤
 1 files     0 ❌

Results for commit e19ea6f.

♻️ This comment has been updated with latest results.

@github-actions

github-actions Bot commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

C# Unit Tests

165 tests   165 ✅  20s ⏱️
 23 suites    0 💤
  1 files      0 ❌

Results for commit e19ea6f.

♻️ This comment has been updated with latest results.

@myieye

myieye commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator

You're fast ;).

It's a little funny how much the right panel looks like an email 😄

I'm wondering how users will find things? Or maybe they don't actually want to?

What are the real use cases for this?

  • Deleting orphaned files
  • Downloading individual files or bulk making everything available offline
  • ...Anything else?

If that's all, then, this is probably fine. Maybe we just need a filter for "Unused media" i.e. orphaned stuff.

Nit: can we make the resource "names" align vertically e.g. by either stacking the cloud and local icons vertically instead of horizontally or putting them in the second row? Maybe like the part of speech badge 🤔 or maybe put the icons into the "Local and remote" text?

I'm guessing the "Download all" is actually for making stuff available offline, rather than saving a copy of everything somewhere on your device right? "Downloading" sounds like "Saving" to me. "Make all media available offline" is a bit long for a button text 😆. Maybe we just change it to "Download all..." (i.e. with 3-dots), so users know it opens a dialog and the dialog then has an explanation and submit button?

The GDocs UI for making things available offline is a bit weird. I first clicked a button in this overlay to make my doc "ready for offline use":
image

After that I was able to open, edit and comment on the document while offline.
But even after doing that and reloading the page multiple times, I still have a separate menu option for making it available offline:
image

When I click it, it changes to:
image

I see no differences in behaviour after enabling that second option.

@hahn-kev

hahn-kev commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator Author

Another use case I could see is removing files locally (to free up space), not sure how realistic that is though. On android there's a distinction between cache and data, we should probably figure that out to download stuff into cache.

Yes you noticed another terminology issue we stumbled in to. I think download in this context could mean either, export so I can use it for whatever, or download to my device from the server. So we should probably just not use the word download. What if we just used the term "Load" and "Load all" for the current "Download all" button which loads for offline use. We currently use "Save As" for getting files out of the app, I think that can stay as is.

image

@argos-ci

argos-ci Bot commented Jun 17, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
default (Inspect) ✅ No changes detected - Jun 17, 2026, 9:31 AM

@github-actions github-actions Bot added the 📦 Lexbox issues related to any server side code, fw-headless included label Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

💻 FW Lite issues related to the fw lite application, not miniLcm or crdt related 📦 Lexbox issues related to any server side code, fw-headless included

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants