Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
YAML editor; integration into
/dashboard/<name>/edit
(#2639)
* work out placeholder text * update placeholder to enable auto-generating * adds in skeleton and bootstrap functions to placeholder * renames components * fix overflow issues in new metrics editor * remove all error state when buffer is empty * move editor plugins around * update Placeholder.svelte * adds link to documentation in metrics inspector * move doc link * self-review * update package.json to move to devDependencies * spacing on docs link * center align doc link * remove unused var * remove doc link from inspector * minor refactors to code org for extensions * adds slight debounce to state update function for line levels * move to queryClient.fetchQuery in placeholder model bootstrap * update component structure; move status updates to MetricsWorkspace.svelte * moves basic extensions to base.ts * adds a way to annotate an editor buffer update so we can either add or remove debouncing updates * establishes line number gutter marker, and breaks out the gutters for the line statuses into two distinct entities * fix debounce situation when document is empty * block button nav to dashboard if invalid config * adds create-debouncer.ts, which is a simpler debouncer that operates on the end of a debounced sequence, not the beginning * add story for generic YAML editor, including option for adding line errors * rename files; change Portal implementation since we presume this is all browser-only, which helps with Storybook * adds line number gutter test * add line status gutter tests * adds line status highlighter tests * adds basic tests for indent-guide extension * fix lint error in GoToDashboardButton.svelte * remove unused metrics editor files; fix types * remove unneeded logic from EditorContainer.svelte * shifts around logic to be per-surface * refine reconciliation debouncing * add basic model summary info to metrics inspector based on feedback * fix line level error coloring * adapts e2e tests and adds a new empty metrics flow * switches debounce annotation to be a boolean * fix minor prettier errors * revert useTestServer.ts * fix line-number-gutter.spec.ts * fix YAMLEditor.spec.ts * refine placeholder code * streamlines and fixes codemirror dependencies; removes old codemirror package code from web-local * moves to metrics editor container; re-instates other dashboard tests that were skipped before * fix lint error * moves metrics def errors function to file-artifacts-store.ts and makes it generic for any file type * rename function for file artifact reconciliation errors * move errors to common place for metrics-view * remove unneeded flex which was causing metrics editor to mount halfway down * fix story lint errors * re-adds storybook editor view * fix line selection color compositing * address feedback comments * removes mismatch between line errors and reconciled yaml file * remove console..og
- Loading branch information
cb09fb2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Published on https://ui.rilldata.io as production
🚀 Deployed on https://64ac459320b0a018648721c2--rill-ui-stage.netlify.app