Skip to content

A2 311 Timeline display flex changes #2513

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

Closed
wants to merge 50 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
6325489
:wrench: chore(Timeline): Create structure of new timeline
MetalPrime Mar 15, 2024
5b95f2a
:wrench: chore(Timeline): Set range of Dates
MetalPrime Mar 15, 2024
6358fc6
:wrench: chore(Timeline): style timeline description
MetalPrime Mar 15, 2024
dab3d14
:wrench: chore(Timeline): create activities visualization
MetalPrime Mar 15, 2024
fe00a28
:wrench: chore(Timeline): cards activity visualization
MetalPrime Mar 15, 2024
ae4d43e
:wrench: chore(Timeline): card position in timeline
MetalPrime Mar 18, 2024
4525f6d
:wrench: chore(Timeline): today line position
MetalPrime Mar 18, 2024
17f5f3c
:wrench: chore(Timeline): horizontal scroll content
MetalPrime Mar 18, 2024
3673848
:wrench: chore(Timeline): activity background color
MetalPrime Mar 20, 2024
83e30d2
:wrench: chore(Timeline): day visualization and style
MetalPrime Mar 20, 2024
f01644c
:wrench: chore(Timeline): adjust width responsive seven items
MetalPrime Mar 20, 2024
1f94a7b
:bug: fix(Timeline): Not parameter amount pass
MetalPrime Mar 20, 2024
76c427c
:wrench: chore(Timeline): adjust to week position
MetalPrime Mar 21, 2024
d13568b
:wrench: chore(Timeline): scroll arrow function visualization
MetalPrime Mar 21, 2024
e5d8566
:wrench: chore(Timeline): date with african update
MetalPrime Mar 21, 2024
86ceba2
:wrench: chore(Timeline): visual updates
MetalPrime Mar 21, 2024
3db554a
:wrench: chore(Timeline): date with african update
MetalPrime Mar 21, 2024
4a19b3b
:bug: fix(Timeline): Day progress not visualization
MetalPrime Mar 31, 2024
c599014
:bug: fix(Timeline): Final activity visualization
MetalPrime Mar 31, 2024
ac91e89
:bug: fix(Timeline): update visualization of activities
MetalPrime Apr 2, 2024
67f12c2
:wrench: chore(Timeline): width activities update
MetalPrime Apr 2, 2024
076d5d5
:bug: fix(Timeline): center the schedule title
MetalPrime Apr 3, 2024
2822adf
:bug: fix(Timeline): update date format
MetalPrime Apr 3, 2024
1f2eab0
:bug: fix(Timeline): Adjust font
MetalPrime Apr 3, 2024
78424fd
:bug: fix(Timeline): check that the timeline field as such does not o…
MetalPrime Apr 3, 2024
110c7a0
:bug: fix(Timeline): Adds space between elements
MetalPrime Apr 3, 2024
4300d62
:bug: fix(Timeline): avoid white space
MetalPrime Apr 4, 2024
135c23a
:bug: fix(Timeline):adjust the spacing between divisions
MetalPrime Apr 4, 2024
6680932
:bug: fix(Timeline):Please update to weekly range - from Mon to Fri
MetalPrime Apr 4, 2024
e69ab1e
:bug: fix(Timeline):Add color code for the taks bar
MetalPrime Apr 4, 2024
f154ec6
:bug: fix(Timeline):Timeline makes a tour of all the tasks before rea…
MetalPrime Apr 4, 2024
26b352a
:bug: fix(Timeline):Please update to weekly range - from Mon to Fri P…
MetalPrime Apr 5, 2024
22a8ad5
:recycle: refactor(Timeline): visual changes update
MetalPrime Apr 8, 2024
4636ee5
:bug: fix(Timeline): Invalida date after fast clicked
MetalPrime Apr 8, 2024
2287b48
:recycle: refactor(Timeline): changes from days to weeks
MetalPrime Apr 11, 2024
08f4b18
:recycle: refactor(Timeline): today position
MetalPrime Apr 11, 2024
96ace17
:recycle: refactor(Timeline): scroll pattern
MetalPrime Apr 11, 2024
aae39d1
:recycle: refactor(Timeline): Visual refactor activities
MetalPrime Apr 12, 2024
7eff9dd
:sparkles: feat(Timeline): dynamic height
MetalPrime Apr 12, 2024
43b1fb3
:recycle: refactor(Timeline): validation height
MetalPrime Apr 12, 2024
858c5ba
:sparkles: feat(Timeline): tooltip implementation
MetalPrime Apr 12, 2024
12274d1
:recycle: refactor(Timeline): visual aspects changes
MetalPrime Apr 16, 2024
8562f10
:recycle: refactor(Timeline): today visual changes
MetalPrime Apr 17, 2024
f6c4f26
:recycle: refactor(Timeline): visual changes special cases
MetalPrime Apr 17, 2024
4a9dd74
:recycle: refactor(Timeline): more than 7 items
MetalPrime Apr 17, 2024
a8ec026
Merge branch 'aiccra-staging' into A2-311-Timeline-visual-change
MetalPrime Apr 17, 2024
af6847f
:bug: fix(Overall performance): Adjustment in additional question del…
kenjitm Apr 22, 2024
b0f7886
:recycle: refactor(Timeline): unique item
MetalPrime Apr 22, 2024
6400477
:recycle: refactor(Timeline): changes in flex items rules
MetalPrime Apr 22, 2024
1af16b2
Merge branch 'aiccra-staging' into A2-311-Timeline-visual-change
MetalPrime Apr 22, 2024
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
Original file line number Diff line number Diff line change
Expand Up @@ -100,16 +100,14 @@ public void remove(CrpProgramOutcomeIndicator originalCrpOutcomeIndicator, Phase
List<CrpProgramOutcome> outcomes = crpProgramOutcomeManager.getAllCrpProgramOutcomesByComposedIdFromPhase(
originalCrpOutcomeIndicator.getCrpProgramOutcome().getComposeID(), initialPhase.getId());

if (outcomes != null) {
if (outcomes != null && !outcomes.isEmpty()) {
for (CrpProgramOutcome crpProgramOutcome : outcomes) {

if (this.getCrpProgramOutcomeIndicatorByOutcomeAndIndicator(originalCrpOutcomeIndicator.getIndicator(),
crpProgramOutcome) != null
|| (!this.getCrpProgramOutcomeIndicatorByOutcomeAndIndicator(originalCrpOutcomeIndicator.getIndicator(),
crpProgramOutcome).isEmpty())) {
List<CrpProgramOutcomeIndicator> indicators =
new ArrayList<>(this.getCrpProgramOutcomeIndicatorByOutcomeAndIndicator(
originalCrpOutcomeIndicator.getIndicator(), crpProgramOutcome));
List<CrpProgramOutcomeIndicator> result = this.getCrpProgramOutcomeIndicatorByOutcomeAndIndicator(
originalCrpOutcomeIndicator.getIndicator(), crpProgramOutcome);

if (result != null && !result.isEmpty()) {
List<CrpProgramOutcomeIndicator> indicators = new ArrayList<>(result);

for (CrpProgramOutcomeIndicator indicator : indicators) {
if (indicator != null && indicator.getId() != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -870,11 +870,11 @@ public void saveIndicators(CrpProgramOutcome crpProgramOutcomeDB, CrpProgramOutc
if (crpProgramOutcomeIndicator != null
&& !crpProgramOutcomeDetached.getIndicators().contains(crpProgramOutcomeIndicator)) {
crpProgramOutcomeIndicatorManager.deleteCrpProgramOutcomeIndicator(crpProgramOutcomeIndicator.getId());
crpProgramOutcomeIndicatorManager.remove(crpProgramOutcomeIndicator, nextPhase);
// crpProgramOutcomeIndicatorManager.remove(crpProgramOutcomeIndicator, nextPhase);
}
} else {
crpProgramOutcomeIndicatorManager.deleteCrpProgramOutcomeIndicator(crpProgramOutcomeIndicator.getId());
crpProgramOutcomeIndicatorManager.remove(crpProgramOutcomeIndicator, nextPhase);
// crpProgramOutcomeIndicatorManager.remove(crpProgramOutcomeIndicator, nextPhase);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,8 @@
<img class="itemimgdeliverables" src="${baseUrlCdn}/global/images/loading-loading-forever.gif" >
</section>
<section class="timeline" style="display: none">
<div class="homeTitleTimeline"><b>Schedule</b></div>
<div class="timelineAlert">
<!-- <img src="${baseUrlCdn}/global/images/icon-transparent-warning.png" width="30"> -->
<p class="timelineAlertText"> days left until the end of the activity</p>
</div>
<div class="containerTimeline">
<!-- <a href="#item1">touch me</a> -->
<div class="scroll-x-containerTimeline " id="listItemTimeline">
<div class="scroll-x-containerTimeline2 " id="listItemTimeline2">
</div>
<div class="sideButtonTimeline buttonLeftTimeline"><p><</p></div>
<div class="sideButtonTimeline buttonRightTimeline"><p>></p></div>
Expand Down
253 changes: 250 additions & 3 deletions marlo-web/src/main/webapp/crp/css/home/dashboard.css
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,8 @@ div#impactGraphic-fullscreen {
height: 100%;
}

/*************** Timeline ********************/

span.leftControl {
left: 5px;
}
Expand Down Expand Up @@ -247,7 +249,6 @@ span.timelineControl:hover {
justify-content: center;
-webkit-box-shadow: 0px 0px 10px rgb(0 0 0 / 15%);
border-radius: 5px;
height: 297px;
}

.porcentTimeLine {
Expand Down Expand Up @@ -351,11 +352,11 @@ span.timelineControl:hover {
}

.buttonLeftTimeline {
left: 0.75rem;
left: 2.5%;
}

.buttonRightTimeline {
right: 0.75rem;
right: 2.5%;
}

.timelineBackSuccess {
Expand Down Expand Up @@ -411,7 +412,253 @@ span.timelineControl:hover {
height: 50px;
align-self: center;
}

#timelineContainer {
position: relative;
margin: 18px 30px 18px 30px;
overflow-x: scroll;
overflow-y: hidden;
height: 36vh;
width: 80%;
margin: 0 auto;
}

#timelineContainer::-webkit-scrollbar {
-webkit-appearance: none;
}

#timelineDescription{
display: flex;
padding: 18px 30px 18px 30px;
width: 100%;
align-items: end;
}

#timelineDescription_title{
font-size: 2.0em;
color: #333;
width: 100%;
text-align: center;
}

#timelineDescription_range{
font-size: 1.5rem;

}

#timeline_times {
display: flex;
width: max-content;
margin-top: 10px;
margin-bottom: 10px;
padding: 5px 0;
position: absolute;
height: 100%;
}

#timeline_activities {
position: relative;
font-size: 14px;
}

@media only screen and (min-width:1545px){
#timeline_activities {
font-size: 20px;
}

#timelineContainer{
height: 30vh;
}
}

@media only screen and (min-width:2560px){
#timeline_activities {
font-size: 28px;
}
}

