-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sidebar tags card #6124
sidebar tags card #6124
Conversation
I am implementing the limit to display only 2 tags at a time and display the rest with clicked on "#more". |
The + button looks weird at the bottom of wiki page sidebar. Can we shift it to the top with other buttons and we can focus on the tags field when user clicks on it? Or, if you have any design in mind? And, yes, showing lesser tags would be great? Let's have 2 tags for now. Thank you! |
The button on the design draft looks softer 🤔 |
softer as in?
Yes the pkus sign will go up and I'll be showing just 2 tags at the beginning. |
This is looking awesome! Can we make the border color the same lighter grey
as the circle-buttons above it? Thanks! Very exciting!!!
…On Tue, Aug 13, 2019 at 5:02 AM Gautami Gupta ***@***.***> wrote:
I am currently implementing the tags card toggle. Like displaying the
remaining tags when clicked on "# more"
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#6124?email_source=notifications&email_token=AAAF6J66LZ55QQKLF5CFBZDQEJ2ATA5CNFSM4IKVM5AKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4FAYGI#issuecomment-520752153>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAF6J6HLUNZXGXVCOTJCGDQEJ2ATANCNFSM4IKVM5AA>
.
|
Actually can't we use the "card" classes from Bootstrap for this box, just like we do on tag cards? https://publiclab.org/tags That'd be nice! |
Hi @jywarren! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @gautamig54, I left some comments.
app/views/tag/_tagging.html.erb
Outdated
} | ||
</style> | ||
|
||
<style> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please shift all css in a single style tag. This will make the page little lighter in size.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gautamig54 Also for the smaller devices, the design is breaking. Attached below is the screenshot.
To keep the design consistent, I suggest shifting x people
under the tag name for every card. For smaller devices the ellipsis menu ...
is shifting to another line and not coming properly. Please fix it.
Also, I feel that the information displayed on clicking the ellipsis is coming way lower than it should. There is quite a distance between the ellipsis and the detail shown.
Finally, I observed that if there are more than 2 tags then along side the +
button,x more
appears. But on clicking it nothing happens, I believe it should show the remaining tags?
Thanks @Anupam-dagar for the review. I'll make the suggested changes :) |
But for smaller names, they will appear in different lines. Same line for small name and different line for bigger name. This leads to a bad UI. I will leave this for further discussion from more involved contributors. |
Hi @gautamig54 -- do you think we can use the same Bootstrap card class as the tag cards? I think that'd be nice for consistency! Thank you! |
I have fixed the minor changes and have added the card class as well for consistency. |
The test fails due to some errors in profile page. @CleverFool77 can you look into this? |
Ah, ok - but it doesn't look like we are using standard Bootstrap card
classes, are we? Would you be able to change over to that, so it matches
the tag cards? Thank you!
…On Mon, Aug 26, 2019 at 1:19 PM Gautami Gupta ***@***.***> wrote:
This is the screenshot of the latest version of the PR.
[image: Screen Shot 2019-08-26 at 10 48 01 PM]
<https://user-images.githubusercontent.com/35326753/63709044-a2c26380-c853-11e9-8c8e-0a745241f624.png>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#6124?email_source=notifications&email_token=AAAF6J3GWAOLTDDPPCH3II3QGQF7NA5CNFSM4IKVM5AKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5FA72I#issuecomment-524947433>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAF6JZIWQPK4BYM2NKK5U3QGQF7NANCNFSM4IKVM5AA>
.
|
Hi @gautamig54 -- would you look through the tests and copy the errors into here, and see if you can go through them one by one to resolve them? Thank you so much! |
Hi @gautamig54 I'm restarting the build and checking it for tests. |
System test failure is not related. Checking it for functional and Integration testing. |
Hi @gautamig54 I see what's the problem is. The reset key and ban button in the profile page is not visible . And that's where we are getting the error. System test failure is not related. |
Hi @gautamig54, do you have any updates here? This is so close, let's just wrap the last couple things and get it merged! Thank you! |
Hi @jywarren! I am not sure if the test failures are related to this issue. Can we merge this? |
hi gautami! Did you see my question about the bootstrap card class types?
Thanks!
…On Sat, Aug 31, 2019, 8:55 AM Gautami Gupta ***@***.***> wrote:
Hi @jywarren <https://github.com/jywarren>! I am not sure if the test
failures are related to this issue. Can we merge this?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#6124?email_source=notifications&email_token=AAAF6J6YRIR5QTYSZ6CQLZ3QHJSZZA5CNFSM4IKVM5AKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5TMHTY#issuecomment-526828495>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAF6J6HHWTMTULISSBOWT3QHJSZZANCNFSM4IKVM5AA>
.
|
Yes. I changed the class to "cards" for consistency
…On Sat, Aug 31, 2019, 18:47 Jeffrey Warren ***@***.***> wrote:
hi gautami! Did you see my question about the bootstrap card class types?
Thanks!
On Sat, Aug 31, 2019, 8:55 AM Gautami Gupta ***@***.***>
wrote:
> Hi @jywarren <https://github.com/jywarren>! I am not sure if the test
> failures are related to this issue. Can we merge this?
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <
#6124?email_source=notifications&email_token=AAAF6J6YRIR5QTYSZ6CQLZ3QHJSZZA5CNFSM4IKVM5AKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5TMHTY#issuecomment-526828495
>,
> or mute the thread
> <
https://github.com/notifications/unsubscribe-auth/AAAF6J6HHWTMTULISSBOWT3QHJSZZANCNFSM4IKVM5AA
>
> .
>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#6124?email_source=notifications&email_token=AINQWINXG4TUZOOKFT5P5Q3QHJVOJA5CNFSM4IKVM5AKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5TMTKY#issuecomment-526829995>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AINQWILRPU4HYSRAP5PYEOTQHJVOJANCNFSM4IKVM5AA>
.
|
I am using the bootstrap cards class with few variations like border radius
and padding.
…On Sat, Aug 31, 2019, 20:16 gautami gupta ***@***.***> wrote:
Yes. I changed the class to "cards" for consistency
On Sat, Aug 31, 2019, 18:47 Jeffrey Warren ***@***.***>
wrote:
> hi gautami! Did you see my question about the bootstrap card class types?
> Thanks!
>
> On Sat, Aug 31, 2019, 8:55 AM Gautami Gupta ***@***.***>
> wrote:
>
> > Hi @jywarren <https://github.com/jywarren>! I am not sure if the test
> > failures are related to this issue. Can we merge this?
> >
> > —
> > You are receiving this because you were mentioned.
> > Reply to this email directly, view it on GitHub
> > <
> #6124?email_source=notifications&email_token=AAAF6J6YRIR5QTYSZ6CQLZ3QHJSZZA5CNFSM4IKVM5AKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5TMHTY#issuecomment-526828495
> >,
> > or mute the thread
> > <
> https://github.com/notifications/unsubscribe-auth/AAAF6J6HHWTMTULISSBOWT3QHJSZZANCNFSM4IKVM5AA
> >
> > .
> >
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#6124?email_source=notifications&email_token=AINQWINXG4TUZOOKFT5P5Q3QHJVOJA5CNFSM4IKVM5AKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5TMTKY#issuecomment-526829995>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AINQWILRPU4HYSRAP5PYEOTQHJVOJANCNFSM4IKVM5AA>
> .
>
|
Ah, i see! Actually, perhaps I feel the customizations aren't critical and
there is some advantage to their being 'standard' -- would you mind
allowing them to be default styled cards? Thank you, Gautami!
On Sat, Aug 31, 2019 at 10:50 AM Gautami Gupta <notifications@github.com>
wrote:
… I am using the bootstrap cards class with few variations like border radius
and padding.
On Sat, Aug 31, 2019, 20:16 gautami gupta ***@***.***>
wrote:
> Yes. I changed the class to "cards" for consistency
>
> On Sat, Aug 31, 2019, 18:47 Jeffrey Warren ***@***.***>
> wrote:
>
>> hi gautami! Did you see my question about the bootstrap card class
types?
>> Thanks!
>>
>> On Sat, Aug 31, 2019, 8:55 AM Gautami Gupta ***@***.***>
>> wrote:
>>
>> > Hi @jywarren <https://github.com/jywarren>! I am not sure if the test
>> > failures are related to this issue. Can we merge this?
>> >
>> > —
>> > You are receiving this because you were mentioned.
>> > Reply to this email directly, view it on GitHub
>> > <
>>
#6124?email_source=notifications&email_token=AAAF6J6YRIR5QTYSZ6CQLZ3QHJSZZA5CNFSM4IKVM5AKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5TMHTY#issuecomment-526828495
>> >,
>> > or mute the thread
>> > <
>>
https://github.com/notifications/unsubscribe-auth/AAAF6J6HHWTMTULISSBOWT3QHJSZZANCNFSM4IKVM5AA
>> >
>> > .
>> >
>>
>> —
>> You are receiving this because you were mentioned.
>> Reply to this email directly, view it on GitHub
>> <
#6124?email_source=notifications&email_token=AINQWINXG4TUZOOKFT5P5Q3QHJVOJA5CNFSM4IKVM5AKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5TMTKY#issuecomment-526829995
>,
>> or mute the thread
>> <
https://github.com/notifications/unsubscribe-auth/AINQWILRPU4HYSRAP5PYEOTQHJVOJANCNFSM4IKVM5AA
>
>> .
>>
>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#6124?email_source=notifications&email_token=AAAF6J52OTVI5TQQUPVGKWDQHKAKVA5CNFSM4IKVM5AKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5TOGCA#issuecomment-526836488>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAF6J5M3STEZQNLPBP3PBLQHKAKVANCNFSM4IKVM5AA>
.
|
<% end %> | ||
|
||
<% elsif tag.class == UserTag && (tag.name[0..4] != "oauth" || (logged_in_as(['admin', 'moderator']) || (current_user && current_user.uid == tag.uid))) %> | ||
<% tags.limit(2).each do |tag| %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here, I think this may cause some trouble - it looks like we would need to switch by tag.class
outside this iterator, so profile tags are unaffected. Then, we can split off the first 2, within the NodeTag
block, and show those as cards. The rest we can show, still in that block, the previous way.
OK, I worked on this a good bit to get it to render well with many different combinations of tags, different screen sizes, etc. I hope this gets most of the edge cases, but it's not perfect... we may need to do some follow-up tweaks. In any case, here's what I'm seeing locally: Mobile width initially: And expanded: Full width initially: And expanded: |
Hm, I couldn't push here, so I'm opening a new PR! Moving to: #6315 Thanks all! This was great work. Glad to be able to finalize and merge it! 👍 |
Fixes #6005 (<=== Add issue number here)
Make sure these boxes are checked before your pull request (PR) is ready to be reviewed and merged. Thanks!
rake test
@publiclab/reviewers
for help, in a comment belowIf tests do fail, click on the red
X
to learn why by reading the logs.Please be sure you've reviewed our contribution guidelines at https://publiclab.org/contributing-to-public-lab-software
Thanks!