? ? ? Pending

User tests: Successful: Unsuccessful:

avatar bembelimen
bembelimen
26 Sep 2018

Pull Request for Issue #21818 #21708 #21527 .

Summary of Changes

Based on the PR #21247 the action buttons (publish, unpublish, archive, trash) are readded and grouped.

First we need this PR to have all buttons in place: #21532 so perhaps someone could reactivate it.

Thanks to @lavipr for the JS code and @ciar4n for the main idea.

Testing Instructions

  1. Create several workflows
  2. Create articles
  3. Try out the differnt buttons

Expected result

Articles change stage by pressing the buttons

--
Cleaning the JS file atm.

91cff1a 15 Aug 2018 avatar ciar4n fixes
avatar bembelimen bembelimen - open - 26 Sep 2018
avatar bembelimen bembelimen - change - 26 Sep 2018
Status New Pending
avatar bembelimen bembelimen - change - 26 Sep 2018
Title
Workflow article buttons
[4.0] Workflow article buttons
avatar bembelimen bembelimen - edited - 26 Sep 2018
avatar joomla-cms-bot joomla-cms-bot - change - 26 Sep 2018
Category Administration com_content Language & Strings Templates (admin) JavaScript Repository Installation Layout Libraries Front End Templates (site)
avatar bembelimen bembelimen - change - 26 Sep 2018
Labels Added: ? ?
avatar bembelimen bembelimen - change - 26 Sep 2018
The description was changed
avatar bembelimen bembelimen - edited - 26 Sep 2018
avatar bembelimen bembelimen - change - 26 Sep 2018
The description was changed
avatar bembelimen bembelimen - edited - 26 Sep 2018
avatar brianteeman
brianteeman - comment - 26 Sep 2018

CSS should not be committed only scss please

avatar joomla-cms-bot joomla-cms-bot - change - 27 Sep 2018
Category Administration com_content Language & Strings Templates (admin) JavaScript Repository Installation Layout Libraries Front End Templates (site) Administration com_content Language & Strings Templates (admin) JavaScript Repository Layout Libraries
avatar brianteeman
brianteeman - comment - 27 Sep 2018

first impressions very nice

avatar brianteeman
brianteeman - comment - 28 Sep 2018

Since applying this pr and running npm i I am missing various icons
image
image

Where the icon is missing - clicking on them gives a javascript error

Uncaught TypeError: Cannot read property '10' of null
    at Object.e.listItemTask (core.min.js?8be5a883767042ad65bf41d1f0f59c51:1)
    at HTMLAnchorElement.onclick (index.php?option=com_workflow&view=workflows&extension=com_content:436)
e.listItemTask @ core.min.js?8be5a883767042ad65bf41d1f0f59c51:1
onclick @ index.php?option=com_workflow&view=workflows&extension=com_content:436
avatar brianteeman
brianteeman - comment - 28 Sep 2018

Dropdown styling consistency

This is the current styling for the save menu with dropdown - note the icons are mono and the hover matches the button colour
image

The new dropdown for change status uses coloured icons and the hover highlight is a very pale grey which is hard to see
image

avatar bembelimen
bembelimen - comment - 28 Sep 2018

Since applying this pr and running npm i I am missing various icons

This is an issue in J! 4.0 in general, I think it could have to do something with: https://github.com/joomla/joomla-cms/pull/22349/files
@chmst is investigating atm.

avatar chmst
chmst - comment - 28 Sep 2018

@bembelimen, @brianteeman please test this: #22424 it should bring back the missing icons.

avatar brianteeman
brianteeman - comment - 28 Sep 2018

commented on the code to improvements needed to the js for accessibility

avatar brianteeman
brianteeman - comment - 30 Sep 2018

Thanks for the accessibility fixes. Just need the CSS to be fixed now and it's good to go

avatar bembelimen
bembelimen - comment - 3 Oct 2018

Hi @brianteeman I got an update from @lavipr for the dropdown, is this the requested solution?

avatar brianteeman
brianteeman - comment - 4 Oct 2018

I am not seeing any changes in the dropdown

avatar bembelimen
bembelimen - comment - 4 Oct 2018

It should look like that:
grafik

avatar brianteeman
brianteeman - comment - 4 Oct 2018

I will check again later when my pc finishes updating. I still think that the icons should be mono to match the mono icons in the save drop-down as shown in the image above but I am not a designer.

avatar bembelimen
bembelimen - comment - 4 Oct 2018