#timeline_today {
position: absolute;
top: 0;
left: 0;
width: 0.25rem;
height: 80%;
border: 2px dashed red;
border-width: 0.5px 1.5px;
}

.timebox {
height: 80%;
position: relative;
text-align: center;
border-right: 1px dashed #CCCCCC;
border-left: 1px dashed #CCCCCC;
}

.timebox_information {
position: absolute;
bottom: -24px;
}

.timeNumber{
margin: 1.5px;
}

.activityCard {
position: relative;
}

.activityCard_container{
position: absolute;
display: flex;
padding: 0.5rem;
flex-direction: column;
gap: 0.5rem;
flex-shrink: 0;
border-radius: 0.75rem;
background: #E8F4FF;
margin-bottom: 1rem;
}

.activityCard_content{
display: inline-flex;
flex-direction: column;
gap: 0.25rem;
left: 0;
overflow: hidden;
padding: 4px 6px;
position: sticky;
max-width: max-content;
}

.activityCard_description {
overflow: hidden;
color: #000;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 1.4rem;
font-style: normal;
font-weight: 700;
margin: 0;
padding: 0;
}

.activityCard_details{
display: flex;
justify-content: space-between;
align-items: center;
max-width: max-content;
gap: 2rem;
}

.activityCard_details div{
display: flex;
align-items: center;
gap: 0 0.5rem;
max-width: 33.3%;
flex-wrap: wrap;
}

.activityCard_details div:nth-child(odd){
max-width: 35%;
}

.activityCard_details div:nth-child(even){
max-width: 30%;
}

.activityCard_details div b{
font-size: 1rem;
color: #000;
line-height: 1.2em;
}

.activityCard_details p{
font-size: 1rem;
font-style: normal;
font-weight: 400;
line-height: 0.75rem;
margin: 0;
color: #000;
}

.activityCard:nth-child(n+1){
top: 0em;
}

.activityCard:nth-child(2n+2){
top: 4.5em;
}


.activityCard:nth-child(3n+3){
top: 8.7em;

}

#timeline_activities .activityFlexTop--1{
top: 0em;
}

#timeline_activities .activityFlexTop--2{
top: 4.5em;
}

#timeline_activities .activityFlexTop--3{
top: 9em;
}

#timeline_activities .activityUnique{
top: 2.1em;
}

#timelineAlert{
display: flex;
flex-direction: column;
justify-content: flex-end;
gap: 0.5rem;
align-items: end;
padding-bottom: 6px;
position: absolute;
right: 2.5%;
}

#timelineAlert_container{
display: flex;
flex-direction: row;
gap: 2rem;
}

.timelineAlert_item{
display: flex;
flex-direction: row;
align-items: flex-end;
gap: 0.5rem;
}

.timelineAlert_item p{
font-size: 10px;
margin: 0;
}

.timelineAlert_item_color{
width: 10px;
height: 10px;
border-radius: 12.5px;
background-color: #0377a3;
}

.timelineAlert_item_color--1{
background-color: #F9C786;
}

.timelineAlert_item_color--2{
background-color: #81B8C1;
}

.timelineAlert_item_color--3{
background-color: #B5D08B;
}
/*************** sectionMap ********************/

.sectionMap{
Expand Down
Loading