Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
ff113f2
Merge pull request #2247 from kbase/narrative_version_debug
briehl Apr 21, 2021
3b09924
Merge pull request #2289 from kbase/develop
briehl May 18, 2021
80766a3
remove console logging
eapearson Jul 15, 2021
fe61c0a
minor code cleanup
eapearson Jul 15, 2021
d91670d
fix tab removal behavior; remove commented out code
eapearson Jul 15, 2021
98394da
disable focus outline for close button; it just looks weird given its…
eapearson Jul 15, 2021
d1a9a56
improve layout; use "-" for missing name or function (rather than emp…
eapearson Jul 15, 2021
271ba29
improve layout spacing; disable explore cluster for > 200 genes; hand…
eapearson Jul 15, 2021
2231a2b
don't convert stats to fixed decimal strings, that is already handled…
eapearson Jul 15, 2021
8efb24f
disabled explore cluster button aligned with non-disabled.
eapearson Jul 15, 2021
d65549e
prettification
eapearson Jul 15, 2021
7f67f84
ignore _temp dir
eapearson Jul 15, 2021
1cf849f
fix order of ops in init
eapearson Jul 15, 2021
ef17db7
fix typo in getSubmatrixParams; add improved error handling based on …
eapearson Jul 23, 2021
f1cffbc
use get_objects2 rather than deprecated ws methods; use upas.cluster…
eapearson Jul 23, 2021
6b8ca67
add roles for testing; other minor improvements.
eapearson Jul 23, 2021
2001bf9
remove unused variable
eapearson Jul 23, 2021
a995a83
remove unused variable (set twice.)
eapearson Jul 23, 2021
a26f7d2
remove unused featureValueClient property and dependency
eapearson Jul 23, 2021
ad15040
Add testing of pairwise clusters widget, with test data; refactor to …
eapearson Jul 25, 2021
b2e6be2
Merge remote-tracking branch 'origin/develop' into SCT-3097_clusterin…
eapearson Jul 25, 2021
1c4edc9
add release note
eapearson Jul 25, 2021
cefcd5d
remove commented out code, use actual uuid.
eapearson Jul 26, 2021
f56e850
hoist more hardcoded values into constants to clarify code;
eapearson Jul 26, 2021
2ca0bd6
remove nonfunctional testing code
eapearson Jul 26, 2021
adc05a2
remove unused modules references
eapearson Jul 26, 2021
c42680d
fix spacing
eapearson Jul 26, 2021
e9abb88
fix for code quality tool, removes unnecessary variables
eapearson Jul 26, 2021
0b1614e
fix typo, remove unnecessary lines, commented out code
eapearson Jul 26, 2021
dd75ed7
simplify code, refactor for loop.
eapearson Jul 26, 2021
30b6e9f
remove unnecessary comments, commented out code.
eapearson Jul 26, 2021
a55be38
make code quality tool happy by removing shadowed variables
eapearson Jul 26, 2021
456ff4a
remove default for duration
eapearson Jul 26, 2021
c749f0f
refactor a repeated pattern into a function
eapearson Jul 26, 2021
bf6c0ba
rename variables to avoid triggering warning in cq tools
eapearson Jul 26, 2021
7dc2136
center message
eapearson Jul 26, 2021
cd7edd8
remove button disabling with > 200 genes
eapearson Jul 26, 2021
d0a1843
fix data table not displaying table controls (sort, pagination, info)
eapearson Jul 26, 2021
c14cf4f
fix hide/show of selected features table
eapearson Jul 26, 2021
f88ecb9
adjust test for button
eapearson Jul 26, 2021
f151891
Merge pull request #2425 from kbase/develop
briehl Aug 20, 2021
3e39acd
Merge remote-tracking branch 'origin/develop' into SCT-3097_clusterin…
eapearson Aug 20, 2021
0201fec
restore sample service to config
eapearson Aug 20, 2021
6d3adaa
restore CHROME_BIN to karma unit testing config
eapearson Aug 20, 2021
3e7e66f
Fix loading message (probably merge error)
eapearson Aug 20, 2021
4f9f757
minor updates to integratin-test doc
eapearson Aug 20, 2021
f6e2e46
add "whenShown" callback; useful for doing rendering fixup (e.g. data…
eapearson Aug 20, 2021
4d34618
move some styles into stylesheet; fix some table styling issues
eapearson Aug 20, 2021
eddc302
Merge remote-tracking branch 'origin/develop' into SCT-3097_clusterin…
eapearson Sep 29, 2021
bb3d0e2
remove todo comment and unused argument
eapearson Sep 30, 2021
f841f4b
tabs 4 -> 2 and other formatting fixes
eapearson Sep 30, 2021
0bf6036
remove unused args
eapearson Sep 30, 2021
2bc384f
replace regex constructor with regex literals
eapearson Sep 30, 2021
c3cb5e4
fix css for styleelint, add stylelint dependency, stylelint settings
eapearson Sep 30, 2021
52de0e2
Merge pull request #2538 from kbase/develop
briehl Oct 28, 2021
41162f6
Merge remote-tracking branch 'origin/master' into SCT-3097_clustering…
eapearson Nov 22, 2021
1d13e8f
Merge remote-tracking branch 'origin/develop' into SCT-3097_clusterin…
eapearson Nov 22, 2021
39610a3
Merge remote-tracking branch 'origin/develop' into SCT-3097_clusterin…
eapearson Mar 9, 2022
3f17586
Merge remote-tracking branch 'origin/develop' into SCT-3097_clusterin…
eapearson May 24, 2022
d976bfe
Add !important to force full width table; some change in datatables c…
eapearson May 24, 2022
90d49f4
fix usage caught by DeepScan (which actually pointed to the wrong pro…
eapearson May 24, 2022
e829eef
remove unnecessary import of jquery into test (sonarcloud) [SCT-3097]
eapearson May 24, 2022
4bd485a
move direct styles into stylesheet [SCT-3097]
eapearson May 24, 2022
6208aa3
improve styling [SCT-3097]
eapearson May 25, 2022
f66d4fc
add support for component demos [SCT-3097]
eapearson May 25, 2022
3b99f35
fix default type for alert [SCT-3097]
eapearson May 25, 2022
426221a
move css stylesheet to scss [SCT-3097]
eapearson May 25, 2022
d3a6aac
move stylesheet to scss [SCT-3097]
eapearson May 25, 2022
c8917e4
replace more inline styles with scss [SCT-3097]
eapearson May 25, 2022
2d96cdb
fix tabbing for codacy [SCT-3097]
eapearson May 25, 2022
5367b26
format with "remark", as per codacy [SCT-3097]
eapearson May 25, 2022
6c03a4c
more markdown formatting tweaks, how silly [SCT-3097]
eapearson May 25, 2022
a0a0166
last markdown tweak, yuck [SCT-3097]
eapearson May 25, 2022
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
3 changes: 3 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "stylelint-config-standard"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we've already got .stylelintrc.yaml so this shouldn't be needed

}
78 changes: 42 additions & 36 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ This is built on the Jupyter Notebook v6.0.2 (more notes will follow).
- DATAUP-751 - add link to staging area docs in the upload tour
- DATAUP-753 - alter the error text for Select input boxes in app cells to be a bit more generalized.
- DATAUP-756 - add a copy button for other, non-dynamic dropdowns. This copies the displayed text to the clipboard.
- SCT-3097 - Fix pop-ups and long timeouts & browser tab crash for expression feature clustering viewer

Dependency Changes
- Javascript dependency updates
Expand Down Expand Up @@ -183,39 +184,41 @@ Dependency Changes
- expect-webdriverio 3.1.4

### Version 4.5.0
- PTV-1561 - SampleSet viewer fixes to allow AMA features; not complete support for AMA features as GenomeSearchUtil does not yet support AMA.
- SCT-3100 - Improve SampleSet viewer; add improved JSON-RPC 1.1 client and associatedKBase service client; add msw (Mock Service Worker) support;
- SCT-3084 - Fixed broken (non-functional) search in the data panel
- SCT-3602 - refseq public data tool now searches by lineage as well; for all public data tools: automatically focus the search input; fix paging bug.
- No ticket - migrate from `nosetests` to `pytest` for testing the Python stack.
- Python dependency updates
- bokeh 2.3.2 -> 2.3.3
- pillow 8.2.0 -> 8.3.1
- plotly 4.14.3 -> 5.1.0
- pymongo 3.11.4 -> 3.12.0
- pytest 6.2.3. -> 6.2.4
- pytest-cov 2.11.1 -> 2.12.1
- requests 2.25.1 -> 2.26.0
- setuptools 57.0.0 -> 57.4.0
- Javascript dependency updates
- @types/puppeteer 5.0.0 -> 5.4.4
- @wdio/browserstack-service 7.7.3 -> 7.9.0
- @wdio/cli 7.7.3 -> 7.9.0
- @wdio/local-runner 7.7.3 -> 7.9.0
- @wdio/mocha-framework 7.7.3 -> 7.9.0
- @wdio/selenium-standalone-service 7.7.3 -> 7.7.4
- @wdio/spec-reporter 7.7.7 -> 7.9.0
- chromedriver 91.0.0 -> 91.0.1
- eslint 7.28.0 -> 7.32.0
- husky 6.0.0 -> 7.0.1
- karma 6.3.3. -> 6.3.4
- puppeteer 10.0.0 -> 10.1.0
- selenium-standalone 6.23.0 -> 7.1.0
- terser 5.7.0 -> 5.7.1
- wdio-chromedriver-service 7.1.0 -> 7.1.1
- webdriverio 7.7.3 -> 7.9.1

- PTV-1561 - SampleSet viewer fixes to allow AMA features; not complete support for AMA features as GenomeSearchUtil does not yet support AMA.
- SCT-3100 - Improve SampleSet viewer; add improved JSON-RPC 1.1 client and associatedKBase service client; add msw (Mock Service Worker) support;
- SCT-3084 - Fixed broken (non-functional) search in the data panel
- SCT-3602 - refseq public data tool now searches by lineage as well; for all public data tools: automatically focus the search input; fix paging bug.
- No ticket - migrate from `nosetests` to `pytest` for testing the Python stack.
- Python dependency updates
- bokeh 2.3.2 -> 2.3.3
- pillow 8.2.0 -> 8.3.1
- plotly 4.14.3 -> 5.1.0
- pymongo 3.11.4 -> 3.12.0
- pytest 6.2.3. -> 6.2.4
- pytest-cov 2.11.1 -> 2.12.1
- requests 2.25.1 -> 2.26.0
- setuptools 57.0.0 -> 57.4.0
- Javascript dependency updates
- @types/puppeteer 5.0.0 -> 5.4.4
- @wdio/browserstack-service 7.7.3 -> 7.9.0
- @wdio/cli 7.7.3 -> 7.9.0
- @wdio/local-runner 7.7.3 -> 7.9.0
- @wdio/mocha-framework 7.7.3 -> 7.9.0
- @wdio/selenium-standalone-service 7.7.3 -> 7.7.4
- @wdio/spec-reporter 7.7.7 -> 7.9.0
- chromedriver 91.0.0 -> 91.0.1
- eslint 7.28.0 -> 7.32.0
- husky 6.0.0 -> 7.0.1
- karma 6.3.3. -> 6.3.4
- puppeteer 10.0.0 -> 10.1.0
- selenium-standalone 6.23.0 -> 7.1.0
- terser 5.7.0 -> 5.7.1
- wdio-chromedriver-service 7.1.0 -> 7.1.1
- webdriverio 7.7.3 -> 7.9.1

### Version 4.4.0

- No ticket: boatloads of code cleanup and fixes to the unit and internal testing
- PTV-1635: fix bug in data slideout tab selection
- PTV-1635: fix data and app slideout button and opening behavior
Expand All @@ -224,11 +227,13 @@ Dependency Changes
- SCT-3038 - refseq public data search now includes genome_id and source_id

### Version 4.3.2

- SCT-2778 - convert data slideout, public tab, refseq data source to use searchapi2/rpc api rather than searchapi2/legacy.
- Enhanced integration testing support to add service, host, browser, screen size support.
- Changed the "Dashboard" link in hamburger menu to "Narratives" and use the new /narratives path.

### Version 4.3.1

- Fixed problem where code cells could forget their toggled state after saving.
- Fixed setting up local authentication for developers.
- DATAUP-69 - added a pull request template to the narrative repo.
Expand All @@ -247,11 +252,12 @@ Dependency Changes
- DATAUP-301 - fixed a problem where the staging area rendered twice in a row on page load.

### Version 4.3.0
- SCT-2664 - Show the app cell status when in a collapsed state.
- Added an "Info" tab to all app cells with app information.
- Updated links to new KBase home page and docs site.
- Fixed an uploader issue where uploads taking longer than 30 seconds would fail.
- (Trigger release via labels)

- SCT-2664 - Show the app cell status when in a collapsed state.
- Added an "Info" tab to all app cells with app information.
- Updated links to new KBase home page and docs site.
- Fixed an uploader issue where uploads taking longer than 30 seconds would fail.
- (Trigger release via labels)

### Version 4.2.1

Expand Down
8 changes: 3 additions & 5 deletions docs/testing/integration-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,12 @@
- build local narrative
- see [local install](./install/local_install.md) for complete instructions
- or, briefly, and without explanation:
- ensure you have virtualenv installed on your host machine
- clone the narrative repo
- `git clone https://github.com/kbase/narrative`
- in the narrative repo dir, make a Python virtual environment
- in the narrative repo dir, make and activate a Python virtual environment
- `cd narrative`
- `virtualenv venv`
- activate the virtual environment
- `source ./venv/bin/activate`
- `python -m venv venv`
- `source venv/bin/activate`
- build the narrative locally
- `make install`
- obtain a KBase login (or dev) CI token
Expand Down
2 changes: 2 additions & 0 deletions kbase-extension/scss/all_concat.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,5 @@
@import "partials/stagingTable";
@import "partials/ui";
@import "partials/userMenu";
@import "partials/JSONView";
@import "partials/kbaseExpressionFeatureClusters"
43 changes: 43 additions & 0 deletions kbase-extension/scss/partials/_JSONView.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
.JSONObject {
// .JSONObject tbody
tbody {
.Property {
// .JSONObject > tbody > .Property > .Key
.Key {
color: rgba(150, 150, 150, 1);
}
}
.Element {
.Index {
color: rgba(150, 150, 150, 1);
}
}
}
th {
text-align: left;
}
td {
.fa-arrow-right {
color: rgba(150, 150, 150, 1);
}
}
}

.JSONArray {
tbody {
.Element {
.Index {
color: rgba(150, 150, 150, 1);
}
}
}
th {
text-align: left;
}

td {
.fa-arrow-right {
color: rgba(150, 150, 150, 1);
}
}
}
45 changes: 45 additions & 0 deletions kbase-extension/scss/partials/_kbaseExpressionFeatureClusters.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
.KBaseExpressionFeatureClusters {
table.table.ClusterFeaturesTable {
width: 100% !important;
tbody {
tr {
td {
vertical-align: middle;
}
td:nth-child(4) {
min-width: 15em;
max-width: 25em;
}
}
}
}
table.table.ClustersTable {
width: 100% !important;
tbody {
tr {
td {
vertical-align: middle;
}
}
}
}
// Provide consistent top margin within tab panes.
.tab-content {
margin-top: 10px;
}
// For some reason, the cursor for links is unset, needs to
// be restored.
a {
cursor: pointer;
}

// Tweaks to the dropdown menu within the table cell.
// .KBaseExpressionFeatureClusters___ExploreClusterDropdown.dropdown-menu
&__ExploreClusterDropdown.dropdown-menu {
// !important is required to override styles set by
// Jupyter for .rendered_html.
list-style: none !important;
margin: 0 !important;
padding-left: 0 !important;
}
}
2 changes: 1 addition & 1 deletion kbase-extension/static/kbase/css/all_concat.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion kbase-extension/static/kbase/css/all_concat.css.map

Large diffs are not rendered by default.

73 changes: 73 additions & 0 deletions kbase-extension/static/kbase/demo/AlertMessage.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
<!DOCTYPE html>
<html >
<head>
<script src="/narrative/static/components/requirejs/require.js"></script>
<script src="/narrative/static/kbase/demo/common.js"></script>
<link type="text/css" rel="stylesheet" href="/narrative/static/style/style.min.css">
<link type="text/css" rel="stylesheet" href="/narrative/static/kbase/demo/common.css">
<link type="text/css" rel="stylesheet" href="/narrative/static/kbase/css/all_concat.css">
<meta charset="utf-8">
<title>KBase Demo - AlertMessage.js</title>
</head>
<body class="Demo">
<h1>AlertMessage Demo</h1>

<p><a href="./index.html">Index</a></p>

<h2>Default Alert</h2>

<p>By default, the Alert will use the "info" styling</p>

<div class="Example">
<div id="alertmessage1"></div>
</div>

<h2>Info Alert</h2>

<p>Here we explicitly use the "info" message styling</p>

<div class="Example">
<div id="alertmessage2"></div>
</div>

<h2>Warning Alert</h2>

<p>Here we explicitly use the "warning" message styling</p>

<div class="Example">
<div id="alertmessage3"></div>
</div>

<h2>Danger Alert</h2>

<p>Here we explicitly use the "danger", or error, message styling</p>

<div class="Example">
<div id="alertmessage4"></div>
</div>

<h2>Success Alert</h2>

<p>Here we explicitly use the "success" message styling</p>

<div class="Example">
<div id="alertmessage5"></div>
</div>

<script>
require(['narrative_paths'], () => {
require(['jquery', 'widgets/common/AlertMessage'], ($, $AlertMessage) => {
$('#alertmessage1').html($AlertMessage("This is a default alert"));

$('#alertmessage2').html($AlertMessage("This is an info alert", {type: 'info'}));

$('#alertmessage3').html($AlertMessage("This is a warning alert", {type: 'warning'}));

$('#alertmessage4').html($AlertMessage("This is a danger alert", {type: 'danger'}));

$('#alertmessage5').html($AlertMessage("This is a success alert", {type: 'success'}));
});
});
</script>
</body>
</html>
3 changes: 3 additions & 0 deletions kbase-extension/static/kbase/demo/JSONView.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.Example .fit-content table.table {
width: fit-content;
}
Loading