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

Node selector control should only provide the user with an Edit option for content items that are editable by Studio #6533

Open
3 of 5 tasks
AndyReiter opened this issue Feb 13, 2024 · 2 comments

Comments

@AndyReiter
Copy link

AndyReiter commented Feb 13, 2024

Duplicates

  • I have searched the existing issues

Latest version

  • The issue is in the develop branch
  • The issue is in the latest released 4.1.x
  • The issue is in the latest released 4.0.x
  • The issue is in the latest released 3.1.x

Describe the issue

The node/item selector should not provide an edit button for content items that are not editable by Studio.
PDF: Crafter has no editor for PDF, so no edit option should be given.
TXT: Crafter supports an inline text editor, so edit should be shown.

CI: 4734

Steps to reproduce

Steps:

  1. Go to Studio, Create Editorial site
  2. Go to Project Tools > Content Types and edit Article
  3. Add 2 data sources "File Uploaded From Desktop" and "File Browse"
  4. For the file uploaded from the desktop source, set the repository path to "static-assets/files"
  5. For the File Browse source, set the repository path to "static-assets/"
  6. Add control Item Selector to the Content Section, name it File and assign the previously created datasources.
  7. Go to the sidebar> static assets and create a folder with name files
  8. Upload a pdf file in static-assets/files for example test1.pdf
  9. Edit any article, for example articles/2020/12/top-books-for-young-women and in the field File:
    1. Browse and upload the file previously loaded (e.g test1.pdf)
    1. Upload a new file for example test2.pdf
  1. Now try clicking on the edit option of both files
  2. Notice the edit of the node-selector's file that was uploaded via browse fails to be modified, and the warning/error is very quickly shown before it closes.

Example:

Relevant log output

N/A

Screenshots and/or videos

image

example pdf's for testing purposes:
test2.pdf
test1.pdf

@russdanner
Copy link
Member

The bug should be reported as "Do not show the edit option for non-editable assets."

Example:
PDF: Crafter has no editor for PDF, so no edit option should be given.
TXT: Crafter supports an inline text editor, so edit should be shown.

@russdanner russdanner added the CI label Feb 13, 2024
@russdanner russdanner added this to the Next Release milestone Feb 13, 2024
@russdanner russdanner removed their assignment Feb 13, 2024
@AndyReiter AndyReiter changed the title [studio-ui] Edit a file action in the node-selector, when the file is added with Browse option [studio-ui] Edit a file action in the node-selector, when the file is added with Browse option does not allow for modification Feb 13, 2024
@AndyReiter AndyReiter changed the title [studio-ui] Edit a file action in the node-selector, when the file is added with Browse option does not allow for modification [studio-ui] Edit a file action in the node-selector, when the file is added with Browse option, does not allow for modification Feb 13, 2024
@russdanner russdanner changed the title [studio-ui] Edit a file action in the node-selector, when the file is added with Browse option, does not allow for modification [studio-ui] Node selector control should only provide the user with an Edit option for content items that are editable by Studio Feb 13, 2024
@rart rart assigned jvega190 and unassigned rart Feb 15, 2024
@sumerjabri sumerjabri removed the triage Requires triage label Feb 15, 2024
@AndyReiter
Copy link
Author

Confirmed in the latest build of support/4.1.x branch. Closing this out now.

@AndyReiter AndyReiter reopened this Feb 23, 2024
@rart rart assigned sumerjabri and unassigned jvega190 Mar 8, 2024
@sumerjabri sumerjabri changed the title [studio-ui] Node selector control should only provide the user with an Edit option for content items that are editable by Studio Node selector control should only provide the user with an Edit option for content items that are editable by Studio Mar 8, 2024
@sumerjabri sumerjabri assigned Euquimides and unassigned sumerjabri and AndyReiter Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Test and Validate
Status: Done
Development

No branches or pull requests

6 participants