Skip to content
This repository was archived by the owner on Nov 23, 2026. It is now read-only.
This repository was archived by the owner on Nov 23, 2026. It is now read-only.

Reusage of web components in extensions limited #8281

Closed

Description

@elizavetaRa

Background:
Developing feature rich extensions like backups extension that lists backup resources similar to web-app-files

Issue:
A lot of components from web-app-files are needed for the extension: ResourceTable, AppBar, breadcrumbs, useSort, useResourcesViewDefaults etc.
According to @dschmidt reusage of components from web can only be done from web-pkg and web-client. Moving all of these components would require also moving of their imported components, almost the whole web-app-files.

Keeping the extension inside of the web is long term also a bad solution as changes in imports would cause a lot of effort in maintainability

Activity

  1. dschmidt commented on Jan 19, 2023

    @dschmidt
    Member

    As responded later to you in chat (when you probably already called it a day) we need to hear more explicit use cases and what exactly you want to achieve.

    If you give us more details about what exactly you want to achieve, we can help laying out an architecture.

  2. pascalwengerter commented on Jan 24, 2023

    @pascalwengerter
    Contributor

    @kulmann from a cursory read it seemed like there has been basically a re-implementation of the ResourceTable for spaces in the admin-app recently, moving ResourceTable (and potentially ResourceTiles also 😇 ) to the web-pkg could both resolve that, force the project to move away from some mixins/web-app-files-internal APIs towards more open ones and address parts of this ticket?

  3. elizavetaRa commented on Jan 25, 2023

    @elizavetaRa
    ContributorAuthor

    @dschmidt We want to be able to reuse things from web-app-files in external extensions. The extensions should be able to import from a certain web version and don't break when there are modifications of reused components.

    Example: backups extension that has a logic, similar to web-app-files: reuses ResourceTable, breadcrumbs, actions, useResourcesViewDefaults etc. but it's reachable from ApplicationSwitcher and has own endpoints and loadResourcesTasks.
    Screenshot from 2023-01-25 11-16-04

    As I understand, the only way would be to move needed components to web-pkg, but this is a large part of web-app-files as components have their own imports from web-app-files. For now, we keep the extension internally in our web fork, but on upstream rebases it breaks and needs fixes.

  4. changed the title [-]Reusage of web components in extensions hardly limited[/-] [+]Reusage of web components in extensions limited[/+] on Jun 1, 2023
  5. tbsbdr commented on Jun 1, 2023

    @tbsbdr

    hardly limited = not limited ;-)
    changed title

  6. tbsbdr commented on Jun 12, 2023

    @tbsbdr

    realtes to: 2714602

  7. kulmann commented on Jun 19, 2023

    @kulmann
    Contributor

    Please provide a list of components and composables (as complete as possible) which you would like to use from the files app @elizavetaRa

  8. kulmann commented on Jun 20, 2023

    @kulmann
    Contributor

    @elizavetaRa @diocas can we close this issue as superseded by #9267 ? 🤔 or do you have requirements for component reusability in other cases as well?

  9. diocas commented on Jun 20, 2023

    @diocas
    Contributor

    ping @elizavetaRa
    Please re-open if there are more requirements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions