apostrophe icon indicating copy to clipboard operation
apostrophe copied to clipboard

Widgets in area not updated when you change the page type

Open ecb34 opened this issue 2 years ago • 7 comments

To Reproduce

Step by step instructions to reproduce the behavior:

  1. Create a new page
  2. Click in add content to the main area
  3. It shows the available widgets (rich text, image, video)
  4. Change from default type to home type
  5. Click in add content on the main area, it shows the same widgets
  6. See error

Expected behavior

When you change to the home type it should only show the rich text widget in the main area

Describe the bug

The widgets available in an area are not updated when you change the page type

Details

Version of Node.js: v16.16

Server Operating System: Ubuntu 20

Video reproducing issue

https://user-images.githubusercontent.com/26570009/219337895-46e876a6-edf5-49d8-b85e-59f6e00831d9.mp4

Code https://github.com/ecb34/A3-area-bug

The project is the same as the boilerplate repository, only removing the image and video widget options for the home page main area

ecb34 avatar Feb 16 '23 10:02 ecb34

Hi @ecb34, EDITED: Missed your comment below the video.

~~What widgets do you have added to each page-type? What is the expected behavior? For the boilerplate project, both page types have the same three widgets. If you haven't altered those pages then what you are seeing is the expected behavior.~~ Cheers, Bob

BoDonkey avatar Feb 16 '23 10:02 BoDonkey

Hi @ecb34, I can reproduce the problem. Thanks for bringing this to our attention. I'm opening a ticket now. Cheers, Bob

BoDonkey avatar Feb 16 '23 11:02 BoDonkey

https://user-images.githubusercontent.com/91718608/226241781-cc8b77de-69cf-4679-8f02-bb1bc9e3cd5c.mp4

how old your issue is, as ui has changed a lot from what you are trying to say

abhijain2003 avatar Mar 20 '23 03:03 abhijain2003

Hi @abhijain2003 - What version of Apostrophe are you using?

BoDonkey avatar Mar 20 '23 10:03 BoDonkey

it is the latest one,

abhijain2003 avatar Mar 20 '23 10:03 abhijain2003

Hi @ecb34 & @abhijain2003, Can you check this problem again. I was playing around this morning and found that it only reproduces if the area I'm checking between the two pages has the same name. So in the boilerplate, for example, the top area is named main for both the home and default pages. If I rename one of them the problem goes away. Thanks, Bob

BoDonkey avatar Mar 22 '23 11:03 BoDonkey

Hi @BoDonkey Yes, it only happens if the area has the same name in two different pages

ecb34 avatar Mar 22 '23 12:03 ecb34