treetracker-web-map-client icon indicating copy to clipboard operation
treetracker-web-map-client copied to clipboard

The like button is wrong

Open dadiorchen opened this issue 2 years ago • 6 comments
trafficstars

Description

image

The number on the like button is wrong, please replace it with real data (refer to the like button on the original tree page

To reproduce

  • Go to https://beta-map.treetracker.org/trees/519050?bounds=-13.201940059661867,8.451551461465531,-13.186490535736086,8.466960251068226

  • Click expand button


Some hints:

  • Please read our readme for more information/guide/tutorial.
  • For design guidelines checkout our Figma design.
  • Here is an engineering book in Greenstand.
  • To know more about our organization, visit our website.
  • If you want to join the slack community (some resources need the community member's permission), please leave your email address.
  • More issues in this project: https://github.com/orgs/Greenstand/projects/26

dadiorchen avatar Dec 26 '22 08:12 dadiorchen

@RubenSmn I could take this.

salindae25 avatar Dec 28 '22 15:12 salindae25

@dadiorchen where can we get the likes data from? There is no key in tree/planter/organization objects received from the API that refers to the likes data?

khalatevarun avatar Jan 30 '23 18:01 khalatevarun

We are using the Facebook like api, so data is on their server, we do the integration on client side, but we have plan to implement it by ourselves

dadiorchen avatar Jan 31 '23 02:01 dadiorchen

Duplicated with #1560

dadiorchen avatar Jul 01 '23 01:07 dadiorchen

Sorry, wrong operation, this is a valid issue, and it is open to contributors

dadiorchen avatar Jul 01 '23 01:07 dadiorchen

I checked there is no like(field) in the tree database so we can't do it first, we need to add the like (field) to the tree database then we have to create a new api(patch) for like the tree or increase count after this, we can get the real-time likes @dadiorchen

MohitBansal321 avatar Sep 16 '23 08:09 MohitBansal321