Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
238 commits
Select commit Hold shift + click to select a range
7709b14
name useEffect functions.
Aug 1, 2023
fe61639
file browser recursive pov. (font is black atm.)
Aug 1, 2023
52db431
adjust html structure so a list contains a list always.
Aug 1, 2023
38b6b51
sort of working, but open/closed state and event handling is a mess.
Aug 2, 2023
487a285
sort by directory then by regular file alphanumerically.
Aug 2, 2023
82301a2
clean up folder toggling code and associated icons. all flat files ha…
Aug 2, 2023
bbf7ec9
pass parent down into recursive tree so we can emit full path onSelect,
Aug 2, 2023
76a338b
style improvements.
Aug 2, 2023
e1ea1fc
translate custom_functions payload to applications payload
Aug 2, 2023
0f95c98
add function to convert 4.2 application custom_function data structur…
Aug 3, 2023
434df52
ensure custom_functions.endpoints is always an object.
Aug 3, 2023
ea5b4f0
add fullPath to the result of getComponentFiles
Aug 4, 2023
43972aa
clean up, bug fix
Aug 4, 2023
75ff5f5
add property, correct path and unique id 'key' prop to each dir entry…
Aug 4, 2023
edcb0a2
prelim layout for editor.
Aug 7, 2023
e0d08eb
highlight selected file in file browser.
Aug 7, 2023
7741ace
webide has an internal onFileSelect method and an external, user-faci…
Aug 7, 2023
e961093
recursive ul structure now valid.
Aug 7, 2023
b86b86b
include components dir in monkey-patched directory entries path prope…
Aug 7, 2023
d538c5d
parse path properly when saving file. todo: save updated code, but ve…
Aug 8, 2023
9e697d6
update ide component local state on update and send updates to instan…
Aug 8, 2023
804318f
add metadata to fileTree root inside fn:
Aug 8, 2023
e08c37d
save button
Aug 8, 2023
55fe179
add dir wip.
Aug 9, 2023
8723984
external url.
Aug 10, 2023
21ddcd7
wip, directory creation and renaming in progress.
Aug 10, 2023
b40872d
update operation name
Aug 28, 2023
04d0236
fix directory-related ui indications.
Aug 28, 2023
4d9bcb0
adjust ui so selected directory toggles active/inactive, which allows…
Aug 28, 2023
a0d9c06
wip. new file/folder input
Aug 28, 2023
f0b6af1
add folders and update filetree immediately w/ server values
Aug 29, 2023
4f829a1
add file and refresh filetree.
Aug 29, 2023
76d196e
reset input after creating file/folder.
Aug 29, 2023
0149018
clicking on folder icon toggles that subtree open/closed.
Aug 29, 2023
f1d7ab8
clean up some logic in webide main.
Aug 30, 2023
d3dcb62
rename functions
Aug 30, 2023
3be64b5
clean up
Aug 30, 2023
cdad8b6
clean up
Aug 30, 2023
1587a41
wip. rethinking backwards compatibility idea. may create distinct mo…
Aug 30, 2023
410987b
keep custom functions interface and use applications editor for >= 4.2
Aug 30, 2023
215915d
pass root dir into addMetadata so that the root dir is not hardcoded.:
Aug 30, 2023
3b4eaaf
add drop file button, fix bugs
Aug 30, 2023
d4ed75d
add file rename dialogs, rename files (but not yet folders), some mor…
Aug 31, 2023
82c9c08
clean up instance api calls, sync w/ latest names in core main.
Aug 31, 2023
2f8a04f
refactory webide components. editor window is a very stupid component.
Sep 1, 2023
139bf53
set selected file and folder to null when a file or a folder are dele…
Sep 1, 2023
4637c29
refactor, pull all app logic out of webide component.
Sep 1, 2023
1f9c084
move temporary style prop into scss
Sep 1, 2023
6c7e1df
remove unused module.
Sep 1, 2023
37f840a
fix editor window height by setting display from block to display fle…
Sep 2, 2023
533d1b5
basic package ui in filebrowser
Sep 2, 2023
a70202c
fix editor window css y overflow.
Sep 3, 2023
094e1db
lint.
Sep 5, 2023
6f9660d
add file path to editor window.
Sep 5, 2023
a1e73ee
Merge branch 'master' into STUDIO-93
Sep 6, 2023
28277ac
make file input 'selectedFile.name' propery accessor nullable if it d…
Sep 6, 2023
76ea487
refactor windowing mechanisms and improving input event handling. WIP.
Sep 7, 2023
8c354ff
fix selectedFile related bugs when selecting and creating files.
Sep 7, 2023
a008fc1
wip. editor bug.
Sep 7, 2023
642ce8f
wip. checkout exp branch to debug remounting of editor.
Sep 7, 2023
30e86d7
bug-fix: to prevent repeated editor mounts on fileContent change, con…
Sep 7, 2023
2225665
fix path bugs. todo: remove console.logs
Sep 8, 2023
440abbe
fix filepath indicator above code window.
Sep 8, 2023
add0b4b
disable file/folder renaming for now.
Sep 8, 2023
6d59e04
remove old rename components.
Sep 8, 2023
9dec253
deploy basic parts there.
Sep 8, 2023
e20923b
deploy components refactor
Sep 8, 2023
e2c93ce
remove logging
Sep 8, 2023
a0074f4
remove old comments.
Sep 8, 2023
ca3512f
package details window shows package metadata.
Sep 8, 2023
8a69ab9
add ux timeout to save button so user feels it works
Sep 8, 2023
8999047
cosmetic.
Sep 8, 2023
3d1d3e0
split add folder into add project folder and add project sub director…
Sep 8, 2023
62d8fc2
setup useEffect in DeployWindow input forms to keep its local state i…
Sep 11, 2023
0d6cb2e
.
Sep 11, 2023
2f4da64
add project icon and color green.
Sep 15, 2023
024a617
more filetype stuff.
Sep 15, 2023
1a6ff22
rename deploy component to install package.
Sep 15, 2023
ba755ac
wip: working on deploy project to external instances.
Sep 15, 2023
ba27d40
new ux for deploy projects, no functioning deploy yet.
Sep 15, 2023
d6e0f09
pass deploy targets to deploy window select
Sep 15, 2023
d3b89a6
deploy project more fully wired up, no network calls yet.
Sep 15, 2023
f8631d2
wip. deploy package sort of working.
Sep 15, 2023
0b383ad
temporarily append 2 to deployed project name bc im deploying to loca…
Sep 15, 2023
217d360
in demo state.
Sep 15, 2023
99944c6
update project icon in 'no project window'
Sep 26, 2023
7a19dff
minor css improvement for deployment instance list.
Sep 26, 2023
3cd881b
adjust syntax highlighting in editor when filetype changes (subject t…
Sep 26, 2023
f8d9129
lint react warnings for deploy window dropdown options.
Sep 26, 2023
0c88b78
parse editor file extension and provide syntax highlighting where pos…
Sep 26, 2023
18e06f0
refactor deployment target dropdown code. change project icon to code…
Sep 26, 2023
f6815c2
wip: debugging tag / url distinction and redploy logic.
Sep 26, 2023
2f8d703
fix reinstallable boolean flag.
Sep 27, 2023
c4c77a4
change ux behavior of selected package to have text colorized for now…
Sep 27, 2023
18864e1
add use-debounce, and use it in github package fetching window, which…
Sep 29, 2023
db65dd7
improve ux for github repo by tag search.
Sep 29, 2023
aa45dd0
npm and github tags/dist-tags ui basics.
Sep 29, 2023
35f293e
build out proper npm package name when valid tag selected
Sep 29, 2023
e3d1558
fix code that filters deploy target list.
Oct 2, 2023
45a6540
wip.
Oct 4, 2023
0b02c6d
wip.
Oct 4, 2023
346b170
style form for remote package lookup.
Oct 4, 2023
68df553
remove no_file_selected window. use enums, not strings for window names.
Oct 5, 2023
888f10f
rearrange editor window code, remove outline from radio inputs on focus
Oct 5, 2023
0cfd7b1
rework tags fetching code to be more robust. add comments on method.
Oct 5, 2023
27e4063
more refactoring of npm install window.
Oct 5, 2023
a2ee317
rework github install window.
Oct 5, 2023
b9b40e2
add package name field in order to install package
Oct 5, 2023
b299b19
refactoring to reduce the confusing nature of the package install win…
Oct 6, 2023
064a279
wip. more progress on using same window for existing packages for rei…
Oct 6, 2023
733b6d4
wip. clean up buggy ux logic surrounding fetching remote tags when th…
Oct 8, 2023
9d734ed
fix double-package select ux bug
Oct 8, 2023
483b52e
wip. rework state updates in child components, they need useEffect up…
Oct 8, 2023
a0f33fb
comments, move a useEffect callback to named function.
Oct 9, 2023
873441e
wip. validating project name.
Oct 9, 2023
faae532
fix state bug when switching between deploy window and package detail…
Oct 9, 2023
a7ca13c
fix tags select bug in github package tags dropdown.
Oct 9, 2023
d4795db
fix npm package parsing bug.
Oct 9, 2023
72f505e
npm, github and url forms now load existing packages and handle new p…
Oct 9, 2023
484e266
prevent fetching package if package name is invalid.
Oct 10, 2023
78d1660
wip. first pass at package query status indicator and package name va…
Oct 10, 2023
d42755e
bugfix: return empty array from fetchRepoTags if 404s.
Oct 10, 2023
c53d0ef
add title attrs to every input. fix another tags bug: remove any exis…
Oct 10, 2023
7040c90
change red to hdb color for now.
Oct 10, 2023
43acbdd
wip. search status for github packages.
Oct 10, 2023
8e5aaa8
deploy to other instances wip.
Oct 11, 2023
e227433
fix deployTargets bug
Oct 12, 2023
b67de6a
break editor windows into separate files, import from index file in s…
Oct 12, 2023
330d93f
reorg window directory
Oct 12, 2023
d69539b
rename
Oct 12, 2023
08c9ac4
more restructuring.
Oct 12, 2023
db7f6cd
replace cardtext element with div.
Oct 12, 2023
456e98d
more reorg.
Oct 12, 2023
adef4c9
wip. npm package install refactor.
Oct 13, 2023
2aba19d
refactor github, npm and url packageSpec input components.
Oct 13, 2023
c691b55
remove debug
Oct 13, 2023
084d3ee
pull in react-select
Oct 13, 2023
266b97c
wip. improving form layout and react-select behavior.
Oct 13, 2023
f4ffae3
refactor.
Oct 16, 2023
72705eb
wip. clean up css.
Oct 16, 2023
3a086b9
rework css and layout for name input and downstream components.
Oct 16, 2023
72e8419
wip. refactoring github package install form.
Oct 16, 2023
22a2d50
style github repo lookup field
Oct 17, 2023
75b59ca
set react select input element to be transparent.
Oct 17, 2023
98a5279
set overflow to auto so that scrollbar appears only when necessary.
Oct 17, 2023
34df8ff
center elements vertically in editor window.
Oct 17, 2023
303bc9c
basic delete confirmation modal. wip.
Oct 17, 2023
6cc4403
add a delete file confirmation window.
Oct 17, 2023
647b371
wip. delete package window.
Oct 17, 2023
3daa680
rework window css, rename blank window to default window.
Oct 18, 2023
b292943
enhance default page.
Oct 18, 2023
3c1f14b
enhance default page: make sure button text AND buttons take you to t…
Oct 18, 2023
617f059
change 'confirm' to 'delete' in the delet confirmation windows.
Oct 18, 2023
c835195
revert unintentionall icon change to add project button.
Oct 18, 2023
e8659c4
fix theme for react-select elements in package install form.
Oct 18, 2023
fe83470
cleanup css for selected folder.
Oct 18, 2023
9631ee6
allow de-select file
Oct 18, 2023
effd908
change confirm title
Oct 18, 2023
4f9daa5
improve delete confirmation pages.
Oct 18, 2023
91b3ac8
fix bug in editor save icon disabled state.
Oct 18, 2023
f0f59de
adjust casing in default window text.
Oct 18, 2023
47f56ff
wip. project name validation
Oct 18, 2023
b46876f
rework name input markup.
Oct 18, 2023
ad62f03
wip. hack fix to align delete window title w/ content.
Oct 18, 2023
02ed342
fix tag bug in npm package install
Oct 18, 2023
0b0feba
more theming.
Oct 19, 2023
1d7dd50
theme improvements.
Oct 19, 2023
647c2ee
change menu item from functions to applications when >= 4.2. add padd…
Oct 19, 2023
3f59f09
call schemas databases for 4.2+
Oct 19, 2023
159fd11
restart when config.yaml, resources.js, graphql.schema or package.jso…
Oct 19, 2023
a42cefe
add a restart instance toggle.
Oct 19, 2023
e3349fa
wip. call schemas 'databases' if 4.2+
Oct 19, 2023
a1a0058
fix version bug.
Oct 19, 2023
f6ee814
note about possible schema language change in future.
Oct 19, 2023
dd20183
more schemas / 'databases' language replacement if 4.2+
Oct 19, 2023
57b61c0
ux for saving/loading.
Oct 20, 2023
b122f35
some theme fixes for light theme.
Oct 20, 2023
3cf6e8d
add border-bottom to filepath row in editor.
Oct 20, 2023
1d65c42
fix name file cancel button text color
Oct 20, 2023
489d477
change editor container component from card to div. something about t…
Oct 23, 2023
6e68795
prevent editor container width from stacking editor window until narr…
Oct 23, 2023
34f7b5f
wip: stack ide and shorten menu height on narrow screens.
Oct 23, 2023
050b421
stack ide and shorten menu height on narrow screens.
Oct 23, 2023
c5d1eb0
set breakpoint for web ide element stacking to 814 px.
Oct 23, 2023
38c26cf
prompt to create a database / schema when none exists in browse view,…
Oct 23, 2023
64203ef
more conditional 'schema' / 'database' language, dependent on hdb ver…
Oct 23, 2023
85e22ce
fix syntax error
Oct 23, 2023
dcdb168
fix theme bugs in editor windows by converting package install window…
Oct 23, 2023
246353b
add cancel button to deploy window.
Oct 23, 2023
a543f68
fix theme issues in cancel buttons.
Oct 23, 2023
80b1f61
merge studio-93 applications editor for 4.2 into stage
Oct 23, 2023
95a7ca2
lint: add error boundary back into custom functions editor.
Oct 24, 2023
03e9686
lint: restore old lint settings
Oct 24, 2023
f3d42aa
lint
Oct 24, 2023
283a095
lint: disable no-restricted-syntax
Oct 24, 2023
7f59f99
lint fixes
Oct 24, 2023
abd7523
lint
Oct 24, 2023
e44d32f
lint.
Oct 24, 2023
86dc638
lint. ignore react/jsx-no-bind rule for now, plant to rework funcs w/…
Oct 24, 2023
7be9897
lint, fix default import/exports and remove unused vars.
Oct 24, 2023
0dd6a1e
lint: use default imports.
Oct 24, 2023
5922cb4
lint accessibility
Oct 24, 2023
f51b1c0
lint: add button type to buttons, include react as dep.
Oct 24, 2023
f03c777
lint: accessibility button attrs.
Oct 24, 2023
11a4479
lint: more accessibility stuff.
Oct 24, 2023
1557d33
lint: convert package deploy loop to promise.all on mapped function.
Oct 24, 2023
56cc4f9
create a separate prod linting task that does not do style lint. will…
Oct 24, 2023
79b2283
Merge branch 'stage' into STUDIO-93
foundling Oct 24, 2023
54f832e
minor version bump
Oct 24, 2023
0f647ee
resolve merge conflicts
Oct 24, 2023
5f99b9c
update lint to use lint-prod (for now skipping style linting)
Oct 24, 2023
2b00cb2
theme fixes, fix window 'back' behavior when cancel clicked, goes to …
Oct 24, 2023
c48334d
wip. validation message for name input. todo: generalize across other…
Oct 24, 2023
b9c61b3
set default validate fn to return true in NameInput
Oct 24, 2023
0cd6b40
name input text should display as block
Oct 24, 2023
c624da0
use alert when network operations fail.
Oct 24, 2023
4e56739
disable folder closing until there's time to really fix that. markup …
Oct 24, 2023
a093165
remove idea files.
Oct 24, 2023
79929ba
fix language in new folder window
Oct 24, 2023
0c52d9f
fix hover color on cancel button in purple theme.
Oct 24, 2023
5ef2ab2
change bg for purple editor window.
Oct 24, 2023
7a5455c
reapproach default window menu item colors
Oct 24, 2023
307d87b
Merge branch 'stage' into STUDIO-93
foundling Oct 24, 2023
e2f314b
remove unused arg
Oct 24, 2023
19fbee5
Merge branch 'stage' into STUDIO-93
foundling Oct 24, 2023
1f9e74b
Merge pull request #332 from HarperDB/STUDIO-93
foundling Oct 24, 2023
310bd86
lint
Oct 24, 2023
1cda4d4
Merge branch 'stage' into STUDIO-93
foundling Oct 24, 2023
f87f3ec
add RO prop to file tree for packages.
Oct 25, 2023
f1ed962
set editor to read only when selected file has a readOnly attr that's…
Oct 25, 2023
bac25e0
Merge branch 'STUDIO-93' of github.com:HarperDB/hdbms into STUDIO-93
Oct 25, 2023
00c8713
remove idea files.
Oct 25, 2023
d7304f3
make invalid name input consistent style-wise.
Oct 25, 2023
823a689
remove redundant fn.
Oct 25, 2023
fcf2ae2
condense github package install window.
Oct 25, 2023
d9ee46c
add loading state icon for package installation.
Oct 25, 2023
88c7756
lint
Oct 25, 2023
7b2b13e
Merge pull request #333 from HarperDB/STUDIO-93
foundling Oct 25, 2023
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
9 changes: 8 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,20 @@
"no-nested-ternary": 0,
"no-param-reassign": 0,
"no-return-assign": 0,
"no-restricted-syntax": 0,
"react/jsx-filename-extension": 0,
"react/jsx-props-no-spreading": 0,
"react/destructuring-assignment": 0,
"react/prop-types": 0,
"react/no-danger": 0,
"no-unused-vars": 1,
"react/button-has-type": 1,
"no-underscore-dangle": ["warn", { "allow": ["_kmq", "_kmk"] }]
"no-underscore-dangle": ["warn", { "allow": ["_kmq", "_kmk"] }],
"jsx-a11y/label-has-associated-control": 0,
"react/jsx-no-bind": 0,
"react/no-unstable-nested-components": [
"warn",
{"allowAsProps": true }
]
}
}
2 changes: 1 addition & 1 deletion .github/workflows/publish-stage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
#!/bin/bash

yarn
yarn lint
yarn lint-prod
yarn build:stage
- name: Clean Remote Directory
env:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

.idea
/src/config/index.js

# dependencies
Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "harperdb-studio",
"version": "4.2.11",
"version": "4.3.0",
"description": "A UI for HarperDB",
"deploymentUrl": "studio.harperdb.io",
"private": true,
Expand All @@ -11,7 +11,8 @@
"build:dev": "PUBLIC_URL=https://d2uv4fa0aeja0t.cloudfront.net react-scripts build",
"build:stage": "GENERATE_SOURCEMAP=false PUBLIC_URL=https://dbjxbnqel2bw9.cloudfront.net react-scripts build",
"build:prod": "GENERATE_SOURCEMAP=false PUBLIC_URL=https://ds5zz9rfvzuta.cloudfront.net react-scripts build",
"lint": "eslint --fix src && npx stylelint --fix \"src/**/*.scss\""
"lint-dev": "eslint --fix src && npx stylelint --fix \"src/**/*.scss\"",
"lint-prod": "eslint --fix src"
},
"dependencies": {
"@monaco-editor/react": "^4.2.0",
Expand Down Expand Up @@ -43,8 +44,10 @@
"react-toggle": "^4.1.2",
"reactstrap": "^9.0.0",
"use-async-effect": "^2.2.3",
"use-debounce": "^9.0.4",
"use-interval": "^1.3.0",
"use-persisted-state": "^0.3.3",
"uuid": "^9.0.0",
"whatwg-fetch": "^3.6.2"
},
"engines": {
Expand Down
1 change: 1 addition & 0 deletions src/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
@import 'assets/styles/components/copyable-text-holder';
@import 'assets/styles/components/badge';
@import 'assets/styles/components/code-editor';
@import 'assets/styles/components/web-ide';

// override styles
@import 'assets/styles/overrides/dark';
Expand Down
9 changes: 9 additions & 0 deletions src/assets/styles/components/_react-select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@
max-height: 36px;
padding-bottom: 0 !important;
padding-top: 0 !important;

.react-select__input-container {
.react-select__input {
background: transparent !important;
border: transparent !important;
outline-color: transparent !important;
}
}

}
}

Expand Down
Loading