Skip to content

Commit c28d4ef

Browse files
authored
Merge pull request #137 from posit-dev/feat-tbl-explorer
feat: Table Explorer
2 parents bcf91fe + 0b81be7 commit c28d4ef

17 files changed

Lines changed: 3439 additions & 73 deletions

assets/data/employees.csv

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name,department,salary,years,rating
2+
Alice,Engineering,95000,5,4.5
3+
Bob,Marketing,72000,3,3.8
4+
Charlie,Engineering,105000,8,4.9
5+
Diana,Sales,68000,2,3.2
6+
Eve,Marketing,88000,6,4.1
7+
Frank,Sales,71000,4,3.7
8+
Grace,Engineering,92000,7,4.6
9+
Hank,Marketing,76000,3,3.5
10+
Iris,Sales,64000,1,2.9
11+
Jack,Engineering,110000,9,4.8
12+
Karen,Marketing,81000,5,4.0
13+
Leo,Sales,69000,3,3.4
14+
Mona,Engineering,98000,6,4.3
15+
Nate,Marketing,74000,2,3.6
16+
Olivia,Sales,67000,4,3.1
17+
Paul,Engineering,103000,8,4.7
18+
Quinn,Marketing,85000,5,4.2
19+
Rita,Sales,70000,3,3.3
20+
Sam,Engineering,91000,7,4.4
21+
Tina,Marketing,78000,4,3.9
22+
Uma,Sales,66000,2,3.0
23+
Vic,Engineering,107000,10,4.8
24+
Wendy,Marketing,83000,6,4.1
25+
Xander,Sales,72000,3,3.5

assets/data/employees.feather

1.28 KB
Binary file not shown.

assets/data/products.parquet

1.84 KB
Binary file not shown.

assets/data/products.tsv

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
product category price stock rating
2+
Widget Electronics 29.99 150 4.5
3+
Gadget Tools 49.50 80 3.8
4+
Gizmo Kitchen 12.00 300 4.9
5+
Doohickey Garden 8.75 0 4.2
6+
Thingamajig Office 199.99 25 2.1
7+
Contraption Electronics 65.00 44 3.5
8+
Apparatus Tools 120.00 12 4.7

assets/data/server_logs.jsonl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{"timestamp": "2025-01-15T08:30:00", "level": "INFO", "module": "auth", "message": "User login successful"}
2+
{"timestamp": "2025-01-15T08:31:12", "level": "WARNING", "module": "db", "message": "Slow query detected (3.2s)"}
3+
{"timestamp": "2025-01-15T08:32:45", "level": "ERROR", "module": "api", "message": "Request timeout on /v2/users"}
4+
{"timestamp": "2025-01-15T08:33:01", "level": "INFO", "module": "cache", "message": "Cache miss for key user:42"}
5+
{"timestamp": "2025-01-15T08:34:20", "level": "DEBUG", "module": "auth", "message": "Token refresh for session abc123"}
6+
{"timestamp": "2025-01-15T08:35:55", "level": "ERROR", "module": "db", "message": "Connection pool exhausted"}

assets/data/students.csv

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name,subject,score,grade,passed
2+
Alice,Math,95.5,A,true
3+
Bob,Science,82.0,B,true
4+
Charlie,English,71.3,C,true
5+
Diana,History,60.0,D,true
6+
Eve,Art,55.8,F,false
7+
Frank,Math,88.2,B+,true
8+
Grace,Science,79.9,C+,true
9+
Hank,English,91.0,A-,true
10+
Iris,History,66.4,D+,true
11+
Jack,Art,73.7,C,true

great-docs.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ nav_icons:
254254
Versioned Docs: git-branch
255255
Color Swatches: pipette
256256
Table Previews: table
257+
Table Explorer: telescope
257258

258259
# Author Information
259260
# ------------------
@@ -320,3 +321,8 @@ reference:
320321
- tbl_preview
321322
- enable_tbl_preview
322323
- disable_tbl_preview
324+
325+
- title: Table Explorer
326+
desc: Generate interactive HTML table explorers with sorting, filtering, and pagination
327+
contents:
328+
- tbl_explorer

great_docs/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
__version__ = "0.0.0"
1010

1111
from ._tbl_display import disable_tbl_preview, enable_tbl_preview
12+
from ._tbl_explorer import tbl_explorer
1213
from ._tbl_preview import tbl_preview
1314
from .cli import main
1415
from .config import Config, create_default_config, load_config
@@ -23,6 +24,7 @@
2324
"load_config",
2425
"main",
2526
"render_evolution_table",
27+
"tbl_explorer",
2628
"tbl_preview",
2729
]
2830

0 commit comments

Comments
 (0)