On the Developer Profile page, when clicking on the pills at the top section (under the introductory text), it navigates / scrolls to the Affiliation section. This is implemented in Toprow/index.js:
We should write a simple function, that maps each tag to the first Affiliation where said tag is mentioned. For example, supposed the individual has an affiliations like the following, then clicking on the "Data Science" pill should scroll to the Algoritma section since it's the first instance of affiliation with that in its tags list.
So really the function needs to only output the right id corresponding to the pill (eg () => scrollToSection(aff-2) and default to scrolling to Affiliations if not found (if none of the affiliations contain the corresponding pill in their tags array).
Current Behavior
On the Developer Profile page, when clicking on the pills at the top section (under the introductory text), it navigates / scrolls to the Affiliation section. This is implemented in
Toprow/index.js
:Desired Behavior
We should write a simple function, that maps each tag to the first Affiliation where said tag is mentioned. For example, supposed the individual has an affiliations like the following, then clicking on the "Data Science" pill should scroll to the
Algoritma
section since it's the first instance of affiliation with that in itstags
list.In
Affiliations/index.js
, there is anid
associated to each affiliations:So really the function needs to only output the right
id
corresponding to the pill (eg() => scrollToSection(
aff-2)
and default to scrolling toAffiliations
if not found (if none of the affiliations contain the corresponding pill in their tags array).