Skip to content

Commit bdc383d

Browse files
committed
Merge branch 'staging' of https://github.com/fairdataihub/SODA-for-SPARC into staging
2 parents b343868 + 16a8fde commit bdc383d

File tree

3 files changed

+22
-16
lines changed

3 files changed

+22
-16
lines changed

assets/css/nav.css

+4
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,10 @@ a[data-toggle="collapse"] {
162162
border-radius: 0;
163163
}
164164

165+
#main-nav ul li a.is-selected i {
166+
color: var(--color-light-green);
167+
}
168+
165169
#main-nav ul li a.is-selected svg {
166170
fill: var(--color-light-green);
167171
}

index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135

136136
<li>
137137
<a href="#" data-section="guided_mode" id="guided_mode_view">
138-
<i class="fas fa-share-square" style="color: black; margin-right: 21px"></i>
138+
<i class="fas fa-share-square" style="margin-right: 21px"></i>
139139
Curate and Share
140140
</a>
141141
</li>
@@ -152,7 +152,7 @@
152152
xmlns="http://www.w3.org/2000/svg"
153153
>
154154
<path
155-
d="M2.5 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2h-11zm5 2h1a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1zm-5 1a1 1 0 0 1 1-1h1a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1V3zm9-1h1a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1z"
155+
d="M2.5 0a2 2p 0 0 0-2 2v12a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2h-11zm5 2h1a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1zm-5 1a1 1 0 0 1 1-1h1a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1V3zm9-1h1a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1z"
156156
></path>
157157
</svg>
158158
Free Form Mode

scripts/others/renderer.js

+16-14
Original file line numberDiff line numberDiff line change
@@ -7460,7 +7460,11 @@ const initiate_generate = async () => {
74607460
document.getElementById("div-new-curate-progress").style.display = "block";
74617461
document.getElementById("div-generate-comeback").style.display = "none";
74627462

7463+
// Create the progress bar clone for the navigation bar
74637464
let organizeDataset = document.getElementById("organize_dataset_btn");
7465+
let curateAndShareNavButton = document.getElementById("guided_mode_view");
7466+
let documentationNavButton = document.getElementById("documentation-view");
7467+
let contactNavButton = document.getElementById("contact-us-view");
74647468
let uploadLocally = document.getElementById("upload_local_dataset_btn");
74657469
let guidedModeHomePageButton = document.getElementById("button-homepage-guided-mode");
74667470
let organizeDataset_option_buttons = document.getElementById("div-generate-comeback");
@@ -7493,8 +7497,12 @@ const initiate_generate = async () => {
74937497
returnButton.id = "returnButton";
74947498
returnButton.innerHTML = "Return to progress";
74957499

7500+
// Event handler for navigation menu's progress bar clone
74967501
returnButton.onclick = function () {
74977502
organizeDataset.disabled = false;
7503+
contactNavButton.classList.remove("is-selected");
7504+
documentationNavButton.classList.remove("is-selected");
7505+
curateAndShareNavButton.classList.add("is-selected");
74987506
organizeDataset.className = "content-button is-selected";
74997507
organizeDataset.style = "background-color: #fff";
75007508
organizeDataset.click();
@@ -7510,7 +7518,6 @@ const initiate_generate = async () => {
75107518
organizeDataset.style = "background-color: #f6f6f6; border: #fff;";
75117519
};
75127520

7513-
//document.body.appendChild(statusBarClone);
75147521
let sparc_container = document.getElementById("sparc-logo-container");
75157522
sparc_container.style.display = "none";
75167523
navContainer.appendChild(statusBarClone);
@@ -7523,17 +7530,15 @@ const initiate_generate = async () => {
75237530
sodaJSONObj["manifest-files"]["auto-generated"] = true;
75247531
}
75257532

7526-
//dissmisButton.addEventListener("click", dismiss('status-bar-curate-progress'));
75277533
if ("manifest-files" in sodaJSONObj) {
7528-
if ("auto-generated" in sodaJSONObj["manifest-files"]) {
7529-
if (sodaJSONObj["manifest-files"]["auto-generated"] === true) {
7530-
delete_imported_manifest();
7531-
}
7532-
} else {
7533-
if (sodaJSONObj["manifest-files"]["destination"] === "generate-dataset") {
7534-
manifest_files_requested = true;
7535-
delete_imported_manifest();
7536-
}
7534+
if (
7535+
"auto-generated" in sodaJSONObj["manifest-files"] &&
7536+
sodaJSONObj["manifest-files"]["auto-generated"] === true
7537+
) {
7538+
delete_imported_manifest();
7539+
} else if (sodaJSONObj["manifest-files"]["destination"] === "generate-dataset") {
7540+
manifest_files_requested = true;
7541+
delete_imported_manifest();
75377542
}
75387543
}
75397544

@@ -7545,9 +7550,6 @@ const initiate_generate = async () => {
75457550
let uploadedBytes = 0;
75467551
let increaseInFileSize = 0;
75477552
let generated_dataset_id = undefined;
7548-
// when generating a new dataset we need to add its ID to the ID -> Name mapping
7549-
// we need to do this only once
7550-
// TODO: Integrate into modified analytics tracking
75517553
let loggedDatasetNameToIdMapping = false;
75527554

75537555
// determine where the dataset will be generated/uploaded

0 commit comments

Comments
 (0)