Skip to content

Applications page: show the logo shipped with the app #8139

Closed as not planned
Closed as not planned

Description

@stephdl

The Applications page shows the generic placeholder logo for apps when the repository is not reachable or disabled. The app drawer, fed by the same list-modules output, shows the correct logo for those apps, so the two views disagree.

The reason is that the table keeps the logo only when it is an absolute URL, which is what a repository serves. An app installed outside any repository publishes its logo with its own UI bundle, and list-modules reports that local path, which the table discards.

Proposed solution

Keep both logo sources for each row: the repository logo first, then the one the app published with its own bundle. Show the first one that loads, and fall back to the shipped default asset if none does.

Alternative solutions

Accept the local path as well and use it when the repository logo is missing. This is simpler, but a published bundle can disappear, and the row would then show a broken image instead of the placeholder.

Additional context

Reproduced by installing from the nethforge and after the installation, disable the repository and go to the application page

See also

NethServer/ns8-core#1281

Activity

  1. self-assigned this
    on Aug 28, 2026
  2. added theissue type on Aug 28, 2026
  3. moved this from ToDo to Testing in NethServeron Aug 28, 2026
  4. added this to the NethServer 8.10 milestone on Aug 28, 2026
  5. moved this from Testing to In Progress in NethServeron Aug 28, 2026
  6. moved this from In Progress to Testing in NethServeron Aug 28, 2026
  7. added
    testing
    on Aug 28, 2026
  8. removed their assignment
    on Aug 28, 2026
  9. stephdl commented on Aug 28, 2026

    @stephdl
    Author

    QA — core 3.22.0-dev.2 — Application logos

    PR: NethServer/ns8-core#1281 — issue #8139

    Page under test: Applications, /applications-center

    Test apps are SoGo and WordPress: both ship a real logo in their own UI bundle. That matters — an app that ships none, like Mail, shows the generic placeholder before and after the fix, and would make the test look like a failure.

    1. Setup

    • Node running core:3.22.0-dev.2
    • Enable the nethforge repository in Settings › Software repositories
    • Install SoGo and WordPress

    2. Repositories enabled — repository logo wins

    • Both rows show the logo served by the repository:
    sogo1       https://forge.nethserver.org/ns8/updates/sogo/logo.png
    wordpress1  https://forge.nethserver.org/ns8/updates/wordpress/logo.png
    

    3. Disable nethforge — the fix

    • Settings › Software repositories › set nethforge to Disabled
    • Reload the Applications page
    • Both rows now show the logo shipped with the app, not the generic placeholder:
    sogo1       apps/sogo1/img/module_default_logo.4017bd10.png
    wordpress1  apps/wordpress1/img/module_default_logo.1e10fc7f.png
    

    The SoGo row shows the green SoGo circle, the WordPress row the blue W. On 3.21.1 both are the generic NethServer placeholder — that is the bug.

    • Rows for apps served by a still-enabled repository are unchanged

    4. Table and app drawer agree

    The issue is that the two views disagreed. Open the app launcher and compare.

    • SoGo and WordPress show the same logo in the drawer and in the table

    Known, not a failure

    • The Mail row keeps the generic placeholder — it ships no logo of its own.
    • With no internet connectivity, the Applications page takes about 20 seconds to populate: list-modules waits on the repository HTTP timeouts before returning. The list is then complete and shows the shipped logos. This is server-side and pre-existing, unrelated to this PR.
  10. DavidePrincipi commented on Aug 28, 2026

    @DavidePrincipi
    Member

    What happens to Applications page if public network is not reachable? Is the app list displayed? What is the displayed logo?

  11. stephdl commented on Sep 4, 2026

    @stephdl
    Author

    @DavidePrincipi the fix just add to display the logo bundled in the app if the remote url is not reachable so in short you see

    logo from https (like before) -> logo bundled in the app (new way) -> logo fail over of the ns8-core assets (like before)

    However with no internet connectivity, the Applications page takes about 20 seconds to populate: list-modules waits on the repository HTTP timeouts before returning. The list is then complete and shows the shipped logos. This is server-side and pre-existing, unrelated to this PR.

  12. DavidePrincipi commented on Sep 4, 2026

    @DavidePrincipi
    Member

    While fetching remote logo makes sense in Software Center (first implemented in ui history) to display the app catalog, in app drawer and Applications page we'd aim to show the local app-provided logo, and fallback to default only if this doesn't exist.

    IIUC the table component wants an absolute URL. We'd build it in the frontend data model, e.g. with window.location

  13. self-assigned this
    on Sep 7, 2026
  14. moved this from Testing to In Progress in NethServeron Sep 7, 2026
  15. removed
    testing
    on Sep 7, 2026
  16. stephdl commented on Sep 7, 2026

    @stephdl
    Author

    losing this. Superseded by a redesign agreed with @DavidePrincipi.

    #1281 made the Applications page fall back to the logo shipped inside the app
    bundle. It works on core:3.22.0-dev.3, but it is a workaround in the wrong place.

    list-modules was designed for Software Center, which lists remote resources
    because its job is installing apps not yet in the cluster. The Applications page
    lists what is already inside the cluster. It reused that API, and that is the
    mismatch.

    The plan:

    • New local-only action list-applications. No remote calls, returns installed
      apps with the data the cluster already holds, logos included.
    • Progressive load on Applications and Cluster status: list-applications first
      for a fast local list, then list-modules to merge in available updates.
    • Outside Software Center the UI never fetches absolute remote URLs. Where such
      URLs are used they must be trusted, not defined by the app developer.

    Separate bug found while testing, I will open it on its own. With the repository
    hosts unreachable and one repository enabled, Applications takes 21.3 s to render
    and Software Center 51.9 s. list-modules sweeps the repositories twice per call:
    list_available() and decorate_with_updates() both call
    _get_available_modules(), with no memoization. And
    _list_repository_modules writes cluster/repository_cache/<repo> only on
    success, so a failure caches nothing and every page load pays the timeout again.

  17. moved this from In Progress to Done in NethServeron Sep 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions