? ? Success

User tests: Successful: Unsuccessful:

avatar andrepereiradasilva
andrepereiradasilva
29 Aug 2016

Pull Request for Improvement.

Summary of Changes

This PR intends to do several things in the article modal field:

  • The most important, add a new button to create a new article directly (ex: when creating a menu item single article type)

This can be very useful since, with this, you can create a New article directly when you are creating a menu item. Save a lot of work when you just need to do this.

Also:

  • Add the ability to choose whether to show or not the edit, create, select, or clear buttons.
  • Change the buttons behaviour. When no article is selected you have "Select" and "Create", when an article is selected you have "Edit" and "Clear".
  • Simplify js in modals by moving most js to a new js file. Instead of inline js.
  • Allow to change the category and language in edit modals (this was blocked everywhere because of associations). Now change is allowed, except in associations where the language is blocked and the category only shows the categories for the forced language and All language.
  • When the language is forced (associations) now it only shows the tags for that language or the all language
  • When the language is forced (associations) now it only shows the categories for that language or the all language

Similiar PR:

Animated Gif (click to view in full screen)

bb

Testing Instructions

  1. Use latest staging and apply this patch
  2. All article modal fields should work (menu item single article, user profile plugin tos, tinymce select article, article associations, other?).
  3. Test all the "Edit", "Create", "Select" and "Clear" buttons.
  4. Test Associations modals because of the forcedLanguage.
  5. Try also to add several modals in the same page and check all work fine.
  6. Code review to check all is ok.

Documentation Changes Required

Don't know if exist any related to modal fields.

B/C

I tried to make this all B/C (didn't remove now obsolete code in article edit.php and modal.php).
Anyway, not 100% sure if B/C, so please check if i didn't forget anything.

avatar andrepereiradasilva andrepereiradasilva - open - 29 Aug 2016
avatar andrepereiradasilva andrepereiradasilva - change - 29 Aug 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 29 Aug 2016
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 29 Aug 2016
Category Administration Components Front End Libraries JavaScript Plugins
avatar andrepereiradasilva andrepereiradasilva - change - 29 Aug 2016
The description was changed
avatar andrepereiradasilva andrepereiradasilva - edited - 29 Aug 2016
avatar andrepereiradasilva andrepereiradasilva - change - 29 Aug 2016
The description was changed
avatar andrepereiradasilva andrepereiradasilva - edited - 29 Aug 2016
avatar andrepereiradasilva andrepereiradasilva - edited - 29 Aug 2016
avatar andrepereiradasilva
andrepereiradasilva - comment - 29 Aug 2016

The Travis errors are just long lines. I will fix them later.

avatar killoltailored killoltailored - test_item - 29 Aug 2016 - Tested successfully
avatar killoltailored
killoltailored - comment - 29 Aug 2016

I have tested this item successfully on 26370b8


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

avatar brianteeman
brianteeman - comment - 29 Aug 2016

Really happy to see this!!!

On 29 August 2016 at 05:47, Killol Tailored notifications@github.com
wrote:

I have tested this item successfully on 26370b8

26370b8

This comment was created with the J!Tracker Application
https://github.com/joomla/jissues at issues.joomla.org/joomla-cms/11830
https://issues.joomla.org/tracker/joomla-cms/11830.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#11830 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABPH8SkytNZFVyoFO2EdmTYzWr1wMXBpks5qkmRlgaJpZM4JvDcT
.

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/

avatar truptikagathara truptikagathara - test_item - 29 Aug 2016 - Tested successfully
avatar truptikagathara
truptikagathara - comment - 29 Aug 2016

I have tested this item successfully on 26370b8


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

avatar brianteeman brianteeman - change - 29 Aug 2016
Category Administration Components Front End Libraries JavaScript Plugins Administration Components Feature Request Front End JavaScript Libraries Plugins
avatar brianteeman brianteeman - change - 29 Aug 2016
Labels Added: ?
avatar infograf768
infograf768 - comment - 29 Aug 2016

Travis not happy
FILE: ...ms/administrator/components/com_content/models/fields/modal/article.php


FOUND 0 ERROR(S) AND 6 WARNING(S) AFFECTING 6 LINE(S)


212 | WARNING | Line exceeds 150 characters; contains 172 characters

214 | WARNING | Line exceeds 150 characters; contains 156 characters

216 | WARNING | Line exceeds 150 characters; contains 159 characters

238 | WARNING | Line exceeds 150 characters; contains 173 characters

240 | WARNING | Line exceeds 150 characters; contains 157 characters

242 | WARNING | Line exceeds 150 characters; contains 160 characters

avatar brianteeman
brianteeman - comment - 29 Aug 2016

its an RFC travis doesnt need to be happy ;)

On 29 August 2016 at 10:48, infograf768 notifications@github.com wrote:

Travis not happy
FILE: ...ms/administrator/components/com_content/models/

fields/modal/article.php

FOUND 0 ERROR(S) AND 6 WARNING(S) AFFECTING 6 LINE(S)

212 | WARNING | Line exceeds 150 characters; contains 172 characters

214 | WARNING | Line exceeds 150 characters; contains 156 characters

216 | WARNING | Line exceeds 150 characters; contains 159 characters

238 | WARNING | Line exceeds 150 characters; contains 173 characters

240 | WARNING | Line exceeds 150 characters; contains 157 characters

242 | WARNING | Line exceeds 150 characters; contains 160 characters


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#11830 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABPH8QZO7kbmMy0SvalJ8Bc4Iw26HWlwks5qkqsKgaJpZM4JvDcT
.

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/

avatar andrepereiradasilva andrepereiradasilva - edited - 29 Aug 2016
avatar andrepereiradasilva
andrepereiradasilva - comment - 29 Aug 2016

@dgt41 @JoomliC can you guys test this and also from a B/C perspective.

f8272b9 29 Aug 2016 avatar andrepereiradasilva ups
avatar andrepereiradasilva
andrepereiradasilva - comment - 29 Aug 2016

@brianteeman changed.

avatar andrepereiradasilva
andrepereiradasilva - comment - 29 Aug 2016

BTW, besides this ones:

  • menu item single article (select, edit, create, clear)
  • user profile plugin tos (select, edit, create, clear)
  • tinymce select article (select)
  • article associations (select, edit, create, clear - with forcedLanguage)

Anyone know if the article modal is used anywhere else?

avatar veronikapatel veronikapatel - test_item - 29 Aug 2016 - Tested successfully
avatar veronikapatel
veronikapatel - comment - 29 Aug 2016

I have tested this item successfully on 3c2e211


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

avatar andrepereiradasilva
andrepereiradasilva - comment - 29 Aug 2016

@veronikapatel @truptikagathara @killoltailored please test again because there where some issues in the multilangual associations article modals.

avatar andrepereiradasilva andrepereiradasilva - change - 29 Aug 2016
The description was changed
avatar andrepereiradasilva andrepereiradasilva - edited - 29 Aug 2016
avatar andrepereiradasilva andrepereiradasilva - change - 29 Aug 2016
The description was changed
avatar andrepereiradasilva andrepereiradasilva - edited - 29 Aug 2016
avatar andrepereiradasilva andrepereiradasilva - change - 29 Aug 2016
The description was changed
avatar andrepereiradasilva andrepereiradasilva - edited - 29 Aug 2016
avatar infograf768
infograf768 - comment - 30 Aug 2016

@andrepereiradasilva

There were reasons why we did not let edit language and category in the modal Edit task in Multilang when JLanguageAssociations::isEnabled().

Therefore, when JLanguageAssociations is NOT enabled there should be no restrictions in the modal Edit Task, i.e. it should behave the same as your new Create task in both Monolingual and Multilingual sites.

Now, when JLanguageAssociations::isEnabled() for the Edit task:

A- Case when using the article_modal in the ASSOCIATIONS tab
Category was readonly because we did not know to which language the category was set and therefore we could create an issue if it was changed to a category set to another content language. You do solve this gracefully by presenting in the category field only those set to the language concerned or All, while keeping the language read-only for the article itself. Great!

B- Case when using the article_modal everywhere else
That is a totally different matter and there is still a reason to force the Content Language to be read-only.
For example when using the modal to edit an article selected for a Single Article menu item, we do NOT know if the article itself is associated or not.
Therefore we take the risk of totally breaking the existing article associations by changing the Content Language without a single hint that we are doing that.

This also the case for all use of a modal for Edit Task (contacts, categories, newsfeeds, menu items -in 3.7-).
I suggest you modify your PR. If possible it would check for JLanguageAssociations::isEnabled() and if the article IS associated and display as readonly the language field in that case.

Note: I also found a bug unrelated to this PR
3 articles (or more) are associated: en-GB, it-IT pt-PT
Edit one of them and change its Content Language to All.
Expected Result: that article is no more associated to the 2 others BUT the 2 others remain associated between themselves.
Result: All associations are deleted.
Will create an issue.

avatar andrepereiradasilva
andrepereiradasilva - comment - 30 Aug 2016

@infograf768 ok
so

A- Case when using the article_modal in the ASSOCIATIONS tab

all fine them

B- Case when using the article_modal everywhere else

fixed with f38d89d

// If not in associations modal, block the language change if in edit modal, language not All and associations enabled.

Note: I also found a bug unrelated to this PR

Please make a PR for that them. not related to this.

Please test again and confirm all is fine now.

avatar andrepereiradasilva
andrepereiradasilva - comment - 30 Aug 2016

already done @zero-24

avatar andrepereiradasilva andrepereiradasilva - change - 30 Aug 2016
The description was changed
avatar andrepereiradasilva andrepereiradasilva - edited - 30 Aug 2016
avatar infograf768
infograf768 - comment - 30 Aug 2016

@test

Looks like mostly working.
One remaining issue in multilingual : we can't create a new article in Category set to All, i.e. the category does not display in the dropdown

avatar infograf768
infograf768 - comment - 30 Aug 2016

Forget that issue, the dropdown for categories was not fully displaying until the modal was scrolled down...

avatar andrepereiradasilva
andrepereiradasilva - comment - 30 Aug 2016

Made a change now you can Save & Close directly on create. Previously you needed to press Save, wait for be processed and them click "Save & Close" or "Close".

one less step ;)

image

avatar andrepereiradasilva
andrepereiradasilva - comment - 30 Aug 2016

solved some leftover issues. hope all fine now.

avatar andrepereiradasilva
andrepereiradasilva - comment - 30 Aug 2016

@dgt41 @JoomliC since you worked with this modals before i would really aprecciate your feedback on this.

avatar andrepereiradasilva andrepereiradasilva - change - 30 Aug 2016
The description was changed
avatar andrepereiradasilva andrepereiradasilva - edited - 30 Aug 2016
avatar andrepereiradasilva andrepereiradasilva - change - 30 Aug 2016
The description was changed
avatar andrepereiradasilva andrepereiradasilva - edited - 30 Aug 2016
avatar andrepereiradasilva andrepereiradasilva - edited - 30 Aug 2016
avatar andrepereiradasilva andrepereiradasilva - change - 30 Aug 2016
The description was changed
avatar andrepereiradasilva andrepereiradasilva - edited - 30 Aug 2016
avatar andrepereiradasilva andrepereiradasilva - change - 30 Aug 2016
The description was changed
avatar andrepereiradasilva andrepereiradasilva - edited - 30 Aug 2016
avatar tomartailored tomartailored - test_item - 31 Aug 2016 - Tested successfully
avatar tomartailored
tomartailored - comment - 31 Aug 2016

I have tested this item successfully on

I have tested this item successfully


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

avatar infograf768 infograf768 - test_item - 31 Aug 2016 - Tested successfully
avatar infograf768
infograf768 - comment - 31 Aug 2016

I have tested this item successfully on 325950e

OK here, but this needs more than 2 testers imho.


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

avatar brianteeman
brianteeman - comment - 31 Aug 2016

As it will be a new feature we can flag it for extra testing during the
beta stage

On 31 August 2016 at 11:17, infograf768 notifications@github.com wrote:

I have tested this item successfully on 325950e
325950e

OK here, but this needs more than 2 testers imho.

This comment was created with the J!Tracker Application
https://github.com/joomla/jissues at issues.joomla.org/joomla-cms/11830
https://issues.joomla.org/tracker/joomla-cms/11830.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#11830 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABPH8funi6b-_9sh6yiAart4cx2xQY3tks5qlVTWgaJpZM4JvDcT
.

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/

avatar andrepereiradasilva
andrepereiradasilva - comment - 31 Aug 2016

so 3.7.0 right?

if so i will make similar PR for newsfeeds, contacts, categories (and menus in 3.7.x branch)

avatar brianteeman
brianteeman - comment - 31 Aug 2016

Yes.

avatar andrepereiradasilva andrepereiradasilva - change - 31 Aug 2016
The description was changed
avatar andrepereiradasilva andrepereiradasilva - edited - 31 Aug 2016
avatar andrepereiradasilva
andrepereiradasilva - comment - 31 Aug 2016

Ok all four PR are done:

avatar brianteeman
brianteeman - comment - 31 Aug 2016

I guess you need to do one or weblinks as well

avatar andrepereiradasilva
andrepereiradasilva - comment - 31 Aug 2016

I guess you need to do one or weblinks as well

weblinks does not have single weblink menu item, nor associations, nor modal field

