Skip to content

Commit d33ba81

Browse files
committed
front: drop ScenarioDescription
This component is not used anymore. Signed-off-by: Clara Ni <clara.ni@outlook.fr>
1 parent e056c43 commit d33ba81

File tree

5 files changed

+3
-319
lines changed

5 files changed

+3
-319
lines changed

front/public/locales/de/operational-studies.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,7 @@
5454
"electricalProfileSet": "Bahnstromprofil-Satz",
5555
"errorMessages": {
5656
"error": "Ein Fehler ist aufgetreten",
57-
"hardErrorInfra": "Das Netz enthält Fehler und kann ohne vorherige Korrektur nicht benutzt werden.",
58-
"softErrorInfra": "Die Anwendung ist nicht verfügbar, ein Serverfehler ist aufgetreten, bitte versuchen Sie es später erneut.",
59-
"unableToDeleteScenarioMessage": "Szenario löschen nicht möglich.",
60-
"unableToLoadInfra": "Ladefehler, Neustart in Aufbau ({{reloadCount}})"
57+
"unableToDeleteScenarioMessage": "Szenario löschen nicht möglich."
6158
},
6259
"filterPlaceholder": "Filter, Tags",
6360
"infraLoadingState": "{{step}}/3",

front/public/locales/en/operational-studies.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,7 @@
6666
"electricalProfileSet": "Electrical profiles set",
6767
"errorMessages": {
6868
"error": "An error has occurred",
69-
"hardErrorInfra": "The infrastructure contains errors and cannot be used without first being corrected.",
70-
"softErrorInfra": "The application is unavailable, a server error has occurred, please try again later.",
71-
"unableToDeleteScenarioMessage": "Unable to delete a scenario",
72-
"unableToLoadInfra": "Loading error, retry in progress ({{reloadCount}})"
69+
"unableToDeleteScenarioMessage": "Unable to delete a scenario"
7370
},
7471
"filterPlaceholder": "Filter, tags",
7572
"infraLoadingState": "{{step}}/3",

front/public/locales/fr/operational-studies.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,7 @@
6666
"electricalProfileSet": "Set de profils électriques",
6767
"errorMessages": {
6868
"error": "Une erreur est survenue",
69-
"hardErrorInfra": "L'infrastructure comporte des erreurs et ne peut être utilisée sans être corrigée au préalable.",
70-
"softErrorInfra": "L'application est indisponible, une erreur serveur est survenue, veuillez réessayer ultérieurement.",
71-
"unableToDeleteScenarioMessage": "Impossible de supprimer le scénario",
72-
"unableToLoadInfra": "Erreur de chargement, nouvelle tentative en cours ({{reloadCount}})"
69+
"unableToDeleteScenarioMessage": "Impossible de supprimer le scénario"
7370
},
7471
"filterPlaceholder": "Filtre, étiquettes",
7572
"infraLoadingState": "{{step}}/3",

front/src/applications/operationalStudies/components/Scenario/ScenarioDescription.tsx

Lines changed: 0 additions & 178 deletions
This file was deleted.

front/src/styles/scss/applications/operationalStudies/_scenario.scss

Lines changed: 0 additions & 129 deletions
Original file line numberDiff line numberDiff line change
@@ -379,142 +379,13 @@
379379
flex-direction: column;
380380
padding-bottom: 24px;
381381

382-
:first-child:hover .update-scenario {
383-
display: flex;
384-
}
385-
386-
.scenario-details-name {
387-
display: flex;
388-
align-items: center;
389-
justify-content: space-between;
390-
font-weight: 600;
391-
color: var(--black100);
392-
font-size: 1.125rem;
393-
text-align: left;
394-
line-height: 24px;
395-
}
396-
397-
.scenario-description {
398-
position: relative;
399-
400-
.scenario-details-description {
401-
position: relative;
402-
color: var(--grey50);
403-
font-size: 0.875rem;
404-
font-weight: 400;
405-
line-height: 20px;
406-
margin: 4px 16px 0 0;
407-
word-break: break-all;
408-
}
409-
410-
.not-opened {
411-
overflow: hidden;
412-
max-height: 60px;
413-
max-width: 100%;
414-
span {
415-
padding-inline: 3.5px;
416-
position: absolute;
417-
bottom: 0;
418-
right: 0;
419-
background: rgba(222, 221, 214, 1);
420-
color: var(--grey80);
421-
}
422-
}
423-
424-
.opened {
425-
position: absolute;
426-
top: 0;
427-
left: -8px;
428-
background-color: var(--white100);
429-
color: var(--grey80);
430-
padding: 54px 56px 50px 56px;
431-
font-size: 1rem;
432-
font-weight: 400;
433-
line-height: 24px;
434-
z-index: 3;
435-
border-radius: 6px;
436-
box-shadow:
437-
0px 6px 21px -5px rgba(255, 171, 88, 0.31),
438-
0px 16px 30px -5px rgba(0, 0, 0, 0.19),
439-
0px 3px 5px -2px rgba(0, 0, 0, 0.16);
440-
width: calc(100% + 120px);
441-
.displayed-description {
442-
position: absolute;
443-
top: 16px - 5px;
444-
right: 16px;
445-
}
446-
}
447-
448-
.scenario-collapse-button {
449-
position: absolute;
450-
padding-bottom: 3px;
451-
padding-inline: 7px 2px;
452-
height: 34px;
453-
width: 24px;
454-
color: var(--grey40);
455-
background-color: var(--ambientB10);
456-
border-radius: 5px 0 0 5px;
457-
top: 0;
458-
transform: translateX(24px);
459-
box-shadow: 0 0 0 1px var(--black10);
460-
clip-path: inset(-1px 0 -1px -1px);
461-
}
462-
463-
.update-scenario {
464-
// button has to be positioned regarding the description
465-
position: absolute;
466-
display: none;
467-
right: 16px;
468-
bottom: -48px;
469-
padding: 3px 8px;
470-
transition: 0.2s;
471-
height: 32px;
472-
width: 32px;
473-
border-radius: 4px;
474-
box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 1) inset;
475-
background-color: var(--ambientB10);
476-
color: var(--primary60);
477-
&:hover {
478-
background-color: var(--white100);
479-
color: var(--primary80);
480-
}
481-
}
482-
}
483-
484382
.scenario-details-electrical-profile-set {
485383
font-size: 0.75rem;
486384
font-weight: 400;
487385
line-height: 16px;
488386
margin-top: 6px;
489387
color: var(--black100);
490388
}
491-
.scenario-details-infra-name {
492-
font-size: 0.75rem;
493-
font-weight: 400;
494-
line-height: 16px;
495-
color: var(--black100);
496-
margin-top: 4px;
497-
display: flex;
498-
align-items: center;
499-
img {
500-
height: 16px;
501-
}
502-
}
503-
504-
.scenario-details-infra-error {
505-
color: var(--error60);
506-
background-color: var(--error5);
507-
margin: 21px -23px 0 -24px;
508-
padding: 9px 56px 11px 24px;
509-
display: flex;
510-
511-
.error-description {
512-
margin-left: 16px;
513-
font-size: 0.875rem;
514-
font-weight: 400;
515-
line-height: 20px;
516-
}
517-
}
518389

519390
.scenario-timetable {
520391
display: flex;

0 commit comments

Comments
 (0)