@lavipr is working on it.

avatar joomla-cms-bot joomla-cms-bot - change - 4 Oct 2018
Category Administration com_content Language & Strings Templates (admin) JavaScript Repository Layout Libraries Administration com_content Language & Strings Templates (admin) JavaScript Repository Layout Libraries Front End Templates (site)
avatar brianteeman
brianteeman - comment - 4 Oct 2018

@bembelimen please post when it is ready to test

avatar bembelimen
bembelimen - comment - 4 Oct 2018

Now :D sorry, only "not implemented change" is the language change...not sure about it, because we're at the article view...so they are all articles...

avatar brianteeman
brianteeman - comment - 4 Oct 2018

I thought it was ready so I tested it but still dont see any change in the dropdown

avatar bembelimen
bembelimen - comment - 4 Oct 2018

Mhh @brianteeman that's strange. I just checked the branch out again and did npm, the "hover" of the elements in the dropdown are now colorful + the icons are dark.

grafik

avatar brianteeman
brianteeman - comment - 4 Oct 2018

ok got it working now - I was in the wrong branch. It does what you say.

can you remind me what is the language issue please

avatar bembelimen
bembelimen - comment - 4 Oct 2018

This one: #22393 (review)

avatar brianteeman
brianteeman - comment - 4 Oct 2018

not sure about it, because we're at the article view...so they are all articles...

Thats true but presumably we will be using this dropdown throughout joomla so in those cases it would says something else.

avatar uglyeoin
uglyeoin - comment - 10 Oct 2018

Just a suggestion, but could the dropdown match the width of the parent button (as a minimum). Just my opinion, happy if it doesn't get implemented but I think it would look better. I also think it would look nice if it butted up with the edge of the border instead of going over the top, but I think that would cause some issue in terms of hovering on it potentially as you could be inbetween.

avatar brianteeman
brianteeman - comment - 10 Oct 2018

It could only be a minimum width as the text may be longer in non English lamguages

avatar uglyeoin
uglyeoin - comment - 10 Oct 2018

It could only be a minimum width as the text may be longer in non English lamguages

of course and a new option could potentially be added in the future.

avatar laoneo
laoneo - comment - 18 Oct 2018

@bembelimen can you make the dog happy and then it would be good to have a successful test here.

avatar bembelimen
bembelimen - comment - 27 Oct 2018

@laoneo the dog is happy now :)

avatar chmst
chmst - comment - 15 Nov 2018

I have tested this item successfully on aacb27f

I have tested this item successfully on the latest v4.0. dev. (After npm install).
With different combinations and different workflows - also featured and non-featured and checke_out articles. Everything works as expected and really like this.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/22393.
avatar chmst
chmst - comment - 15 Nov 2018

I have tested this item successfully on aacb27f

I have tested this item successfully on the latest v4.0. dev. (After npm install).
With different combinations and different workflows - also featured and non-featured and checke_out articles. Everything works as expected and really like this.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/22393.
avatar chmst chmst - test_item - 15 Nov 2018 - Tested successfully
avatar fancyFranci
fancyFranci - comment - 28 Nov 2018

I have tested this item successfully on aacb27f

Tested with different stages and transitions and the patch worked as expected, with some grey status and helpful messages.


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

avatar fancyFranci
fancyFranci - comment - 28 Nov 2018

I have tested this item successfully on aacb27f

Tested with different stages and transitions and the patch worked as expected, with some grey status and helpful messages.


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

avatar fancyFranci fancyFranci - test_item - 28 Nov 2018 - Tested successfully
avatar Quy Quy - change - 28 Nov 2018
Status Pending Ready to Commit
avatar Quy
Quy - comment - 28 Nov 2018

RTC


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

avatar Quy
Quy - comment - 28 Nov 2018

RTC


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

avatar bembelimen bembelimen - change - 12 Dec 2018
Labels Added: ?
avatar wilsonge wilsonge - change - 25 Dec 2018
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2018-12-25 22:01:11
Closed_By wilsonge
avatar wilsonge wilsonge - close - 25 Dec 2018
avatar wilsonge wilsonge - merge - 25 Dec 2018
avatar wilsonge
wilsonge - comment - 25 Dec 2018

Thanks

avatar bembelimen
bembelimen - comment - 26 Dec 2018

Thanks @wilsonge now we need this PR reopened to remove the unnecessary trash button: #21532

Add a Comment

Login with GitHub to post a comment