apostrophecms / apostrophecms/apostrophe

Widgets in area not updated when you change the page type

Open
#4,048 7 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
4.6k
Forks
650
Avg merge
19h 21m
Merged PRs (30d)
23

Description

## 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
> 4. 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

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with the linked A3-area-bug project and trace the page-type change and main-area widget selection in the Apostrophe application. Done means changing from the default type to the home type refreshes the available widgets so only rich text appears in the main area.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
content, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.