avatar andrepereiradasilva
andrepereiradasilva - comment - 31 Aug 2016

BTW, side comment: with the amount of New Feature labels in PR (https://github.com/joomla/joomla-cms/pulls?q=is%3Apr+label%3A%22New+Feature%22+milestone:%22Joomla+3.7.0%22) i guess 3.7.x will be full of new features 👍 (and 3.6 was only released two months ago ...)

avatar brianteeman
brianteeman - comment - 31 Aug 2016

I guess you don't need to then :)

avatar zero-24
zero-24 - comment - 31 Aug 2016

I have found just a smal glitch.

image

on every page we have rounded ends of the buttons. but not here. This applys to all PRs so i just want to raise it here. Everything else looks great.

And maybe a bigger problem (at least for multilangual sites) ;)

On the new modal the Association tab is missing, i'm not sure if that is expected or not as you told us to test it?:
image

image

avatar dgt41
dgt41 - comment - 31 Aug 2016

@zero-24 fixed with #11832

avatar andrepereiradasilva
andrepereiradasilva - comment - 31 Aug 2016

On the new modal the Association tab is missing, i'm not sure if that is expected or not as you told us to test it?:

That is expected. @infograf768 care to explain why?

avatar zero-24
zero-24 - comment - 31 Aug 2016

As long as it expected i'm ok with that.

avatar infograf768
infograf768 - comment - 1 Sep 2016

That is expected. @infograf768 care to explain why?

For create new article: 2 situations in multilang when associations are implemented.

A- Case when using the article_modal in the ASSOCIATIONS tab
We should not set any associations in the modal as we are creating a new one for an article in a specific language.

B- Case when using the article_modal everywhere else
We do not know if the articles with which we would associate the new article are not already associated with other articles, therefore we could break existing associations.

avatar zero-24
zero-24 - comment - 1 Sep 2016

Thanks. 👍

avatar brianteeman brianteeman - change - 1 Sep 2016
Title
Improvements to article modals (with Create Article button)
[RFC] Improvements to article modals (with Create Article button)
avatar brianteeman brianteeman - edited - 1 Sep 2016
avatar brianteeman brianteeman - change - 1 Sep 2016
Title
[RFC] Improvements to article modals (with Create Article button)
Improvements to article modals (with Create Article button)
avatar brianteeman
brianteeman - comment - 1 Sep 2016

Removed RFC from the title ;)


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

avatar andrepereiradasilva
andrepereiradasilva - comment - 1 Sep 2016

so tested with success @zero-24 ?

avatar zero-24 zero-24 - alter_testresult - 1 Sep 2016 - tomartailored: Tested successfully
avatar zero-24 zero-24 - test_item - 1 Sep 2016 - Tested successfully
avatar zero-24
zero-24 - comment - 1 Sep 2016

I have tested this item successfully on 325950e

Looks good to me.


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

avatar zero-24 zero-24 - change - 1 Sep 2016
Status Pending Ready to Commit
avatar zero-24
zero-24 - comment - 1 Sep 2016

RTC. To be marked as extra testing in the beta phase.


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

avatar joomla-cms-bot joomla-cms-bot - change - 1 Sep 2016
Labels Added: ?
avatar andrepereiradasilva
andrepereiradasilva - comment - 1 Sep 2016

maybe create a "beta extra testing" label ;)

avatar zero-24
zero-24 - comment - 1 Sep 2016

i did not have access to the label thing maybe @brianteeman can help?

avatar brianteeman
brianteeman - comment - 1 Sep 2016

No I dont think we need an extra label. We will just need to make sure to
stress all the new features in the alpha/beta/rc announcements

On 1 September 2016 at 14:00, zero-24 notifications@github.com wrote:

i did not have access to the label thing maybe @brianteeman
https://github.com/brianteeman can help?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#11830 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABPH8bZpzbCbY_s5EunVEdyTpZ5UyEn_ks5qlsxWgaJpZM4JvDcT
.

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/

avatar wilsonge
wilsonge - comment - 3 Sep 2016

Merged with 7d97f7f

avatar wilsonge wilsonge - change - 3 Sep 2016
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2016-09-03 23:06:19
Closed_By wilsonge
avatar wilsonge wilsonge - close - 3 Sep 2016
avatar joomla-cms-bot joomla-cms-bot - close - 3 Sep 2016
avatar joomla-cms-bot joomla-cms-bot - change - 3 Sep 2016
Labels Removed: ?

Add a Comment

Login with GitHub to post a comment