-
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
UI: Refactor to use functional components #9810
Comments
@tczhao Would you like to pick this up? |
There are also other good UI/UX related issues if you want to help: https://github.com/orgs/argoproj/projects/29 |
Sure :) |
Looks good, thanks for the link |
Signed-off-by: Tianchu Zhao <[email protected]>
Signed-off-by: Tianchu Zhao <[email protected]>
Completed |
Completed the above 12 in #11791 Also completed one that was missing from the list:
|
Some of the files listed in the opening comment are also not React components. Quick way to tell: they end in I think they may have been pulled into the list by just searching Checking all 16 off:
|
@toyamagu-2021 do you think you'd be able to refactor the submit/resubmit/retry workflow panels to functional components? Since you had created the latter two, I figure you're most familiar with them 🙂 EDIT: these have been completed in #11803 Feel free to take any others on as well if you'd like! |
OK, I'll do that! |
These 3 components no longer exist as the Archived Workflows UI was merged with the Workflows UI in #11121
|
Completed Both of these used to use I'm working on a PR for |
Completed these 3 components in #11800 |
Would anyone like to take some or all of these remaining 5? (Please write which you want to take if so) We've also got another new one that was missed in #11803 (I didn't realize it existed so didn't have it in the initial list, my bad!):
cc @tetora1053 @juijeong8324 @yunwoo-yu who may be interested 🙂 |
Oh I'll do that!! I'm interested in 9, 48 and 53!
I will take 53 first! If anyone interested in 9 or 48, it's okay take them😀😀 |
Hello 😄
I'm interested in all of them! But I'll start with number 9 in the list order 👍. |
Completed these all in #11891. That was actually a lot more challenging than I expected and is probably one of the most involved refactors I've done in several years 😮 That was the most difficult refactor in the UI codebase though -- which is why I took it on myself -- so with that over, it's just the final stretch of the remaining 5. Hopefully new contributors above can tackle those effectively 😉 |
ok! I take 15, 39, 44 (no one has taken those yet, right?) |
@tetora1053 yeah you are right! |
I'll tackle no.39 with another PR. (cause I'm afraid it might take a little longer than the other two) |
Hello, I'm sorry to be late in tackling number 48 (I had a cold and wasn't feeling well...) I'll open the PR within this week!! Thank you!! |
no worries I was sick this week with a pretty bad cold too 😷 (and am behind on some reviews as such) . hope you are feeling better! |
Summary
Say for UI features, new feature added in workflow page would likely be useful in archived workflow as well,
but right now we have both class and functional components at various parts of the UI, porting features from one part to another can be a pain.
class component file list:
--- below heavily modified by agilgur5 ---
ui/src/app/archived-workflows/components/archived-workflow-details/archived-workflow-details.tsx: no longer exists as of feat: Unified workflows list UI and API #11121ui/src/app/archived-workflows/components/archived-workflow-filters/archived-workflow-filters.tsx: no longer exists as of feat: Unified workflows list UI and API #11121ui/src/app/archived-workflows/components/archived-workflow-list/archived-workflow-list.tsx: no longer exists as of feat: Unified workflows list UI and API #11121Reports
to functional component and split files #11794WorkflowsList
+WorkflowsFilter
to functional components #11891ui/src/app/shared/components/graph/coffman-graham-sorter.ts:Not a React componentui/src/app/shared/components/graph/dfs-sorter.ts:Not a React componentui/src/app/shared/components/graph/types.ts:Not a React componentui/src/app/shared/list-watch.ts:Not a React componentui/src/app/shared/retry-observable.ts:Not a React componentui/src/app/shared/retry-watch.ts:Not a React componentui/src/app/shared/scoped-local-storage.ts:Not a React componentui/src/app/shared/services/archived-workflows-service.ts:Not a React componentui/src/app/shared/services/cluster-workflow-template-service.ts:Not a React componentui/src/app/shared/services/cron-workflow-service.ts:Not a React componentui/src/app/shared/services/event-service.ts:Not a React componentui/src/app/shared/services/event-source-service.ts:Not a React componentui/src/app/shared/services/info-service.ts:Not a React componentui/src/app/shared/services/sensor-service.ts:Not a React componentui/src/app/shared/services/workflow-template-service.ts:Not a React componentui/src/app/shared/services/workflows-service.ts:Not a React componentUserInfo
to functional component #11793WorkflowsList
+WorkflowsFilter
to functional components #11891WorkflowsList
+WorkflowsFilter
to functional components #11891ui/src/app/shared/components/error-boundary.tsx: Cannot be convertedplan to refactor them in batches
Message from the maintainers:
Love this enhancement proposal? Give it a 👍. We prioritise the proposals with the most 👍.
The text was updated successfully, but these errors were encountered: