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.

Create new file + extension point #274

Closed

Description

@DeepDiver1975

Story:
Given a phoenix plugin registers a new file action for text files
And a user is logged in
When the user clicks on new file action (UX to be defined)
Then a dialog/context pops up which lists new files including for text files

When the user enters the new file name and hits enter
Then phoenix core creates the file
And the app code is triggered which opens the file in some editor

Related to #215

Tasks:
same as with #215

  • Additional effort in phoenix core (1MD)

Activity

  1. DeepDiver1975 commented on Jan 11, 2019

    @DeepDiver1975
    ContributorAuthor
    • creating new files is already done
    • handler registration to open the file right away is missing
  2. added this to the backlog milestone on Jan 11, 2019
  3. PVince81 commented on Sep 24, 2019

    @PVince81
    Contributor

    We're also missing the extension point to allow for apps to provide additional file types.
    For example:

    • create text file
    • create ODT document
    • ...
  4. modified the milestones: backlog, on Sep 24, 2019
  5. PVince81 commented on Sep 24, 2019

    @PVince81
    Contributor
    • add extension point for other apps to register their types
    • automatically open the file after creation, if the type is known
  6. PVince81 commented on Sep 24, 2019

    @PVince81
    Contributor

    From a design POV, for now the easiest is to append whatever registered file types are available directly into the dropdown. Any other UX would be more time costy and require thinking about maybe selecting the file type inside the dialog prompt, or something else.

  7. changed the title [-]Create new file[/-] [+]Create new file + extension point[/+] on Sep 26, 2019
  8. DeepDiver1975 commented on Sep 27, 2019

    @DeepDiver1975
    ContributorAuthor

    is this what we want to have? @PVince81 @pmaier1 @LukasHirt

    Screenshot from 2019-09-27 11-49-26

  9. LukasHirt commented on Sep 27, 2019

    @LukasHirt
    Collaborator

    I'm not really a fan of how huge is the dropdown becoming but as @PVince81 wrote

    Any other UX would be more time costy

    For now 👍 from me. Let's invest more time later to find a better way.

  10. DeepDiver1975 commented on Sep 27, 2019

    @DeepDiver1975
    ContributorAuthor

    The way we are building this has an impact on the api on how apps register themselves ... as far as I can tell ...
    So we need to accept some duplicate effort here ....

  11. PVince81 commented on Sep 27, 2019

    @PVince81
    Contributor

    We could also raise the priority for getting design input on this item before desigining the API.

    From my POV it will mostly be about registering an icon, a text and an action handler.

  12. DeepDiver1975 commented on Sep 27, 2019

    @DeepDiver1975
    ContributorAuthor

    the text will be interesting - in case of menu entry (like above) - the api requires a function which returns the translated full text.
    'New Microsoft Word document..' -> 'Neues Microsoft Word Dokument...'

    We cannot translate only parts of the text.

    In case we go for a different approach the text appears in a different context and might look totally different.

  13. PVince81 commented on Sep 27, 2019

    @PVince81
    Contributor

    Indeed. But to prevent blocking ourselves we could call this extension point "beta" or "tech preview" to have no stability guarantee but still allow prototyping. The text is likely the least difficult part.

  14. DeepDiver1975 commented on Oct 24, 2019

    @DeepDiver1975
    ContributorAuthor

    with #2111 being merged - can we close this - or am I missing anything? THX
    @PVince81 @LukasHirt

  15. LukasHirt commented on Oct 24, 2019

    @LukasHirt
    Collaborator

    can we close this

    IMO yes

  16. added a commit that references this issue on Mar 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions