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

Widgets in area not updated when you change the page type #4048

Open
ecb34 opened this issue Feb 16, 2023 · 7 comments
Open

Widgets in area not updated when you change the page type #4048

ecb34 opened this issue Feb 16, 2023 · 7 comments
Labels

Comments

@ecb34
Copy link
Contributor

ecb34 commented Feb 16, 2023

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

area_bug-2023-02-16_11.13.17.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 ecb34 added the bug label Feb 16, 2023
@BoDonkey
Copy link
Contributor

BoDonkey commented Feb 16, 2023

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
Copy link
Contributor

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

@abhijain2003
Copy link

Home.-.Apostrophe.Demo.-.Google.Chrome.2023-03-20.09-17-19.mp4

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

@BoDonkey
Copy link
Contributor

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

@abhijain2003
Copy link

abhijain2003 commented Mar 20, 2023

it is the latest one,

@BoDonkey
Copy link
Contributor

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

@ecb34
Copy link
Contributor Author

ecb34 commented Mar 22, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants