Skip to content
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

Local UI #17

Merged
merged 35 commits into from
Jun 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
bc5416a
WIP - prototyping local ui
datadavev May 21, 2024
e4c4178
This is a test file, work in progress, committing so we don't lose it…
dannymandel May 22, 2024
b2d70f8
Reorganize CLI and server to be able to run against a downloaded data…
dannymandel May 22, 2024
a0cec07
Include CORS middleware
dannymandel May 22, 2024
0987bb6
Write out a STAC catalog with references to every contained search di…
dannymandel May 22, 2024
216a92b
wip
datadavev May 23, 2024
b7d8f05
wip
datadavev May 23, 2024
b204148
Merge branch 'local_ui' of https://github.com/isamplesorg/export_clie…
datadavev May 23, 2024
7040f9d
Use stac.json as stac names, add ui view path
datadavev May 24, 2024
e442a4a
Open stac browser
datadavev May 24, 2024
38f9d96
fix path
datadavev May 24, 2024
1c57454
wip ui futzing around
datadavev May 24, 2024
9a16b42
Added login option
datadavev May 24, 2024
1a20c09
ui tweaks
datadavev May 24, 2024
17af801
Adding built ui to checkout
datadavev May 24, 2024
2804142
refactored client as runnable module and add as isample entry point
datadavev May 24, 2024
8a38193
refactored client as runnable module and add as isample entry point
datadavev May 24, 2024
7b1bf24
Moving ui files to client package
datadavev May 28, 2024
844b6f4
Add collection title and description parameters to the CLI
dannymandel May 28, 2024
8ebaa44
Also test that the stac catalog is valid according to the stac validator
dannymandel May 28, 2024
5417913
Add a test for writing manifest file
dannymandel May 28, 2024
3a85a69
Test the create method
dannymandel May 28, 2024
cdea0a7
Updating readme
datadavev May 29, 2024
b20e611
Merge branch 'local_ui' of https://github.com/isamplesorg/export_clie…
datadavev May 29, 2024
00a6903
Change name for pipx install
datadavev May 29, 2024
bf0519b
Add built ui to sources
datadavev May 29, 2024
9fa7f12
More ExportClient tests
dannymandel May 29, 2024
491ded3
Move heavy libs to load on demand
datadavev May 29, 2024
cd24801
Missed this piece earlier…use the rsession we are initialized with
dannymandel May 29, 2024
e446544
Merge branch 'local_ui' of github.com:isamplesorg/export_client into …
dannymandel May 29, 2024
76802ee
Treat the query as encoded JSON
dannymandel May 29, 2024
1179ea6
make path to jsonl absolute; make pipx install less generic
datadavev May 30, 2024
ff25b47
Update dependencies and refresh ui
datadavev Jun 12, 2024
d472dd7
Merge branch 'develop' into local_ui
datadavev Jun 12, 2024
80807b5
flake8 formatting
datadavev Jun 12, 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
7 changes: 2 additions & 5 deletions isamples_export_client/__main__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from typing import Optional

import click
import logging
import multiprocessing
Expand Down Expand Up @@ -121,9 +119,8 @@ def refresh(jwt: str, refresh_dir: str):
help=("The port to start the server on."),
default=8000
)
def server(download_dir: str, ui_dir: str, browser_dir: Optional[str], port: int):
"""Run a local web server to view exported data.
"""
def server(download_dir: str, ui_dir: str, browser_dir: typing.Optional[str], port: int):
"""Run a local web server to view exported data."""
def openBrowser():
url = f"http://localhost:{port}/"
logging.info(f"Opening browser at {url}...")
Expand Down
81 changes: 0 additions & 81 deletions isamples_export_client/ui/_import/sample.2f6689b3.js

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export class Samples {
if (data_source_url.endsWith(".jsonl")) {
q = `CREATE TABLE samples AS SELECT * FROM read_json_auto('${data_source_url}', format='newline_delimited')`;
}
if (data_source_url.endsWith(".parquet")) {
if (data_source_url.includes(".parquet")) {
q = `CREATE TABLE samples AS SELECT * FROM read_parquet('${data_source_url}')`;
}
try {
Expand Down

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion isamples_export_client/ui/_npm/[email protected]/_esm.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion isamples_export_client/ui/_observablehq/client.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion isamples_export_client/ui/_observablehq/stdlib.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading