Conflicting Files NPM Resource Changed ? Pending

User tests: Successful: Unsuccessful:

avatar SharkyKZ
SharkyKZ
13 Feb 2020

Fixes #26695.

Summary of Changes

Normalizes categories-default.js in com_content, com_contactandcom_newsfeeds`, fixing several issues in All Categories views.

Testing Instructions

Create categories with child categories for mentioned components.
Go to List All Categories views in frontend.
Click the + button to expand categories.
Check that plus icon changes to minus and that aria-label attribute of the button updates.

Documentation Changes Required

No.

avatar SharkyKZ SharkyKZ - open - 13 Feb 2020
avatar SharkyKZ SharkyKZ - change - 13 Feb 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 13 Feb 2020
Category JavaScript Repository NPM Change Front End com_contact com_content com_newsfeeds
avatar brianteeman
brianteeman - comment - 13 Feb 2020

I have tested this item successfully on 391d6a9

great stuff - accessibility is great as well - thanks


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27915.

avatar brianteeman brianteeman - test_item - 13 Feb 2020 - Tested successfully
avatar wilsonge
wilsonge - comment - 13 Feb 2020

@SniperSister @zero-24 can you look at RIPs here please

avatar infograf768
infograf768 - comment - 13 Feb 2020

@SharkyKZ
If I do not mistake, these js contains the same code.
Would it be sensible or even possible to have only one file and load it for each component?

avatar SharkyKZ
SharkyKZ - comment - 13 Feb 2020

@infograf768 Yes, JS files are now identical. I just have no idea where to put the single reusable file.

avatar jwaisner jwaisner - test_item - 13 Feb 2020 - Tested successfully
avatar jwaisner
jwaisner - comment - 13 Feb 2020

I have tested this item successfully on 391d6a9


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27915.

avatar jwaisner jwaisner - change - 13 Feb 2020
Status Pending Ready to Commit
avatar jwaisner
jwaisner - comment - 13 Feb 2020

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27915.

avatar Fedik
Fedik - comment - 13 Feb 2020

Yes, JS files are now identical. I just have no idea where to put the single reusable file.

place it under media/com_categories, name it somehow useful categories-shared-random-stuff.js and use it in other components ?

avatar SharkyKZ SharkyKZ - change - 13 Feb 2020
Labels Added: ?
avatar laoneo
laoneo - comment - 14 Feb 2020

Do we need here another round of tests or can RTC stay?

avatar SharkyKZ SharkyKZ - change - 14 Feb 2020
Status Ready to Commit Pending
avatar SharkyKZ
SharkyKZ - comment - 14 Feb 2020

Set back to Pending, I guess. The tracker won't let me remove RTC label..

avatar astridx
astridx - comment - 23 Feb 2020

Do you like to have tests here? If so, could you please resolve the conflicts?

avatar SharkyKZ SharkyKZ - change - 23 Feb 2020
Labels Added: Conflicting Files
Removed: ?
avatar SharkyKZ
SharkyKZ - comment - 23 Feb 2020

Conflicts solved.

avatar astridx
astridx - comment - 23 Feb 2020

I have tested this Patch.

  1. git fetch origin pull/27915/head:j4/js/categories-default
  2. git checkout j4/js/categories-default
  3. No new install but I run npm ci.
  4. I created categories with child categories for com_content, com_contact and com_newsfeed.
  5. I created menu items that shows emty categories.
  6. I could open and close the all views in the front end.

newsfeed

I tested with the current ‎4.0.0-beta1-dev on Ubuntu with PHP 7.2 and MySQL 5.7.

avatar astridx
astridx - comment - 23 Feb 2020

I have tested this item successfully on ee48f1f


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27915.

avatar astridx astridx - test_item - 23 Feb 2020 - Tested successfully
avatar wilsonge wilsonge - change - 29 Feb 2020
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-02-29 23:42:43
Closed_By wilsonge
Labels Added: NPM Resource Changed ?
avatar wilsonge wilsonge - close - 29 Feb 2020
avatar wilsonge wilsonge - merge - 29 Feb 2020
avatar wilsonge
wilsonge - comment - 29 Feb 2020

Thanks! Nice work :)

Add a Comment

Login with GitHub to post a comment