Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Part of #1921152: META: Start providing tour tips for other core modules.
Problem/Motivation
Write tour integration for User edit page
Proposed resolution
Create tour yml files for the user edit screen in 'user/*/edit'.
Remaining tasks
Provide patch of tour integration for the user edit page.
User interface changes
New tours
API changes
None
Technical pointers when creating tour tips
See: https://drupal.org/node/1921152#tour-tips-tech-note for tech notes on making tour tips.
Comment | File | Size | Author |
---|---|---|---|
#65 | 2044399-65.patch | 11.55 KB | _utsavsharma |
#65 | interdiff-2044399_61-65.txt | 1.28 KB | _utsavsharma |
#61 | 2044399-61.patch | 11.52 KB | ranjith_kumar_k_u |
#57 | interdiff_55-57.txt | 1.21 KB | ridhimaabrol24 |
#57 | 2044399-57.patch | 11.55 KB | ridhimaabrol24 |
Comments
Comment #1
lea.refice CreditAttribution: lea.refice commentedI plan to continue working on this issue.
Comment #2
nick_schuch CreditAttribution: nick_schuch commentedTour needs tests since we now have #2028535
Comment #3
nick_schuch CreditAttribution: nick_schuch commentedHi lea.refice,
How are your travelling with this issue? Is there anything I can help with?
Nick
Comment #4
nick_schuch CreditAttribution: nick_schuch commentedTagging for tour issue tracking.
Comment #5
Boaah CreditAttribution: Boaah commentedSince lea.reflce has not done anything yet I have allowed myself to create my first drupal core patch which prepares the tour file for further development.
The patch creates the tour.tour.user-edit file for the user core module in the config folder. It also contains some simple tour tips.
Comment #6
larowlanLets make this something more specific - eg 'User edit'. Same for the label.
Email isn't needed for login. But it is required to be unique. Lets say that.
Lets expand on this. To explain why a blocked account is useful. Also can we link to the settings page where they can set the default value for new users.
You need to use a token here, sites installed in /drupal won't link with /admin/people/roles. You can use [site:url] then append the path. Grant and revoke 'permissions' instead of access perhaps?
Needs newline at end of file
This should match the id in the filename (user-edit). I think thats why it doesn't show up when I visit user/*/edit.
Comment #7
Boaah CreditAttribution: Boaah commentedThank you for your feedback! I tried to improve the tour with the help of your suggestions.
Comment #9
Boaah CreditAttribution: Boaah commentedFix for the last broken patch.
Comment #10
floydm CreditAttribution: floydm commentedThe attached patch adds a test for the user/*/edit tour to the patch in #9.
Comment #11
nielsonm CreditAttribution: nielsonm commentedWorks for me.
Comment #12
batigolixThe code may work but the content & wording needs a proper review first
Comment #13
nick_schuch CreditAttribution: nick_schuch commentedI will have a chat with @pameeela about reviewing the wording on this one. She has become the moderator for the tour content.
Comment #14
Anonymous (not verified) CreditAttribution: Anonymous commentedFor me it makes sense to use the same tour for adding users.
Comment #15
larowlanNote #1918768: Refactor tour module to use routes instead of paths just landed
Comment #16
nick_schuch CreditAttribution: nick_schuch commentedComment #17
nick_schuch CreditAttribution: nick_schuch commentedHere is the latest patch with includes:
- Update of paths to routes.
- Removal of overlay tips and references in test coverage.
Ready for content review.
Comment #19
nick_schuch CreditAttribution: nick_schuch commentedIn this patch I have fixed the test coverage.
Comment #21
nick_schuch CreditAttribution: nick_schuch commentedI have updated the schema as per previous fail. Also included a fresh interdiff form before the fail.
Comment #24
webchickThis one seems like a good thing to do, but postponed on #1921152-109: META: Start providing tour tips for other core modules. for now.
Comment #25
mgiffordComment #31
Farnoosh CreditAttribution: Farnoosh as a volunteer commentedI am working on this issue in Drupalcon Nashville
Comment #32
Farnoosh CreditAttribution: Farnoosh as a volunteer commentedComment #33
Farnoosh CreditAttribution: Farnoosh as a volunteer commentedComment #34
Farnoosh CreditAttribution: Farnoosh as a volunteer commentedComment #35
DrupalMattS CreditAttribution: DrupalMattS at Maricopa Community Colleges commentedThe file should be added to the config/install folder. Sending back for new patch file
Comment #36
Farnoosh CreditAttribution: Farnoosh as a volunteer commentedComment #37
Farnoosh CreditAttribution: Farnoosh as a volunteer commentedComment #38
Farnoosh CreditAttribution: Farnoosh as a volunteer commentedComment #39
Farnoosh CreditAttribution: Farnoosh as a volunteer commentedComment #40
mkindred CreditAttribution: mkindred commented#36 works well.
Is 'determinates' a verb? Maybe it should be 'determines'?
Comment #42
Farnoosh CreditAttribution: Farnoosh as a volunteer commentedComment #44
DrupalMattS CreditAttribution: DrupalMattS at Maricopa Community Colleges commentedUpdated some verbiage and classes to make the tour point to more appropriate areas of the page. Also moved the yml file to the tour module as appearance is not one that can be uninstalled and reinstalled to add the tour configuration.
Comment #45
DrupalMattS CreditAttribution: DrupalMattS at Maricopa Community Colleges commentedComment #46
DrupalMattS CreditAttribution: DrupalMattS at Maricopa Community Colleges commentedComment #48
sjpeters79 CreditAttribution: sjpeters79 commentedAdded a tour of the user page (/admin/people) inside of user/config/optional
Comment #49
mcdwayne CreditAttribution: mcdwayne commented@ sjpeters79 tested tour-user-edit-create-page-2044399-48.patch
2 issues found:
1) In the 2nd tip, it refers to Language when it should refer to User
I was going to make a patch but there is also another behavior I can't seem to fix so I thought I would bring that up here instead. .
2)
It shows me the number of steps as being 7 instead of 5.
See images
https://i.imgur.com/ZquzEjf.png"
https://imgur.com/5iaRQIW"
Comment #50
mcdwayne CreditAttribution: mcdwayne commentedFirst time doing this, so forgive me if not correct, happy to fix
Working on both
tour-user-edit-create-page-2044399-42.patch
and
tour-user-edit-create-page-2044399-48.patch
I produced the attached patch.
I separated tour-user-edit-create-page-2044399-42.patch into 2 files, tour.tour.user-create.yml and tour.tour.user-edit.yml for easier customization of each.
I fixed the previously mention issues with tour-user-edit-create-page-2044399-48.patch
Comment #55
ridhimaabrol24 CreditAttribution: ridhimaabrol24 at Material for Drupal India Association commentedRerolled patch for 9.1.x. Added tests for all the 3 pages.
Also removed tour tip for "Roles" on User add and edit page as this is not present in the UserCreateTest and UserEditTest as well. The "Roles" element is not found either on the minimal or the standard profile while running php unit tests.
All the other tips for all the pages can now be seen on the respective pages.
Please review the patch!
Comment #57
ridhimaabrol24 CreditAttribution: ridhimaabrol24 at Material for Drupal India Association commentedFixing failed test cases.
Comment #61
ranjith_kumar_k_u CreditAttribution: ranjith_kumar_k_u at Zyxware Technologies commentedRe-rolled #57 for 9.4
Comment #64
smustgrave CreditAttribution: smustgrave at Mobomo commentedD10 version needed
At this time we would need a D10.1.x patch or MR for this issue.
Commit check failures
The last patch doesn't pass commit checks, could you make sure to run
./core/scripts/dev/commit-code-check.sh
before uploading a patch to make sure there are no issues with code formatting. see https://www.drupal.org/docs/develop/development-tools/running-core-devel...Comment #65
_utsavsharma CreditAttribution: _utsavsharma at OpenSense Labs commentedFixed the CCF for #61.
Comment #67
quietone CreditAttribution: quietone at PreviousNext commentedThis extension is being deprecated, see #3336033: [Meta] Tasks to deprecate Tour module. It will be removed from core and moved to a contrib project, #3376099: [11.x] [Meta] Tasks to remove Tour.
This is now Postponed. The status is set according to two policies. The Remove a core extension and move it to a contributed project and the Extensions approved for removal policies.
Comment #68
quietone CreditAttribution: quietone at PreviousNext commented