? Pending

User tests: Successful: Unsuccessful:

avatar dgt41
dgt41
13 Feb 2018

Pull Request for Issue # .

Summary of Changes

  • Remove the dead code, chosen that is
  • Remove the inline script from custom fields

TODO

  • Restore the ability to add categories on the fly
  • Enhance the category creation so user can create child category (now only root cats ? are allowed)
  • Restore the search functionality

Testing Instructions

On an article with fields enabled try to change the category. Page reloads with or without the custom fields depending if they are assigned

Expected result

Actual result

Documentation Changes Required

???

@laoneo

avatar dgt41 dgt41 - open - 13 Feb 2018
avatar dgt41 dgt41 - change - 13 Feb 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 13 Feb 2018
Category Administration com_categories com_content com_fields JavaScript Repository
avatar dgt41 dgt41 - change - 13 Feb 2018
Labels Added: ?
avatar brianteeman
brianteeman - comment - 8 Apr 2018

Is this still a WIP or is it ready for testing?

avatar dgrammatiko
dgrammatiko - comment - 8 Apr 2018

@brianteeman this is ready for testing

avatar dgrammatiko dgrammatiko - change - 8 Apr 2018
Title
[4.0][WIP] Field category (custom fields + create new category on the fly)
[4.0] Field category (custom fields + create new category on the fly)
avatar dgrammatiko dgrammatiko - edited - 8 Apr 2018
avatar brianteeman
brianteeman - comment - 8 Apr 2018

@dgrammatiko so is the "todo" stuff done?

avatar dgrammatiko
dgrammatiko - comment - 8 Apr 2018

Nope, this needs to be a three step process, as the other 2 todos are gonna be also custom elements (but less attached to this particular field) and thus they need to be developed in their own PRs. Just to clear things here, we still need:

  • a way to add new category (a11y compliant etc)
  • a way to search a long select list (probably by introducing our own joomla-select, based on the repo you pointed in that other issue)
avatar dgrammatiko
dgrammatiko - comment - 8 Apr 2018

@brianteeman how hard will it be to make chosen accessible and mobile friendly?
I mean converting it to vanilla and custom element is not a big deal: https://codepen.io/dgt41/pen/bvOdZp

avatar brianteeman
brianteeman - comment - 8 Apr 2018

why are you even thinking of that. I have already given you recommendations for fully accessible options

avatar brianteeman
brianteeman - comment - 8 Apr 2018
avatar dgrammatiko
dgrammatiko - comment - 8 Apr 2018

@brianteeman I'm gonna replace the awesomplete with the one that you are proposing in that issue but that script has nothing to do with chosen and the 3 ways we're using it in joomla. It's not even a candidate for chosen replacement...

avatar dgrammatiko
dgrammatiko - comment - 8 Apr 2018

OK @brianteeman here's something for you to evaluate:
screen shot 2018-04-08 at 23 55 23

The only problem with the suggest script (apart that it's dragging the whole PREACT with it) is that once you select something and you need to change your selection you have to manually delete (thats a lot of backspace keystrokes) to get the full list of options
screen shot 2018-04-08 at 23 55 33

We still have to implement a way to add a new category!
And also this script doesn't really work with multiple selects so for tags we need another solution...
Anyways let me know if this is something we should consider here otherwise I will revert the last commit

avatar brianteeman
brianteeman - comment - 21 Jul 2018

sorry I didnt realise you had updated this to use accessible-autocomplete - i expected to see it as a separate file. will take a look tomorrow

avatar brianteeman
brianteeman - comment - 22 Jul 2018

@dgrammatiko can you fix the conflicts please so it can be tested

5d1a8db 22 Jul 2018 avatar dgrammatiko init
avatar dgrammatiko
dgrammatiko - comment - 22 Jul 2018

@brianteeman the create new category is WIP, let me know what you think about the idea (obviously it needs a lot of polishing if this is what we want)
screenshot 2018-07-22 at 21 41 33
screenshot 2018-07-22 at 21 41 51
screenshot 2018-07-22 at 21 42 01

avatar TobsBobs TobsBobs - test_item - 4 Aug 2018 - Tested unsuccessfully
avatar TobsBobs
TobsBobs - comment - 4 Aug 2018

I have tested this item ? unsuccessfully on ab881f4


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/19671.
avatar TobsBobs
TobsBobs - comment - 4 Aug 2018
avatar TobsBobs
TobsBobs - comment - 4 Aug 2018
avatar franz-wohlkoenig franz-wohlkoenig - test_item - 4 Aug 2018 - Tested successfully
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 4 Aug 2018

I have tested this item successfully on ab881f4


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

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 4 Aug 2018

@TobsBobs i didn't get the Warning (on com_fields i used a Text-Field).

avatar TobsBobs
TobsBobs - comment - 4 Aug 2018

I retest this patch and it is not working. I have created some categories but I can't change the category of the article. On com_fields i also used a Text-Field.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 4 Aug 2018
  • create Category on the fly: works.
  • change Category: works. In the Thread above is written how: delete Category by hit Backspace, then you get existing Categories.

Test Instructions should be in first Comment.

avatar dgrammatiko dgrammatiko - change - 29 Aug 2018
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2018-08-29 10:23:37
Closed_By dgrammatiko
avatar dgrammatiko dgrammatiko - close - 29 Aug 2018

Add a Comment

Login with GitHub to post a comment