? ? ? Pending

User tests: Successful: Unsuccessful:

avatar brianteeman
brianteeman
13 Aug 2018
  1. Change the editor field to a text field - I am sure you will never need a full wysiwyg editor here
  2. Add a label to the field called "Note"
  3. change the tmpl to get the list of fields from the xml instead of being hardcoded
  4. Add the content of the "note" to the list view. I really can't see the point in having the note if you can't see it in the list

(Same has been done for stages)

After

chrome_2018-08-13_17-23-24

chrome_2018-08-13_17-23-34

avatar brianteeman brianteeman - open - 13 Aug 2018
avatar brianteeman brianteeman - change - 13 Aug 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 13 Aug 2018
Category Administration com_workflow Language & Strings
avatar brianteeman brianteeman - change - 13 Aug 2018
Labels Added: ? ?
dbfa778 13 Aug 2018 avatar brianteeman cs
avatar wilsonge
wilsonge - comment - 13 Aug 2018

LGTM. Let's just get one test here

avatar brianteeman
brianteeman - comment - 13 Aug 2018

Moved the name above the tabs for consistency

avatar brianteeman
brianteeman - comment - 13 Aug 2018

Something isnt correct here - probably a silly error by me - but the edit is not displaying the note or saving correctly. I will take another look in the morning unless some kind sole wants to submit a pr to my branch with the fix

avatar wilsonge
wilsonge - comment - 13 Aug 2018

You've added the fields tag. So the fields names have changed to e.g. jform[transition][description] instead of jform[description] before this PR. So you'll need to update the populateState function I would imagine

public function populateState()
{
parent::populateState();
$app = Factory::getApplication();
$context = $this->option . '.' . $this->name;
$extension = $app->getUserStateFromRequest($context . '.filter.extension', 'extension', 'com_content', 'cmd');
$this->setState('filter.extension', $extension);
}

(just doing this off code review - please check what i've written before attempting anything)

avatar brianteeman
brianteeman - comment - 13 Aug 2018

Makes sense. Will check in the morning

avatar brianteeman
brianteeman - comment - 13 Aug 2018

And probably the getState

avatar brianteeman brianteeman - change - 19 Aug 2018
Title
[4.0] Workflow Transitions
[4.0] Workflow Transitions/Stages
avatar brianteeman brianteeman - edited - 19 Aug 2018
avatar brianteeman brianteeman - change - 19 Aug 2018
The description was changed
avatar brianteeman brianteeman - edited - 19 Aug 2018
avatar brianteeman
brianteeman - comment - 19 Aug 2018

OK now updated for stages and ready for testing

avatar brianteeman
brianteeman - comment - 19 Aug 2018

@bembelimen I think this is clearer in the edit view and also means you can see all the notes at once in the list view - hope you agree

avatar bembelimen
bembelimen - comment - 19 Aug 2018

In general I really like this PR, but two things:

  • perhaps move the note field to the right?
  • What is the reason for grouping the fields into the "transitions fields"? Will this be extended in some way, so we need the foreach in the tmpl? I would suggest to use fieldset only, so we have not this nested field naming George mentioned.
avatar brianteeman
brianteeman - comment - 19 Aug 2018

perhaps move the note field to the right?

I assume you mean in the list view? It is below to be consistent with similar additional information on other lists - also allows a bit more space and if it was to wrap onto a second line it will look better this way

avatar wilsonge
wilsonge - comment - 19 Aug 2018

What is the reason for grouping the fields into the "transitions fields"? Will this be extended in some way, so we need the foreach in the tmpl? I would suggest to use fieldset only, so we have not this nested field naming George mentioned.

We don't have nested fields anymore with this (that's when you use a "fields" tag) this just names the fieldsets, which is required for allowing plugins to add more custom fields (for example see what I've done with the groups view in #21696)

avatar bembelimen
bembelimen - comment - 19 Aug 2018

No I mean in the form view.

grafik

avatar bembelimen
bembelimen - comment - 19 Aug 2018

@wilsonge But there is a difference: you add the name to the fieldset, here we added a new "fields" tag: https://github.com/joomla/joomla-cms/pull/21592/files#diff-6d3a9c00497a5503546ac43bbad8023eR10

avatar brianteeman
brianteeman - comment - 19 Aug 2018
  1. Note - i think thats a just a matter of opinion - I dont care and am happy to move it
  2. Fields - my fault - didnt save the change - have pushed now
da5d41c 19 Aug 2018 avatar brianteeman oops
avatar brianteeman brianteeman - change - 19 Aug 2018
Labels Added: ?
avatar brianteeman
brianteeman - comment - 19 Aug 2018

conflicts resolved

avatar wilsonge wilsonge - change - 10 Sep 2018
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2018-09-10 11:13:47
Closed_By wilsonge
avatar wilsonge wilsonge - close - 10 Sep 2018
avatar wilsonge wilsonge - merge - 10 Sep 2018
avatar wilsonge
wilsonge - comment - 10 Sep 2018

Thanks!

Add a Comment

Login with GitHub to post a comment