plots2 icon indicating copy to clipboard operation
plots2 copied to clipboard

Fix "Show 0 more" on inline people lists

Open SidharthBansal opened this issue 8 years ago • 17 comments

Please describe the problem (or idea)

Show 0 more is present in the people's list

What happened just before the problem occurred? Or what problem could this idea solve? If there is no more stuff, the text should not appear

What did you expect to see that you didn't?

image

How to Solve:

You can check out @kevinzluo's work in https://github.com/publiclab/plots2/pull/3980 for solving this.

The file which would require changes will be https://github.com/publiclab/plots2/blob/master/app/views/grids/_people.html.erb

Please show us where to look

https://publiclab.org/w/power-tags#Inline+power+tags

SidharthBansal avatar Jan 28 '18 08:01 SidharthBansal

Hey, I would like to work on this.

Ankit-Singla avatar Jan 31 '18 05:01 Ankit-Singla

I As the codes are overlapping in #2150 and #2151 so @Ankit-Singla is working on it

SidharthBansal avatar Feb 02 '18 08:02 SidharthBansal

Hi, has this issue been fixed? I would like to work on it if it hasn't yet.

jonxuxu avatar Nov 30 '18 20:11 jonxuxu

@JonathanXu1 I was testing out this issue for #2150 (PR #3980 ) and it looks to be already fixed.

Here is a table with 10 items: image

Here is a table w/ more than 10 items: showmorelessagain

Just want to clarify that I was not the one who fixed the show 0 more; it was already fixed when I made my PR.

kevinzluo avatar Nov 30 '18 21:11 kevinzluo

Hi @kevinzluo could you add a screenshot here showing the show more/less grid in action for people and add your PR number too(for reference). Thanks!

grvsachdeva avatar Nov 30 '18 22:11 grvsachdeva

I don't think the issue is yet solved, please check https://publiclab.org/w/power-tags#Inline+power+tags

SidharthBansal avatar Dec 06 '18 20:12 SidharthBansal

@kevinzluo I think you aren't experiencing the error because section does not include the <%= users.length - 10 %> attribute in the show more tag

jonxuxu avatar Dec 10 '18 14:12 jonxuxu

Thanks for the heads up. I didn't realize there were multiple partials for grids :smiley:. The ones i was using were the notes grids and never checked the people grids.

kevinzluo avatar Dec 10 '18 14:12 kevinzluo

If anyone knows the solution and wants to send a patch then it will be great

SidharthBansal avatar Dec 10 '18 15:12 SidharthBansal

@SidharthBansal I've sent a patch on #4253

jonxuxu avatar Dec 10 '18 15:12 jonxuxu

@jazdao you wanna try this?

grvsachdeva avatar Mar 13 '19 12:03 grvsachdeva

@SidharthBansal Can I try this if not yet solved?

vansjyo avatar Mar 14 '19 03:03 vansjyo

Yeah sure Vanshika

On Thu, Mar 14, 2019, 9:28 AM Vanshika Gupta [email protected] wrote:

@SidharthBansal https://github.com/SidharthBansal Can I try this if not yet solved?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/publiclab/plots2/issues/2151#issuecomment-472695573, or mute the thread https://github.com/notifications/unsubscribe-auth/AUACQ4wBoiqfVqPGChtrVTvwjBIQHx6jks5vWcjygaJpZM4RvnGh .

SidharthBansal avatar Mar 14 '19 05:03 SidharthBansal

got for it! @vansjyo 😊🎉

siaw23-retired avatar Mar 14 '19 06:03 siaw23-retired

We can replace the 9 with a 10 and I suppose the problem in this issue should be solved. What do you think?

https://github.com/publiclab/plots2/blob/7a0660a3fcbb40250394b68405299c41f894f7f9/app/views/grids/_people.html.erb#L21-L23

vansjyo avatar Mar 14 '19 08:03 vansjyo

@SidharthBansal Is there anything more that you are expecting from this fix? If not, I'll open a PR, else please let me know. Thanks.

vansjyo avatar Mar 15 '19 17:03 vansjyo

Yes @vansjyo, feel free to open a PR. Thanks!

grvsachdeva avatar Mar 16 '19 12:03 grvsachdeva