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

IBX-7525: UDW as npm package #1062

Merged
merged 1 commit into from
Jan 19, 2024
Merged

Conversation

lucasOsti
Copy link
Contributor

@lucasOsti lucasOsti commented Dec 14, 2023

Question Answer
Tickets https://issues.ibexa.co/browse/IBX-7525
Bug fix? no
New feature? yes
BC breaks? no
Tests pass?
Doc needed? no
License GPL-2.0

Checklist:

  • Coding standards ($ composer fix-cs)
  • Ready for Code Review

@lucasOsti lucasOsti changed the title IBX-6398:[Stage 2] - UDW as npm package IBX-6398[Stage 2]: UDW as npm package Dec 14, 2023
@lucasOsti lucasOsti force-pushed the IBX-6398-STAGE-2-UDW-as-npm-package branch from f5655e8 to 84192a0 Compare December 14, 2023 15:37
@lucasOsti lucasOsti force-pushed the IBX-6398-STAGE-2-UDW-as-npm-package branch from ceea777 to 9528601 Compare December 21, 2023 12:30
if (props.extraClasses) {
className = `${className} ${props.extraClasses}`;
}
const includedIcon = props.useIncludedIcon || window.origin !== instanceUrl;
Copy link
Contributor

Choose a reason for hiding this comment

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

isIncludedIcon/hasIncludedIcon would probably be better name :)

Comment on lines 73 to 77
return (
<>
<IconComponent className={cssClass} />
</>
);
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
return (
<>
<IconComponent className={cssClass} />
</>
);
return <IconComponent className={cssClass} />;

import { getIconPath } from '@ibexa-admin-ui/src/bundle/Resources/public/js/scripts/helpers/icon.helper';

const UrlIcon = (props) => {
const linkHref = props.customPath ? props.customPath : getIconPath(props.name);
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
const linkHref = props.customPath ? props.customPath : getIconPath(props.name);
const linkHref = props.customPath ?? getIconPath(props.name);

@lucasOsti lucasOsti requested a review from GrabowskiM January 11, 2024 10:02
@lucasOsti lucasOsti changed the title IBX-6398[Stage 2]: UDW as npm package IBX-7525: UDW as npm package Jan 11, 2024
@lucasOsti lucasOsti force-pushed the IBX-6398-STAGE-2-UDW-as-npm-package branch from 181068e to 245bc8d Compare January 12, 2024 16:03
@lucasOsti lucasOsti force-pushed the IBX-6398-STAGE-2-UDW-as-npm-package branch from 245bc8d to 1ebad2d Compare January 18, 2024 13:55
Copy link

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@dew326 dew326 merged commit 925b988 into main Jan 19, 2024
22 checks passed
@dew326 dew326 deleted the IBX-6398-STAGE-2-UDW-as-npm-package branch January 19, 2024 14:06
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.

9 participants