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

[web] Drop Section#openDialog prop #838

Merged
merged 2 commits into from
Nov 2, 2023
Merged

Conversation

dgdavid
Copy link
Contributor

@dgdavid dgdavid commented Nov 2, 2023

Problem

Some time ago, we introduced in the Agama core/Section component a feature to allow a modal dialog to be opened directly from the section title. However, as the installer has evolved, we have limited the title behavior to navigation only, which is more expected and less confusing. Thus, such a feature is actually not in use.

Solution

Although additional features rarely cause problems, it's best to keep components as simple and clean as possible. Also, at this time, we believe it is more straightforward to use an explicit option inside the section to open a dialog than to hide it behind the header.

Therefore, this PR drops the mentioned feature. If we find a very compelling and valid use case, we can reintroduce it.

Testing

  • Unit tests adapted accordingly.

It was there almost from the beginning for allowing allowing a modal
dialog to be opened directly from a section title. However, as the
installer has evolved, we have limited the title behavior to navigation
only which is more expected and less confusing. If a section needs to
open a dialog it's better to use an explicit option inside the section
content instead of hiding these options behind the section header.

We can reintroduce the feature in the future if really needed, but
maintaining it just in case isn't an option.
@dgdavid dgdavid force-pushed the remove-open-dialog-from-section branch from 2b1c5f0 to 02fd153 Compare November 2, 2023 07:42
@coveralls
Copy link

coveralls commented Nov 2, 2023

Coverage Status

coverage: 75.028% (-0.02%) from 75.045% when pulling 02fd153 on remove-open-dialog-from-section into 6e44336 on master.

Copy link
Contributor

@imobachgs imobachgs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dropping code is usually good 😉

@dgdavid dgdavid merged commit fe9eac1 into master Nov 2, 2023
9 checks passed
@dgdavid dgdavid deleted the remove-open-dialog-from-section branch November 2, 2023 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants