Closed (fixed)
Project:
Project Browser
Version:
1.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
28 Jun 2022 at 05:03 UTC
Updated:
5 Aug 2022 at 14:04 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #2
srishtiiee commentedComment #3
srishtiiee commentedAfter discussing this with the other members, using a separate route for the detailed module page seemed to be a good approach but svelte being an SPA it isn't possible to have two different Drupal routes for a single svelte application.
There are two alternate ways of getting the module pages to work-
Looking for some insights/suggestions over what would be the best thing to do here.
Comment #4
hestenetOne thing to consider is whether some of these good suggestions about the design, layout, and featured information about modules should actually be incorporated into the Drupal.org project pages, instead or in addition to having them be their own pages within the project browser.
It would be good to offer the same insights whether someone is browsing in Drupal or on Drupal.org.
Comment #7
tim.plunkett#4 I agree 100%, but that is out of scope here. I think this issue will be no more than opening the minimal information we have already, but full screen. Deciding what goes ON the page can happen in a follow-up once this plumbing is done.
Had a discussion with Ben, Srishti, and Narendra.
Multi Page App
Pros:
Cons:
Modal
Pros:
Cons:
Despite the cons for modals being a longer list, the pros are compelling enough that we've decided to proceed with a modal approach.
Comment #9
narendrarComment #10
srishtiiee commentedComment #12
bnjmnmPushed a few changes to help with image issues + making the random_data plugin provide more useful content for testing these changes. MR has some comments on additional things.
Comment #13
srishtiiee commentedComment #14
aarti zikre commentedReviewing this
Comment #15
aarti zikre commentedVerified merge request for Drupal 9.5.x dev version
https://git.drupalcode.org/issue/project_browser-3292996/-/tree/3292996-...
Testing Steps:
* Install a new Drupal instance
* Clone Project browser module using git clone https://git.drupalcode.org/project/project_browser.git
* Add & fetch this issue fork’s repository using
git remote add project_browser-3292996 git@git.drupal.org:issue/project_browser-3292996.git
git fetch project_browser-3292996
* Switch to that branch
git checkout 3292996-create-a-skeleton
* Run update.php
* Clear all catches
* Go to /admin/modules/browse
* click on module
Test Result:
New structure gets opene for each module which has detailed information of the module such as use cases, module information, release information, compatibilities, category details, and many more.
Refer SS

Test result : Pass
Can be move to RTBC
Comment #16
aarti zikre commentedComment #17
fjgarlin commentedFound a few things that are going from the mock all the way to the front-end, and shouldn't. Will comment in the MR.
Comment #18
bnjmnmThis isn't working particularly well on mobile. This is from an iPhone simulator:

I didn't notice mobile designs on the Figma, so there might not be a specific design to reference. As long as it doesn't look broken like it currently does at narrow widths, I'm fine with that and the design refinements can happen later. At the moment, however, this could even be a problem on some smaller laptops.
Comment #19
srishtiiee commentedComment #20
fjgarlin commentedI'm happy with how things look code-wise. After checking this issue, I think at some point we might want to split logo vs images into separate fields, but that can be a follow-up issue.
Design-wise, when the categories expand to more than one line, the commas separating them, look weird, as they're placed before the item to show. See the image:

I think we could add the comma after each category, except for the last one.
The other feedback I have is that logos look very small on the detail page (100px height limit). This probably comes from the figma, but wanted to at least mention it.
Once these things are addressed/agreed I'm happy to mark it as RTBC, but maybe we somebody more "frontendy" than me to review the visual side of things.
Comment #21
srishtiiee commentedChanged the design to have a bigger logo on the detail page and added the commas after the li elements.

Comment #22
fjgarlin commentedLooking much better in my opinion.
I noticed a small thing, when there are no categories, the detail page does show "Categories", and then nothing. I guess it shouldn't show at all if there are no categories.

Also, as we are now using the full body on projects, this contains relative paths for the images, which makes them broken. This is not the code's fault, as the D7 api is serving those links as relative, but we do need to implement a mechanism to translate relative to absolute links, if the plugin does not do this for us by default.
I think that a good place to do this would be the "getProjects" method inside the plugin. In there, we massage the data to be in the right format, so we take what the api gives us, and tweak it to what project_browser needs (ie: we transform taxonomy_vocabulary_46 into field_development_status). So I think that'd be a good place to put something like this:
Which would take the body and a base URL and then prepend that to any part of the
$project['body']['value']that contains a relative URL. See the answer to this question in stackoverflow as reference: https://stackoverflow.com/questions/48836281/replace-all-relative-urls-w...This could be filed as a separate issue altogether, but I think that shipping a page that looks like the below would look weird:

I am happy to help with the code on this part if you need it (I am doing something very similar in the gitlab migration scripts from www.drupal.org to gitlab). So, if you want you can assign it to me and I can complete that part, but also you are totally free to give it a go yourself, I'm just offering :-)
Comment #23
srishtiiee commentedI'll get the "Categories" label to show conditionally. And I had discussed the relative URL issue with Tim earlier and we had reached a conclusion that it is beyond the scope of this issue which only aims at creating the structure for the details page. So I think we should probably create another issue for this and there are many more follow up issues that we'll need to address once a basic structure for the page has landed.
Comment #24
fjgarlin commentedMakes perfect sense to me. I'll create the follow up issue then and I can work on it
once this one is merged.Great work here!
Comment #25
fjgarlin commentedFollow-up issue: #3298575: URLs in body for projects are relative in the Mock plugin and creates 404s links and broken images
Comment #26
srishtiiee commentedComment #27
fjgarlin commentedI have checked the code and tested the functionality via drupalpod and I think it ticks all the boxes.
All the feedback in the MR was addressed so I'm marking this as RTBC but happy if somebody else wants to give it a once over too.
Comment #28
tim.plunkettI have a few points of feedback, but it's looking excellent overall and it's very close
Comment #29
srishtiiee commentedComment #30
tim.plunkettI'm working on tests. Found some weirdness, will follow-up shortly
Comment #31
tim.plunkettEverything was working correctly in the "real" code, just some weirdness where the mock stores the title in two different places in two different formats. Not worth untangling now, but the test data needed to be adjusted.
If someone else could re-review this, I would be happy to commit it!
Comment #32
fjgarlin commentedComment #33
fjgarlin commentedI checked the comments and code since my last review and re-checked the whole MR overall and things look good from my point of view. Good finds with the test data.
I also re-tested everything via drupalpod and everything is looking really good.
I only raised a really small thing related to the breadcrumb. I think there shouldn't be a link to the same page we're in, it should appear in the breadcrumb, but not as a link.
After this, I think it can be marked as RTBC.
Comment #34
srishtiiee commentedComment #35
fjgarlin commentedAs the change was really minimal, I only checked the commit and that it contained the newly compiled files, which it does, so I'm marking this RTBC. Great work!
Comment #37
tim.plunkettThis is a huge step forward for PB! Thanks @srishtiiee for the great work, and to everyone else for helping.