-
-
Notifications
You must be signed in to change notification settings - Fork 529
[Port to 3.x] Fix Various Issues with Form Panel Validation and Field Display - Revised Submission #16012
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
Conversation
Whoa! I don't think this is necessary. First of all, multi-part PRs that are dependent on other PRs being merged is an absolute nightmare to manage as an integrator. The rebase vs. merge comment was just a suggestion to help keep things cleaner. |
I would much rather see you add the other parts as separate commits here to this PR. |
@opengeek - OK, will do. I'll commit each part within this PR. I think now I'll know the ideal way to submit these medium to large PRs ;-) I'm more so re-submitting this differently because my original PR seems to not be gaining traction and that some of these changes have not been merged is beginning to make other changes I'm looking to submit increasingly tricky because they build upon or intersect in ways with the changes made in this PR. Hoping reorganizing will make reviewers more apt to review this. (I'm not griping by any means, as I realize there are a lot of PRs to review any very limited resources reviewer-wise, just explaining.) Just note that regardless, this first commit will be required for the others to work properly. |
@opengeek The problem is that the original PR solves problems that can be divided into several independent PRs. |
But they are not independent, according to the description. Separate PRs with dependencies on other PRs is not viable. |
Even based on the description, they are. This is not counting other edits. |
@Ruslan-Aleev - If you're looking at the original PR, you need to look at the whole picture and how the changes are implemented. No matter what, the changes I made to the FormPanel class are necessary for any of the changes to the individual panels to work. I think you're geared to wanting to see things submitted by type of change (UX, lexicon, style, etc.) but that sometimes is not the most logical way to go IMO. In this case, doesn't it make more sense to split it by the area affected (resource, and each element panel)? |
@smg6511 Such global changes bother me. But maybe I worry in vain, let the majority decide. |
@Ruslan-Aleev - In all fairness, re #15947, yes that was a miss on my part (but easily solved); #15854 is by and large problems in your opinion and not bugs. Hopefully you've seen that I'm taking your opinion seriously and am willing to compromise and respond to your and others' concerns. That said, when you refer to #15773, if you looked at it closely you might agree that it would not have been doable, practically at least, in a non global way. Yes, I've learned some commit strategies since that could have made it somewhat easier to review, but it's admittedly a beast — after all it fundamentally changed how the UI for TV creation is built and opened it up to easily overriding by custom TV creators. Anyway, maybe we can come to a middle ground for both you and @opengeek on this particular PR's intended changes. I can leave this revised PR as-is, ready to review. (I'll of course close the original #15887.) I can wait to submit separate PRs for each element until after this PR is merged. This is possible because while my upcoming changes to each element's form panel rely on the changes in this PR, the element panels as they stand will not be affected by this PR. How does that sound? |
If it's easier to test and track changes in files, then I'm all for it. |
My availability is limited, that's why I prefer smaller PR's or PR's with good commits. But for now, let's focus on the issues and features this PR introduces instead of code style. @smg6511 is this still WIP or ready for review? |
@JoshuaLuckers - Yes, this revision is ready to review. I broke up the original in hopes that it would be more approachable. I've got the changes to each element panel waiting in the wings (prepared but not submitted) ready to go after this PR is presumably merged. |
5a28676
to
93b33b4
Compare
@mishantrop - For the purposes of this PR, I've set aside your suggestions for now. That's not to say you don't have some good/valid ones; it's just that they're nitpicks that are inconsequential to the PR's functionality. And, there's one thing I've been learning as I've become more active in submitting fixes and enhancements: With so few reviewers (i.e., testers) it's best to keep the number of commits to a minimum when possible. Believe me, there's a ton of the types of changes you suggest to be done across the whole codebase, and I'd love to fix them all at once ... but then we'd never get anything through review! Anyway, as I've suggested before, it would be way more helpful if you could review and test PRs you're looking at, rather than just identifying code style/format to improve. It's an ideal I appreciate, but your time would be much more valuable verifying PR functionality. |
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.
From a feature standpoint this work as described!
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 confused you, with this checkboxes and switches in TV.
BUT my complaint was in the inconsistency of the interfaces of the forms.
Those previously in the TV form you made checkboxes in switches style, but for other forms, for example, chunks, they remained in the form of checkboxes.
And in this PR, you did the opposite :) In TV, you returned checkboxes, and in other forms, for example, chunks, they are now in switches style. Why, what is the logic?
It is worth bringing to one style. Make it in the style of switches for all forms (checkboxes should be left only in grids, I think).
- I understand correctly that the validation improvement that we discussed earlier (Improve form validation #16009 (comment)) will be in another PR and is not fixed in this one, right?
@Ruslan-Aleev - I didn't misunderstand, it's just that I broke up the whole change into multiple PRs because I keep getting grief over how big some of my PRs, including the original version of this one, are ;-) That said, I did not submit the other PRs yet, which apply all of the same stylistic and functionality changes as this one to each of the Element editing panels, because they need some of the changes made in this PR to work. Those PRs are all prepared and ready to push though. On question 2, yes. |
@smg6511 Then I do not understand you :) p.s. It is also worth making PRs independent in the future, otherwise, due to the fact that one PR is not tested / merged, dependent PRs will not be merged either (because of this we have an inconsistency in the interface). |
What I need here is a little faith that once this PR merges (presumably), the others that follow will make everything consistent. I'm looking into the reversion in the TV form, which should not be happening. These PRs can not be independent. There are methods added to the panels’ parent class that makes certain parts work in each. It doesn't make sense to keep re-committing that one changed class to make these PRs fully independent, right? That's why I submitted the change as one PR initially. We can’t have it both ways (unless there’s a strategy I’m missing). |
@Ruslan-Aleev - Ok, I think I know what could make you more comfortable with moving ahead with this PR. I can remove (for now) the css selector that is used to keep the Resource TV checkboxes normal style and not switch style. The result would be that all checkboxes will be switch style in the form panels (again temporarily). To illustrate, the
I commented out the 2 more specific selectors that differentiate the switch/regular style. I'd like to keep those commented out lines as an extra reminder that I need to change them back after the full set of PRs is implemented. What do you think? I'll make one more commit to do the above if you like the idea. |
@smg6511 Yes, that's a good idea, thanks, I'll test it locally in the next few days and get back to you. |
@Ruslan-Aleev how'd it check out on your end? |
@rthrash I completely forgot about this PR, I'll test it and write back tomorrow. |
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 interface is now consistent for elements, thanks!
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.
cc3745f
to
93a47ce
Compare
@Ruslan-Aleev - Good catch! This is fixed with the latest commit. Quick question to you and others: I noticed that the term shown in the panel title had been changed to "Create Document" at some point, so I matched that ... wanted to make sure that's correct. If so, that change in terminology from "Resource" to "Document" should be carried through in other places (such as the tree's main menu and in the panel tabs); that would be for another PR if that's the intended term to be used moving forward. |
A "Resource" (modResource) needs/has a "Resource Type" e.g Document, Weblink, Collection, Article etc. The default resource type is "Document". |
@JoshuaLuckers - OK, I see. So then, to be completely correct, if one is creating a new Resource and changes the type to something other than the default (Document) the panel title should reflect that and the first tab should as well (e.g., if you choose Symlink, the initial panel title should read "Create Symlink" and the first tab should change to "Symlink." I'm not suggesting this detail be addressed in this PR, but maybe it should be handled in a separate one at some point. |
@smg6511 After last edit, I get a 500 error:
|
@Ruslan-Aleev - Yeah, I had that too when I switched branches. You have to run |
Just to confirm, this PR does not introduce any features or compatibility issues for CMPs or other extras that might target 3.0.0, correct? |
No, I don't believe the changes in this and the forthcoming PRs should have any effects on extras/CMPs. |
One change to add missing space before resource/element id number in the title bar breadcrumb.
Temporary update to ensure consistent appearance of all Element panel switches until the full set of PRs related to this one are implemented. Commented out lines kept on purpose to remind that they need to be re-introduced at the end of the process.
Updated to show the correct panel title prefix when creating new resource and no pagetitle has been input yet (instead of "undefined")
Implements a handful of reviewer suggestions
e539ead
to
5a21e4f
Compare
NOTE: This PR lays the groundwork for improvements to the element creation UIs, which will be submitted after implementation of this PR. This (and each related PR to follow) is a revised submission of #15887.
What does it do?
Ports enhancements to the Resource form panel from PR #15146 to 3.x (including subsequent fixes by others).
Changes include:
Why is it needed?
Makes needed UI and consistency improvements to the resource panel.
How to test
grunt build
from within the_build/templates/default
folder and clear your browser cache.Related issue(s)/PR(s)
Partly addresses #15854
Partial port of #15146