hackgvl / hackgreenville-com

HackGreenville's Website
https://hackgreenville.com
MIT License
16 stars 15 forks source link

Hover tooltip #10

Closed MarkMcDaniels closed 4 years ago

MarkMcDaniels commented 4 years ago

@allella Per @pamelawoodbrowne 's notice, the only way to read the description on a calendar event was to click on it. I wrote a small script that fixes that, but I don't have access to send you a pull request. Can I have access please?

allella commented 4 years ago

@MarkMcDaniels you should be good now. Thanks

allella commented 4 years ago

@MarkMcDaniels I changed the JS include so it's relative to the public directory where the /js/hover-text.js lives.

The /js/hover-text.js is now including in the page, but on the live site when I switch to the Hover branch it doesn't do anything after browser refreshing.

As mentioned in #3, we'll likely prefer to move all the JS and CSS includes into laravel-mix, but we can at least try to get this thing working and then worry about doing things the "Laravel way".

allella commented 4 years ago

Forgot to reference the commit https://github.com/codeforgreenville/hackgreenville-com/commit/8aafa5ea2ebaf19cd17875e9067450216728d886

allella commented 4 years ago

@zach2825 it seems like you had an improvement on this request in the most recent PR and work. I've assigned this to you since it may already be done, or close to done.

zach2825 commented 4 years ago

Hi @allella. I don't think I did anything for the hover text. But, I'd like to. What is this referencing and can we use something like bootstrap popover so we don't have to include another lib?

https://getbootstrap.com/docs/4.0/components/popovers/

allella commented 4 years ago

@zach2825 Sorry, I was thinking this was a thing for the Add to Calendar. Did you load a new calendar tool? If so, I think this issue was that the current calendar doesn't show any more details and if you click it then it does the Add to Calendar for Google Calendar.

@MarkMcDaniels did you have a PR to submit on this?

zach2825 commented 4 years ago

Yeah I did add swal as a pop up what confirmation before adding the calendar event to your personal calendar and in that pop up it shows the event details

MarkMcDaniels commented 4 years ago

I did. I haven't built an environment to test it yet, because I added it at the bottom of a page instead of enqueuing it. Tonight I should have my laravel local env setup so I can actually do some work that I can see results. The script I wrote should work though.

On Mon, Nov 4, 2019 at 10:44 PM Jim Ciallella notifications@github.com wrote:

@zach2825 https://github.com/zach2825 Sorry, I was thinking this was a thing for the Add to Calendar. Did you load a new calendar tool? If so, I think this issue was that the current calendar doesn't show any more details and if you click it then it does the Add to Calendar for Google Calendar.

@MarkMcDaniels https://github.com/MarkMcDaniels did you have a PR to submit on this?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/codeforgreenville/hackgreenville-com/issues/10?email_source=notifications&email_token=AB7E3A2ZFGZNPZIIZCGHZATQSDT3FA5CNFSM4IDAE6X2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDBQBYI#issuecomment-549650657, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB7E3AZCNSEWUKML273VPWTQSDT3FANCNFSM4IDAE6XQ .

MarkMcDaniels commented 4 years ago

Zach, can you explain what you've done to the calendar so that I don't replicate work?

zach2825 commented 4 years ago

Yes, when I upgraded laravel the original calendar plugin was not compatible. For the new calendar I implemnted Fullcalender. For the calendar events I used swal to show the calendar title and body and add a button to add it to the users calendar and a button to close the alert. I can share a few screenshots with you in the morning.

zach2825 commented 4 years ago

Selection_20191103220035

I just realized I had a screenshot already.

zach2825 commented 4 years ago

you should be able to see the changes here https://github.com/codeforgreenville/hackgreenville-com/pull/15

allella commented 4 years ago

@zach2825 I know I've confused this issue by mentioning the Add to Calendar. I think the initial issue involves people wanting to see some of the event info since the calendar truncates the titles.

For instance, in the screenshot it says "Back to Basics And" but I couldn't tell you which group or what the topic is.

So, this was probably asking for a mouseover tip that showed more details. Since hovering isn't so good in mobile I think we'd prefer a pop-up like you have. So, the question is if we can have the pop-up shown the basic event info, a want to see more info, and the Add to Calendar feature.

zach2825 commented 4 years ago

That's what it does right now.the button text is confusing it probably should say "add to my calendar" or something

allella commented 4 years ago

Cool. If it's easy to put a the date, time, link to the meetup URL and homepage in there then I think that would give about everything someone might want. Also, does the pop-up offer a (X) for the corner to close? If we had an (X) I suppose the cancel button isn't needed.

zach2825 commented 4 years ago

Yes, we can make the body of the sweetalert have any html we want.

What do you think about updating the api endpoint to send back the correct url to the event? Right now it just sends back the meetup.com events url.. image

allella commented 4 years ago

@zach2825 the Meetup.com events should now have a valid event link under the "url" field in the events API https://events.openupstate.org/api/gtc?tags=1

The meetup API changed from v2 to v3 so that field was no longer populating.

zach2825 commented 4 years ago

thank you I'll post a PR soon that uses that

zach2825 commented 4 years ago

I think this issue has been resolved. It can be reopened if not. I'll leave it open for a few days in case there's more to talk about on it.