Closed svoop closed 1 year ago
I agree with this. A lot of times the first few words of the description don't actually tell the user much about what the gem does, as in the example above. Seems like an easy fix and it would really improve functionality.
OK, let's try this. Anyone able to open PR? We can keep it on the UI side only for now (not sure if API could be even affected).
I am looking at it but I am new to the codebase so it might take me longer than it should. If no one else has claimed it by the time I figure it out I will open one.
A bit new to this so I am going to ask some potentially silly questions.
Sorry for the extra questions, just want to make sure that I do things in the right way/order.
Thanks for having a go, @stirlhoss. The actual rendering happens in this partial. It ultimately uses this helper which is hardcoded to the description
. You can change this behavior in these two view files only – which is probably what @simi ment with "UI only". (Of course, there might be some tests as well.)
Just ping me if you need any help!
- Is it normal to open a PR for a change even if it isn't done yet?
feel free to open draft PR
- When you say keep it on the UI side are you just referring to this being a change on the Front-end of the application? ie changes to the MVC?
Yup, as @svoop mentioned, changes in some view templates would be needed.
@svoop Thanks for the input. These were the files that I had identified so good to know I was on the right track.
Not sure how late into the week it will take me. I am fumbling around a bit with getting the environment set up but after that is ironed out I think it will be an easy change.
PR is up. It might be an overly simple solution that needs doesn't cover every base. If that is the case I am happy to keep working on it.
I added a unit test to make sure it is functioning and it seems to be without any issues. All tests passed with this change in place. Looking forward to getting some feedback on this.
This seems to have been merged, is there any pending work? @simi @stirlhoss
This seems to have been merged, is there any pending work? @simi @stirlhoss
Nope, this is taken care of and closed.
@stirlhoss Thanks a lot!!
Given the "bridgetown_credentials" gem as an example:
On the gem details page, the "description" is printed – which is totally fine:
However, when searching gems, the result list also uses the "description" and crops it after some 80 chars:
What do you think, wouldn't it be better to print the "summary" instead and use the cropped "description" only as a fallback?