NEARFoundation / stats.gallery

Big & fun NEAR account analytics!
https://stats.gallery
GNU General Public License v3.0
33 stars 18 forks source link

dynamic text for twitter embed #70

Closed akshajb closed 2 years ago

akshajb commented 2 years ago

Added dynamic text for twitter share on each section.

encody commented 2 years ago

Although this updates the tweet text with content that matches the shared link, the shared link is still incorrect. If I load /leaderboards, and then navigate to /overview, and then click the Tweet button, it still shares the /leaderboards link even though I was on /overview.

akshajb commented 2 years ago

Although this updates the tweet text with content that matches the shared link, the shared link is still incorrect. If I load /leaderboards, and then navigate to /overview, and then click the Tweet button, it still shares the /leaderboards link even though I was on /overview.

I was only able to check it on my local and felt it was not updating because of all the errors that are coming up in the console. the URL does change if you refresh the page. Is it the same issue on live as well ?

encody commented 2 years ago

@akshajb Oh, do you have the server set up on your local?

akshajb commented 2 years ago

@akshajb Oh, do you have the server set up on your local?

i just followed the steps for the frontend i am assuming.

encody commented 2 years ago

@akshajb The frontend needs a backend to communicate with to work properly. Let me know if you need any help setting it up.

akshajb commented 2 years ago

No problems, Let me look at the server repo, and try to set that up. The only query i have is, once i find the bug and am able to fix it, I create a new PR right ?

encody commented 2 years ago

You can add commits to this PR

akshajb commented 2 years ago

Thank you

akshajb commented 2 years ago

@encody I am using WSL as my dev env and have postgres installed. I was not able to import the sql dump though. I might need some help to get the server set up.

akshajb commented 2 years ago

When I try to import the file into the database that I created I get the following error. image

encody commented 2 years ago

Oops, I ran the export with incorrect settings. I'll get that fixed soon, although I am not able to right now. Thanks for pointing this out.

encody commented 2 years ago

Closing for inactivity.