-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[4.3] Template Diff View #38823
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
[4.3] Template Diff View #38823
Conversation
administrator/components/com_admin/sql/updates/mysql/4.3.0-2022-09-23.sql
Show resolved
Hide resolved
|
@Kostelano I agree BUT I might have to ask for some help with the css from someone |
Add to that first row: position: sticky; |
|
Not quite that simple. You can only add it to a th not a tr. But that's not the problem I have. It's messing up all the borders |
Applying it to the thead th works. Regarding the borders-something to do with border-collapse on the table: https://stackoverflow.com/questions/50361698/border-style-do-not-work-with-sticky-position-element |
|
dont forget the css needs to work in both inline and sidebyside |
|
Those
|
|
Thanks Jack - I will probably spend a little time later to create unique css for this using your tip |
|
will be updated - hopefu;lly soon - with support for displaying tabs and spaces |
[4.3] Template Diff View joomla#38823
…o be b/c for layout overrides (#39431)
|
@brianteeman Just Double checking. I create an override and added some text. For some reason the whole compare area is colored. At first the added line was darker green after adding a second line. the darker color is gone. I'm on windows. Just saving the override without adding text will add the full color background. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38823. |
|
I just checked out the 4.3 branch and did an install. I'm curious what went wrong in my installation... I'll check tomorrow. |
|
the line ending changed? |
|
Brian is on Windows too. Line endings shouldn't be the problem I guess. |
not sure whether he was aware of this "saving" step. |
|
Did some further investigation. When I edit the file in VScode the diff works. When I edit and save the override in Joomla the color problem occurs. @brianteeman Hope you have a tip or a fix. IMHO this is the most useful new feature in J4.3. |
|
I have strong feeling that this is a line ending issue. If it is, @brianteeman can |
|
@jfcherng I understand what you are saying but its odd that I cant replicate this |
|
@brianteeman if you create a new PR, please let me know so I do the tests! |
|
Maybe ask @RickR2H to look up what's actually stored in the database? |
|
@RickR2H please open a new issue with this report. that will get more visibility. Don't have time to look at it today. |
Delete the js files and the asset once deleted with PR's joomla#38823 and joomla#39374 and then added back with PR joomla#39431 for b/c reasons.
Delete the js files and the asset once deleted with PR's joomla#38823 and joomla#39374 and then added back with PR joomla#39431 for b/c reasons.






Pull Request for Issue multiple .
Summary of Changes
Replace the very limited javascript used to display the diff between the core and the overriden file in com_templates with something much more useful
Testing Instructions
Apply this PR and then composer install and npm i
or use on of the prebuilt packages
There are two different views for the override: side by side and inline
side by side is the default - you can swtich to the inline version in the component options
both show the line numbers
A message is displayed if the override is identical to the core original file
Actual result BEFORE applying this Pull Request
too ugly to display ;)
Expected result AFTER applying this Pull Request
Default Side By Side View
Optional Inline View
Identical file View
Visible display of tabs and spaces
Documentation Changes Required
probably just updated screenshot
More Info
For more information on the library used and possible extras that could be added see https://github.com/jfcherng/php-diff
@richard67 a file is removed - shall I add it to the script or shall I ?
There may be some tweaks to the build scripts required to remove stuff from the library but I can only check when the package is built here ;)