Skip to content

Commit

Permalink
[BUMP] Update dependency @1024pix/pix-ui to v49 (orga)
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] authored and VincentHardouin committed Dec 4, 2024
1 parent 021de30 commit 8ff86a1
Show file tree
Hide file tree
Showing 23 changed files with 55 additions and 55 deletions.
4 changes: 2 additions & 2 deletions orga/app/components/auth/register-form.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@
</div>

{{#if this.errorMessage}}
<PixMessage @type="alert">
<PixNotificationAlert @type="alert">
{{this.errorMessage}}
</PixMessage>
</PixNotificationAlert>
{{/if}}

<div class="input-container">
Expand Down
6 changes: 3 additions & 3 deletions orga/app/components/banner/certification.gjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import PixBanner from '@1024pix/pix-ui/components/pix-banner';
import PixBannerAlert from '@1024pix/pix-ui/components/pix-banner-alert';
import { service } from '@ember/service';
import Component from '@glimmer/component';
import { t } from 'ember-intl';
Expand All @@ -21,15 +21,15 @@ export default class InformationBanner extends Component {

<template>
{{#if this.displayCertificationBanner}}
<PixBanner @type="warning">
<PixBannerAlert @type="warning">
{{t
"banners.certification.message"
documentationLink="https://cloud.pix.fr/s/DEarDXyxFxM78ps"
linkClasses="link link--banner link--bold link--underlined"
htmlSafe=true
year=this.year
}}
</PixBanner>
</PixBannerAlert>
{{/if}}
</template>
}
6 changes: 3 additions & 3 deletions orga/app/components/banner/communication.gjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import PixBanner from '@1024pix/pix-ui/components/pix-banner';
import PixBannerAlert from '@1024pix/pix-ui/components/pix-banner-alert';
import { htmlSafe } from '@ember/template';
import isEmpty from 'lodash/isEmpty';
import ENV from 'pix-orga/config/environment';
Expand All @@ -19,8 +19,8 @@ function bannerContent() {

<template>
{{#if (isEnabled)}}
<PixBanner @type={{(bannerType)}} class="sticker-banner">
<PixBannerAlert @type={{(bannerType)}} class="sticker-banner">
{{textWithMultipleLang (bannerContent)}}
</PixBanner>
</PixBannerAlert>
{{/if}}
</template>
6 changes: 3 additions & 3 deletions orga/app/components/banner/language-availability.gjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import PixBanner from '@1024pix/pix-ui/components/pix-banner';
import PixBannerAlert from '@1024pix/pix-ui/components/pix-banner-alert';
import { fn } from '@ember/helper';
import { t } from 'ember-intl';

Expand All @@ -14,13 +14,13 @@ function shouldDisplayBanner(session) {
<template>
{{#let (getService "service:session") as |session|}}
{{#if (shouldDisplayBanner session)}}
<PixBanner
<PixBannerAlert
@type="information"
@canCloseBanner="true"
@onCloseBannerTriggerAction={{fn session.updateDataAttribute "localeNotSupportedBannerClosed" true}}
>
{{t "banners.language-availability.message"}}
</PixBanner>
</PixBannerAlert>
{{/if}}
{{/let}}
</template>
6 changes: 3 additions & 3 deletions orga/app/components/banner/sco-communication.gjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import PixBanner from '@1024pix/pix-ui/components/pix-banner';
import PixBannerAlert from '@1024pix/pix-ui/components/pix-banner-alert';
import { LinkTo } from '@ember/routing';
import { service } from '@ember/service';
import Component from '@glimmer/component';
Expand All @@ -24,7 +24,7 @@ export default class ScommunicationBanner extends Component {

<template>
{{#if this.shouldDisplayBanner}}
<PixBanner @type="communication-orga">
<PixBannerAlert @type="communication-orga">
{{t "banners.import.message"}}
<ol class="banner-list">
<li>
Expand All @@ -40,7 +40,7 @@ export default class ScommunicationBanner extends Component {
<li>{{t "banners.import.step2" htmlSafe=true}}</li>
<li>{{t "banners.import.step3" htmlSafe=true}}</li>
</ol>
</PixBanner>
</PixBannerAlert>
{{/if}}
</template>
}
6 changes: 3 additions & 3 deletions orga/app/components/banner/survey.gjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import PixBanner from '@1024pix/pix-ui/components/pix-banner';
import PixBannerAlert from '@1024pix/pix-ui/components/pix-banner-alert';
import { service } from '@ember/service';
import Component from '@glimmer/component';
import { t } from 'ember-intl';
Expand Down Expand Up @@ -35,14 +35,14 @@ export default class SurveyBanner extends Component {

<template>
{{#if this.shouldDisplayBanner}}
<PixBanner @type="information">
<PixBannerAlert @type="information">
{{t
"banners.survey.message"
documentationLink=ENV.APP.SURVEY_LINK
linkClasses="link link--banner link--bold link--underlined"
htmlSafe=true
}}
</PixBanner>
</PixBannerAlert>
{{/if}}
</template>
}
4 changes: 2 additions & 2 deletions orga/app/components/campaign/analysis/competences.gjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import PixProgressGauge from '@1024pix/pix-ui/components/pix-progress-gauge';
import PixProgressBar from '@1024pix/pix-ui/components/pix-progress-bar';
import { hash } from '@ember/helper';
import { t } from 'ember-intl';

Expand Down Expand Up @@ -38,7 +38,7 @@ function getCount(campaignCollectiveResult) {
</span>
</td>
<td class="competences-col__gauge">
<PixProgressGauge
<PixProgressBar
@value={{competenceResult.validatedSkillsPercentage}}
@tooltipText={{t
"pages.campaign-review.table.competences.column.results.tooltip"
Expand Down
6 changes: 3 additions & 3 deletions orga/app/components/campaign/filter/campaign-filters.gjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import PixFilterBanner from '@1024pix/pix-ui/components/pix-filter-banner';
import PixToggle from '@1024pix/pix-ui/components/pix-toggle';
import PixToggleButton from '@1024pix/pix-ui/components/pix-toggle-button';
import { action } from '@ember/object';
import Component from '@glimmer/component';
import { t } from 'ember-intl';
Expand Down Expand Up @@ -52,11 +52,11 @@ export default class CampaignFilters extends Component {
/>
{{/unless}}

<PixToggle @toggled={{this.isToggleSwitched}} @onChange={{this.onToggle}} @screenReaderOnly={{true}}>
<PixToggleButton @toggled={{this.isToggleSwitched}} @onChange={{this.onToggle}} @screenReaderOnly={{true}}>
<:label>{{t "pages.campaigns-list.action.campaign.label"}}</:label>
<:on>{{t "pages.campaigns-list.action.campaign.ongoing"}}</:on>
<:off>{{t "pages.campaigns-list.action.campaign.archived"}}</:off>
</PixToggle>
</PixToggleButton>
</PixFilterBanner>
</template>
}
6 changes: 3 additions & 3 deletions orga/app/components/import-information-banner.gjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import PixMessage from '@1024pix/pix-ui/components/pix-message';
import PixNotificationAlert from '@1024pix/pix-ui/components/pix-notification-alert';
import { LinkTo } from '@ember/routing';
import { service } from '@ember/service';
import Component from '@glimmer/component';
Expand Down Expand Up @@ -47,14 +47,14 @@ export default class ImportBanner extends Component {

<template>
{{#if this.displayBanner}}
<PixMessage class="import-information-banner" @type={{this.bannerType}} @withIcon="true">
<PixNotificationAlert class="import-information-banner" @type={{this.bannerType}} @withIcon="true">
<strong>{{this.message}}</strong>
{{#if this.linkMessage}}
<LinkTo @route="authenticated.import-organization-participants" class="import-information-banner__link link">
{{this.linkMessage}}
</LinkTo>
{{/if}}
</PixMessage>
</PixNotificationAlert>
{{/if}}
</template>
}
6 changes: 3 additions & 3 deletions orga/app/components/import/banner.gjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import PixIcon from '@1024pix/pix-ui/components/pix-icon';
import PixMessage from '@1024pix/pix-ui/components/pix-message';
import PixNotificationAlert from '@1024pix/pix-ui/components/pix-notification-alert';
import { service } from '@ember/service';
import Component from '@glimmer/component';

Expand Down Expand Up @@ -99,7 +99,7 @@ export default class ImportBanner extends Component {
</p>
{{/if}}
{{#if this.displayBanner}}
<PixMessage @type={{this.bannerType}} @withIcon="true">
<PixNotificationAlert @type={{this.bannerType}} @withIcon="true">
<strong class="import-banner__title">{{this.bannerMessage}}</strong>
{{#if this.anchorMessage}}
(<a class="import-banner__link" href="#{{@errorPanelId}}">{{this.anchorMessage}}</a>)
Expand All @@ -111,7 +111,7 @@ export default class ImportBanner extends Component {
{{this.actionMessage}}
</span>
{{/if}}
</PixMessage>
</PixNotificationAlert>
{{/if}}
</template>
}
2 changes: 1 addition & 1 deletion orga/app/components/participant/assessment/header.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
@prescriberDescription={{@participation.prescriberDescription}}
/>
{{else}}
<PixProgressGauge @value={{this.percentage}} @color="primary" />
<PixProgressBar @value={{this.percentage}} @color="primary" />
{{/if}}
</li>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion orga/app/components/participant/assessment/results.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</span>
</td>
<td class="competences-col__gauge">
<PixProgressGauge
<PixProgressBar
@value={{multiply competenceResult.competenceMasteryRate 100}}
@tooltipText={{t
"pages.assessment-individual-results.table.column.results.tooltip"
Expand Down
6 changes: 3 additions & 3 deletions orga/app/components/places/capacity-alert.gjs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import PixBanner from '@1024pix/pix-ui/components/pix-banner';
import PixBannerAlert from '@1024pix/pix-ui/components/pix-banner-alert';
import { t } from 'ember-intl';
import { gt } from 'ember-truth-helpers';

<template>
{{#if (gt @occupied @total)}}
<PixBanner class="capacity-alert" @type="error" @withIcon="true">
<PixBannerAlert class="capacity-alert" @type="error" @withIcon="true">
{{t "banners.over-capacity.message"}}
</PixBanner>
</PixBannerAlert>
{{/if}}
</template>
6 changes: 3 additions & 3 deletions orga/app/components/places/places-lot-alert.gjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import PixBanner from '@1024pix/pix-ui/components/pix-banner';
import PixBannerAlert from '@1024pix/pix-ui/components/pix-banner-alert';
import dayjs from 'dayjs';
import { t } from 'ember-intl';
import { STATUSES } from 'pix-orga/models/organization-places-lot.js';
Expand Down Expand Up @@ -29,8 +29,8 @@ function isAlertVisible(placesLots) {

<template>
{{#if (isAlertVisible @placesLots)}}
<PixBanner class="places-lots-alert" @type="warning" @withIcon="true">
<PixBannerAlert class="places-lots-alert" @type="warning" @withIcon="true">
{{t "banners.last-places-lot-available.message" days=(getCountdDownDays @placesLots)}}
</PixBanner>
</PixBannerAlert>
{{/if}}
</template>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import PixButton from '@1024pix/pix-ui/components/pix-button';
import PixMessage from '@1024pix/pix-ui/components/pix-message';
import PixModal from '@1024pix/pix-ui/components/pix-modal';
import PixNotificationAlert from '@1024pix/pix-ui/components/pix-notification-alert';
import Component from '@glimmer/component';
import { t } from 'ember-intl';
import { not } from 'ember-truth-helpers';
Expand All @@ -18,9 +18,9 @@ export default class GenerateUsernamePasswordModal extends Component {
>
<:content>
<section class="generate-username-password-modal__content">
<PixMessage @type="warning" @withIcon={{true}}>{{t
<PixNotificationAlert @type="warning" @withIcon={{true}}>{{t
"pages.sco-organization-participants.generate-username-password-modal.warning-message"
}}</PixMessage>
}}</PixNotificationAlert>
<p>{{t "pages.sco-organization-participants.generate-username-password-modal.content-message-1"}}</p>
<p>{{t "pages.sco-organization-participants.generate-username-password-modal.content-message-2"}}</p>
<p>{{t "pages.sco-organization-participants.generate-username-password-modal.content-message-3"}}</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
>
<:content>
<section class="reset-password-modal__content">
<PixMessage @type="warning" @withIcon={{true}}>{{t
<PixNotificationAlert @type="warning" @withIcon={{true}}>{{t
"pages.sco-organization-participants.reset-password-modal.warning-message"
}}</PixMessage>
}}</PixNotificationAlert>
<p>{{t
"pages.sco-organization-participants.reset-password-modal.content-message-1"
totalSelectedStudents=@totalSelectedStudents
Expand Down
4 changes: 2 additions & 2 deletions orga/app/components/tube/list.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
{{/if}}
</div>
{{#each this.sortedAreas as |area|}}
<PixCollapsible class="{{area.color}}">
<PixAccordions class="{{area.color}}">
<:title>{{area.code}} · {{area.title}}</:title>
<:content>
{{#each area.sortedCompetences as |competence|}}
Expand Down Expand Up @@ -75,7 +75,7 @@
</table>
{{/each}}
</:content>
</PixCollapsible>
</PixAccordions>

{{/each}}
</section>
4 changes: 2 additions & 2 deletions orga/app/templates/authenticated/certifications.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@
</PixButton>
</form>

<PixMessage @withIcon={{true}}>
<PixNotificationAlert @withIcon={{true}}>
{{t "pages.certifications.documentation-link-notice"}}
<a href={{t "pages.certifications.documentation-link"}} target="_blank" rel="noopener noreferrer">{{t
"pages.certifications.documentation-link-label"
}}</a>
</PixMessage>
</PixNotificationAlert>
{{else}}
<p class="certifications-page__text">
{{t "pages.certifications.no-students-imported-yet" htmlSafe=true}}
Expand Down
4 changes: 2 additions & 2 deletions orga/app/templates/authenticated/missions/list.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{page-title (t "pages.missions.title")}}

<PixBanner class="mission-list-banner">
<PixBannerAlert class="mission-list-banner">
{{t "pages.missions.list.banner.welcome"}}
<br />
<ul>
Expand Down Expand Up @@ -58,7 +58,7 @@
<span>{{html-unsafe (t "pages.missions.list.banner.step3")}}</span>
</li>
</ul>
</PixBanner>
</PixBannerAlert>

<h1 class="mission-list__title page-title">{{t "pages.missions.title"}}</h1>
{{#if @model.missions}}
Expand Down
2 changes: 1 addition & 1 deletion orga/app/templates/authenticated/team/new.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<h1 class="page__title page-title">
{{t "pages.team-new.title"}}
</h1>
<PixBanner @type="warning" class="new-team-page__warning-banner">{{t "pages.team-new.warning"}}</PixBanner>
<PixBannerAlert @type="warning" class="new-team-page__warning-banner">{{t "pages.team-new.warning"}}</PixBannerAlert>

<p class="paragraph">
{{t "pages.team-new.email-requirement"}}<br />
Expand Down
8 changes: 4 additions & 4 deletions orga/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion orga/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"@1024pix/ember-cli-notifications": "^8.0.2",
"@1024pix/ember-testing-library": "^3.0.6",
"@1024pix/eslint-config": "^1.3.8",
"@1024pix/pix-ui": "^48.9.0",
"@1024pix/pix-ui": "^49.4.1",
"@1024pix/stylelint-config": "^5.1.22",
"@babel/eslint-parser": "^7.19.1",
"@babel/plugin-proposal-decorators": "^7.20.13",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module('Integration | Component | Banner::Communication', function (hooks) {
await render(hbs`<Banner::Communication />`);

// then
assert.dom('.pix-banner').doesNotExist();
assert.dom('.pix-banner-alert').doesNotExist();
});

test('should display the information banner', async function (assert) {
Expand All @@ -37,7 +37,7 @@ module('Integration | Component | Banner::Communication', function (hooks) {
const screen = await render(hbs`<Banner::Communication />`);

// then
assert.dom('.pix-banner--information').exists();
assert.dom('.pix-banner-alert--information').exists();
assert.ok(screen.getByText('information banner text ...'));
});
});

0 comments on commit 8ff86a1

Please sign in to comment.