Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New notification badges in the UI #615

Open
joshmoore opened this issue Mar 26, 2025 · 3 comments
Open

New notification badges in the UI #615

joshmoore opened this issue Mar 26, 2025 · 3 comments

Comments

@joshmoore
Copy link
Member

During TiM, there was a discussion about a plugin which would detect unimported files. Would it be possible for a plugin to be added somewhere in the current UI such that a small badge could be shown, like the scripts widget which shows when there's an error?

@will-moore
Copy link
Member

How would we detect unimported files? Would it be the same for all users or need some custom config?

The places in the UI for adding "plugins" are small (open-with, right & centre panels, static top-link). To add another to that list would be possible but a fair bit of work.
It would be simpler just to add the feature directly. Is this something that would be generally useful?

Another option is to use one of the hooks/blocks where you can add arbitrary JavaScript to the page, and use this code to update the page as desired, since any page manipulations are possible with JavaScript (global scope etc).

Options for doing that include within a Open-with option, or as part of right and centre panels, or by extending the page template and using the {% block script %} extension point.

@joshmoore
Copy link
Member Author

How would we detect unimported files? Would it be the same for all users or need some custom config?

There are several threads on image.sc where there's been an error -- format not supported, etc. It's basically the "any fileset without images" HQL.

Is this something that would be generally useful?

I think so, but this might start to grow. Having it as something pip installable might be less messy initially.

cc: @Tom-TBT

@Tom-TBT
Copy link
Contributor

Tom-TBT commented Mar 26, 2025

That could be useful in different ways:

  • Find back files from the server that failed at upload (still would need an admin to get them back). Thinking of people who got rid of the local copy too quickly
  • Be able to clear out storage space. "Those are my 50 GB of failed imports, I can delete these after the recent successful upload"
  • Using these as reports for the OMERO admins to find users with frequent issues

An idea was to put it close to the webadmin page, for example next to the statistics of storage used.

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

No branches or pull requests

3 participants