From b51207dd3ef6485c681fdd9210ee793716772593 Mon Sep 17 00:00:00 2001 From: Nuwan Date: Tue, 29 Oct 2024 09:04:58 +0530 Subject: [PATCH] UI style fixes in find friends page --- jam-ui/cypress/e2e/friends/friends-page.cy.js | 5 +++-- jam-ui/src/components/page/JKPeopleFilter.js | 4 ++-- jam-ui/src/components/page/JKPerson.js | 21 ++++++++++--------- .../profile/JKProfileInstrumentsList.js | 8 +++---- 4 files changed, 20 insertions(+), 18 deletions(-) diff --git a/jam-ui/cypress/e2e/friends/friends-page.cy.js b/jam-ui/cypress/e2e/friends/friends-page.cy.js index 5985c2856..ca9307aa9 100644 --- a/jam-ui/cypress/e2e/friends/friends-page.cy.js +++ b/jam-ui/cypress/e2e/friends/friends-page.cy.js @@ -45,7 +45,8 @@ describe('Friends page without data', () => { }).as("getPeople_empty"); }); - it('from_location is unchecked', () => { + //from_location checkbox is hidden for now. so we skip this test for now + it.skip('from_location is unchecked', () => { cy.visit('/friends'); //default api call with from_location parameter turned off @@ -206,7 +207,7 @@ describe('Friends page with data', () => { }); - describe('in mobile', () => { + describe.only('in mobile', () => { beforeEach(() => { cy.viewport('iphone-6'); }); diff --git a/jam-ui/src/components/page/JKPeopleFilter.js b/jam-ui/src/components/page/JKPeopleFilter.js index f03d368d6..551bd0e30 100644 --- a/jam-ui/src/components/page/JKPeopleFilter.js +++ b/jam-ui/src/components/page/JKPeopleFilter.js @@ -345,7 +345,7 @@ function JKPeopleFilter() {
{ > - ) : ( @@ -171,7 +170,10 @@ const JKPerson = props => {
- {biography} + +
{t('person_attributes.about', { ns: 'people' })}
+
{biography}
+

@@ -198,14 +200,13 @@ const JKPerson = props => { */} - - - + onClick={toggleMoreDetails} + dataTestId="btnMore" + cssClasses="btn btn-primary fs--1 px-2 py-1" + title={t('view_profile', { ns: 'people' })} + > + + )} diff --git a/jam-ui/src/components/profile/JKProfileInstrumentsList.js b/jam-ui/src/components/profile/JKProfileInstrumentsList.js index e4bea836b..2f871cc17 100644 --- a/jam-ui/src/components/profile/JKProfileInstrumentsList.js +++ b/jam-ui/src/components/profile/JKProfileInstrumentsList.js @@ -21,14 +21,14 @@ const JKPersonInstrumentsList = ({ instruments, showIcons, showAll, toggleMoreDe }, [showAll]); return ( -
+
{instrumentsToShow && instrumentsToShow.map(instrument => ( -
-
+
+
-
+
{instrument.description}: {proficiencies[instrument.proficiency_level]}