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

2548: Refactoring #3012

Closed
wants to merge 2 commits into from
Closed

2548: Refactoring #3012

wants to merge 2 commits into from

Conversation

LeandraH
Copy link
Contributor

@LeandraH LeandraH commented Dec 2, 2024

Short description

As discussed in #3004 (comment), this just renames the component FeedbackToolbarItem to FeedbackToolbarIcons because -- as @steffenkleinle correctly pointed out -- it is confusing to have a component named FeedbackToolbarItem returning two Items.

Resolved issues

Fixes: #2548


@@ -8,7 +8,7 @@ import config from 'translations/src/config'
import { PdfIcon } from '../assets'
import { cmsApiBaseUrl } from '../constants/urls'
import CityContentToolbar from './CityContentToolbar'
import ToolbarItem from './ToolbarItem'
import ToolbarIcon from './ToolbarIcon'
Copy link
Member

@steffenkleinle steffenkleinle Dec 3, 2024

Choose a reason for hiding this comment

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

🤔 Hmm, I sadly don't like this new naming as it misses the point of what the component does. It is not just an icon, however, it is an item (or button). So please revert (to ToolbarItem or change to ToolbarItems if you want to keep the current behavior of having both items rendered in one component.
However, as mentioned in the first PR (#3004 (comment)), I'd prefer only having it render one toolbar item, see #3015 for a proposal on specifics. I think this would be a clearer separation of concerns and more intuitive on what a specific component does.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right, that is clearer! Do you want to continue in your PR or should I take over?

Copy link
Member

Choose a reason for hiding this comment

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

Totally up to you :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Go for it then, I'll close this one :)

@LeandraH LeandraH closed this Dec 3, 2024
@LeandraH LeandraH deleted the 2548-Refactoring branch December 3, 2024 17:13
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.

Feedback functionality too hard to find and less used
2 participants