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

feat(web-console): New Import page #130

Merged
merged 121 commits into from
May 15, 2023
Merged

feat(web-console): New Import page #130

merged 121 commits into from
May 15, 2023

Conversation

insmac
Copy link
Contributor

@insmac insmac commented Apr 20, 2023

ℹ️ Synopsis

This PR introduces the new Import from CSV page, which has been redesigned and ported to React. It also utilizes @questdb/react-components package for rendering certain components.

⚠️ IMPORTANT:
The new flow utilizes all the supported REST API features, therefore the initial file drop / add does not upload the file to the database automatically, rather it allows the user to specify everything as needed, or leave it in automatic mode, click the button, and refine later.

Upload screen (after file drop / add)

CleanShot 2023-04-20 at 15 40 21@2x

  • Rename table (defaults to filename)
  • Change upload settings
  • Optionally provide a table schema (auto detected by default)

Upload screen - file has been uploaded already for the same name

CleanShot 2023-04-21 at 12 09 01@2x

Note that the table schema has been fetched and loaded into schema editor, so that user can tweak it if needed.

Upload settings drawer

CleanShot 2023-04-20 at 12 02 39@2x

Schema editor

CleanShot 2023-04-20 at 12 02 28@2x

🚧 Side changes

  • Renamed theme values (i.e. remove dracula references) to align with @questdb/react-components config, otherwise UI components wouldn't work properly, as they rely on Styled Component's ThemeProvider at the current time.

bluestreak01
bluestreak01 previously approved these changes May 15, 2023
insmac and others added 3 commits May 15, 2023 17:11
chore(web-console): bump @questdb/sql-grammar to 1.0.11 (#137)

bump `@questdb/sql-grammar` to 1.0.11
@insmac insmac merged commit 425ee2a into main May 15, 2023
2 checks passed
@insmac insmac deleted the web-console/import-to-react branch May 15, 2023 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants