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

feat(subscription): add hover information on the status icon #1130

Merged
Merged
Show file tree
Hide file tree
Changes from 13 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
- updated technical user details with user type and service endpoint fields. Also, updated copy icon color for better view and made copy icon available only when value is available [#1137](https://github.com/eclipse-tractusx/portal-frontend/pull/1137)
- **Company Subscriptions**
- update API query parameters and fix tab UI scroll [#1131](https://github.com/eclipse-tractusx/portal-frontend/pull/1131)
- - **App & Service Subcription Managment**
- Search place holder text updated, Show only available offer names at the top and Implement Hover-Information on the Status Icon of serviceSubscription[#1130](https://github.com/eclipse-tractusx/portal-frontend/pull/1130)
evegufy marked this conversation as resolved.
Show resolved Hide resolved

### Bugfixes

Expand Down
6 changes: 3 additions & 3 deletions DEPENDENCIES
Original file line number Diff line number Diff line change
Expand Up @@ -609,16 +609,16 @@ npm/npmjs/@emotion/babel-plugin/11.11.0, MIT, approved, #8386
npm/npmjs/@emotion/cache/11.11.0, MIT, approved, #8401
npm/npmjs/@emotion/hash/0.9.1, MIT, approved, #8394
npm/npmjs/@emotion/hash/0.9.2, MIT, approved, #8394
npm/npmjs/@emotion/is-prop-valid/1.3.0, MIT, approved, clearlydefined
npm/npmjs/@emotion/is-prop-valid/1.3.0, MIT AND (BSD-2-Clause AND MIT), approved, #16339
npm/npmjs/@emotion/memoize/0.8.1, MIT, approved, #8408
npm/npmjs/@emotion/memoize/0.9.0, MIT, approved, clearlydefined
npm/npmjs/@emotion/react/11.11.4, MIT AND (BSD-3-Clause AND MIT), approved, #8931
npm/npmjs/@emotion/serialize/1.3.0, MIT, approved, clearlydefined
npm/npmjs/@emotion/serialize/1.3.0, MIT AND (BSD-2-Clause AND MIT), approved, #16340
npm/npmjs/@emotion/sheet/1.2.2, MIT, approved, #8389
npm/npmjs/@emotion/styled/11.11.5, MIT, approved, clearlydefined
npm/npmjs/@emotion/unitless/0.9.0, MIT, approved, clearlydefined
npm/npmjs/@emotion/use-insertion-effect-with-fallbacks/1.0.1, MIT, approved, #8419
npm/npmjs/@emotion/utils/1.4.0, MIT, approved, clearlydefined
npm/npmjs/@emotion/utils/1.4.0, MIT AND (BSD-2-Clause AND MIT), approved, #16344
npm/npmjs/@emotion/weak-memoize/0.3.1, MIT, approved, #8402
npm/npmjs/@esbuild/aix-ppc64/0.20.2, MIT, approved, clearlydefined
npm/npmjs/@esbuild/android-arm/0.20.2, Apache-2.0 AND MIT AND BSD-3-Clause AND (BSD-2-Clause AND BSD-3-Clause), approved, #15302
Expand Down
3 changes: 3 additions & 0 deletions src/assets/locales/de/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -1488,6 +1488,9 @@
"pleaseEnterValidURL": "Please enter a valid URL",
"error": "Error",
"success": "Success",
"pending": "Das Abonnement steht noch aus",
"active": "Das Abonnement ist aktiv",
"process": "Das Abonnement ist in Bearbeitung",
"tabs": {
"request": "Request",
"active": "Active",
Expand Down
3 changes: 3 additions & 0 deletions src/assets/locales/en/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -1456,6 +1456,9 @@
"pleaseEnterValidURL": "Please enter a valid URL",
"error": "Error",
"success": "Success",
"pending": "Subscription is Pending",
"active": "Subscription is Active",
"process": "Subscription is in Progress",
"tabs": {
"request": "Request",
"active": "Active",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,15 @@ export default function SubscriptionElements({
subscription: CompanySubscriptionData
) => {
if (subscription.offerSubscriptionStatus === SubscriptionStatus.ACTIVE) {
return <AddTaskIcon className="statusIcon active" />
return (
<Tooltips
color="dark"
tooltipPlacement="top-start"
tooltipText={t('content.appSubscription.active')}
>
<AddTaskIcon className="statusIcon active" />
</Tooltips>
)
} else if (
subscription.offerSubscriptionStatus === SubscriptionStatus.PENDING
) {
Expand Down Expand Up @@ -211,7 +219,13 @@ export default function SubscriptionElements({
})
}}
/>
<HistoryIcon className="statusIcon pending" />
<Tooltips
color="dark"
tooltipPlacement="top-start"
tooltipText={t('content.appSubscription.pending')}
>
<HistoryIcon className="statusIcon pending" />
</Tooltips>
</>
)
} else if (
Expand All @@ -226,16 +240,28 @@ export default function SubscriptionElements({
variant="filled"
onClick={() => handleActivate(subscription.subscriptionId)}
/>
<HistoryIcon className="statusIcon pending" />
<Tooltips
color="dark"
tooltipPlacement="top-start"
tooltipText={t('content.appSubscription.pending')}
>
<HistoryIcon className="statusIcon pending" />
</Tooltips>
</>
)
} else {
return (
<img
src={`${getAssetBase()}/images/icons/process.svg`}
className="statusIcon"
alt="subscription process"
/>
<Tooltips
color="dark"
tooltipPlacement="top-start"
tooltipText={t('content.appSubscription.process')}
>
<img
src={`${getAssetBase()}/images/icons/process.svg`}
className="statusIcon"
alt="subscription process"
/>
</Tooltips>
)
}
} else {
Expand Down
Loading