This repository has been archived by the owner on Aug 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
organize report in foldable sections
- Loading branch information
1 parent
b3e9a97
commit c5597a9
Showing
9 changed files
with
76 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<div class="skrubview-wrapper"> | ||
<details open=""> | ||
<summary><h2>Columns</h2></summary> | ||
<div> | ||
<p>Selected columns:</p> | ||
<code class="dataview-selected-columns" id="{{ report_id }}-selected-columns"></code> | ||
<p> | ||
<button onclick='clearSelectedCols("{{ report_id }}")'>Clear</button> | ||
<button onclick='selectAllCols("{{ report_id }}")'>Select all</button> | ||
<button onclick='copyTextToClipboard("{{ report_id }}-selected-columns")'>📋</button> | ||
</p> | ||
</div> | ||
{% if summary.n_constant_columns %} | ||
<input type="checkbox" id="{{ collapse_const_id }}" checked="true" /> | ||
<label for="{{ collapse_const_id }}">Collapse constant columns</label> | ||
{% endif %} | ||
|
||
<input type="checkbox" id="{{ compact_id }}" checked="true" /> | ||
<label for="{{ compact_id }}">Compact display</label> | ||
|
||
<div class="skrubview-column-summary-group"> | ||
{% if summary.n_constant_columns %} | ||
<div class="skrubview-pseudocolumn skrubview-constant-columns-summary skrubview-card"> | ||
<div class="skrubview-card-header"> | ||
<h3>Constant columns</h3> | ||
</div> | ||
<div class="skrubview-wrapper skrubview-text"> | ||
<p> | ||
<dl> | ||
{% for column in summary.columns %} | ||
{% if column.value_is_constant %} | ||
<dt class="skrubview-select-all">{{ column.name }}</dt> | ||
<dd>{{ column.constant_value.__repr__() }}</dd> | ||
{% endif %} | ||
{% endfor %} | ||
</dl> | ||
</p> | ||
</div> | ||
</div> | ||
{% endif %} | ||
{% for column in summary.columns %} | ||
{% set col_id="{}_col_{}".format(report_id, loop.index0) %} | ||
{% include "column-summary.html" %} | ||
{% endfor %} | ||
</div> | ||
</details> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<div class="skrubview-wrapper"> | ||
<details> | ||
<summary><h2>Sample</h2></summary> | ||
<h3>First 5 rows</h3> | ||
<div class="skrubview-horizontal-scroll"> | ||
{{ summary.head_html | safe }} | ||
</div> | ||
<h3>Last 5 rows</h3> | ||
<div class="skrubview-horizontal-scroll"> | ||
{{ summary.tail_html | safe }} | ||
</div> | ||
</details> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
#{{ report_id }}.skrubview-report dt { | ||
{% set report_id_selector="#{}".format(report_id) if report_id else "" %} | ||
|
||
{{ report_id_selector }}.skrubview-report dt { | ||
float: none; | ||
margin: 0; | ||
width: auto; | ||
} | ||
|
||
#{{ report_id }}.skrubview-report code { | ||
{{ report_id_selector }}.skrubview-report code { | ||
background-color: inherit; | ||
padding: 0; | ||
color: inherit; | ||
line-height: inherit; | ||
} | ||
|
||
#{{ report_id }}.skrubview-report h2 { | ||
{{ report_id_selector }}.skrubview-report :is(h2, h3) { | ||
line-height: inherit; | ||
font-weight: bold; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
{% set report_id_selector="#{}".format(report_id) if report_id else "" %} | ||
|
||
{% include "base.css" %} | ||
{% include "dataframe-columns.css" %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
{% set compact_id = "{}-compact-checkbox".format(report_id) %} | ||
{% set collapse_const_id = "{}-collapse-const-columns-checkbox".format(report_id) %} | ||
{% set report_id_selector="#{}".format(report_id) if report_id else "" %} |