-
Notifications
You must be signed in to change notification settings - Fork 31
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
Horreum UI refactoring #1290
Horreum UI refactoring #1290
Conversation
Overall I like the idea of moving items under the associated My opinion on changes:
|
5fe28f5
to
d94a254
Compare
d94a254
to
5268ef3
Compare
5268ef3
to
854517f
Compare
What I didIn the previous commits I have fixed (hopefully) some UI issues that I'll summarize here:
Open pointsIn conclusion I think that from this pull request point of view we have still ~4 open points:
|
const [selectedTest, setSelectedTest] = useState<SelectedTest>() | ||
const newTest = { id: props.testID } as SelectedTest; | ||
// Do we need this? the test id is provided by props therefore it should not change | ||
const [selectedTest, setSelectedTest] = useState<SelectedTest>(newTest) |
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.
Do we need this? the test id is provided by props therefore it should not change. In fact the function setSelectedTabs
is not called anywhere
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.
I think we can remove this now
As discussed added additional commit (ca3fff3) to add folders navigation using breadcrumb: I tried to keep the folder structure, i.e., |
Since we changed some of the URL paths, e.g., for |
Updated ✔️ hopefully I did not miss anything else. IMO this PR could be considered ready for review but I'd left your final comment here @johnaohara @stalep. |
@lampajr What changes were made to the |
@johnaohara actually nothing changed (it was simply commented out, so I re-established it), the only difference with respect to the
I agree, much cleaner and easier to underastand. Working on it.
Oh, good catch! I did not notice. Working on this as well. |
b486ed4
to
febf64d
Compare
Hi @johnaohara I addressed the other minors, especially I re-instated the
Yeah that's something we should do, I checked and it seems this is not supported from the backend therefore it is not about UI changes only. Do you want to do that as part of this PR? Or do you prefer to create a separate issue to manage both backend and frontend? |
If it is not supported in the backend, we should hide the component in the UI and add that in a separate PR |
I agree, hidden in this pr and created #1589 for its implementation. |
@lampajr please can you change title the PR, squash commits and remove from Draft status? |
Co-authored-by: John OHara <[email protected]>
1c1198b
to
8b47ac2
Compare
@johnaohara will we nee all commentend code, I am asking because its kind of mesh. |
Not in this instance. In this PR, the UI is being re-organised as an interim step, but there is more re factoring to be performed to allow for Unit testing etc. As we perform work to improve the UI components, rather than just moving them around, I think we want more details about the components then |
Introducing 3 clicks to navigation is a backward step imo.
|
Horreum UI refactoring.
In summary, here the most important changes:
breadcrumb