-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
refactor(ui): flatten ui/src/app
dir
#13815
Conversation
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.
the {}
-> any
change made this a full delete/add instead of a rename
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.
not sure why git
didn't detect this as a rename 🤔 possibly because of the existing symlink in ui/tsconfig.json
? it's not letting me comment on specific lines in that file either
EDIT: yea it seems to be because of the prior symlink
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.
outDir
here and output.path
in webpack.config.js
need a bit of carefulness since they're used in the Dockerfile
and Makefile
- move `ui/src/models` to `ui/src/shared/models` - and flatten the rest - also fix name of `workflow-operation-map.tsx` to `.ts` as it doesn't have JSX/TSX - also move `webpack.config.js` out of `ui/src/app` and to `ui/` - same with `tsconfig.json` - remove symlinks and config that was previously necessary due to having config in the subdirectory Signed-off-by: Anton Gilgur <[email protected]>
- these all failed to typecheck due to using `{}` as a type -- use `any` instead Signed-off-by: Anton Gilgur <[email protected]>
Signed-off-by: Anton Gilgur <[email protected]>
7cc27cc
to
b4735a6
Compare
Signed-off-by: Anton Gilgur <[email protected]>
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.
Note: tsconfig.json
and webpack.config.js
are moved to their default path so that we don't need to specify the location
Yes I mentioned that under "Modifications" |
Fixes #12539 "Future Work" part 2
Motivation
Remove unnecessary nesting, same as #12539
Modifications
move
ui/src/models
toui/src/shared/models
then flatten
ui/src/app
to justui/src/
also fix name of
workflow-operation-map.tsx
to.ts
as it doesn't have JSX/TSX (fixes feat: Unified workflows list UI and API #11121 (comment))also move
webpack.config.js
out ofui/src/app
and toui/
tsconfig.json
Verification
make start UI=true
loads the UI fine and dandy and it works as beforeyarn lint
andyarn build
etc all passmake server/static/files.go STATIC_FILES=true
works/passesls dist/app
looks about the same before/after:before:
after:
Notes to Reviewers
Use the sidebar in GH to see the files that weren't just renamed, which is only a small handful and mostly the last few config files
This will merge conflict with some of my other open PRs that delete or change imports; can update depending on what is merged first