Skip to content

Commit

Permalink
feat: Text change from Member to People
Browse files Browse the repository at this point in the history
  • Loading branch information
NivedhaSV authored and yosuva-rajendran committed Dec 17, 2024
1 parent 11c692a commit a9c0565
Show file tree
Hide file tree
Showing 43 changed files with 104 additions and 104 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,6 @@ npm run test

# Steps to run directory admin frontend service locally

#### This app is used by admin to approve/reject/edit member and team join requests.
#### This app is used by admin to approve/reject/edit people and team join requests.

Follow the instructions [here](https://github.com/memser-spaceport/pln-directory-portal) to setup and run the directory admin frontend.
4 changes: 2 additions & 2 deletions __tests__/page/changelog/changelog-list.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ jest.mock('@/utils/constants', () => ({
</div>`,
},
{
title: 'Version 2.0.3 - Improved Member Search',
title: 'Version 2.0.3 - Improved People Search',
tag: 'Improvements',
date: '03, Apr 2024',
shortContent: `<div>
<ul style="list-style: disc; font-size: 14px; line-height:23px;">
With this update, in addition to the current capability of searching by member name, this enhancement will allow the members to be searched using a team name as well. Every member of the team would be returned in the search result.
With this update, in addition to the current capability of searching by people name, this enhancement will allow the members to be searched using a team name as well. Every people of the team would be returned in the search result.
</ul></div>`,
},
],
Expand Down
2 changes: 1 addition & 1 deletion __tests__/page/home/featured/featured.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ describe('Featured Component', () => {
});
});

it('calls onMemberCardClicked when a member card is clicked', () => {
it('calls onMemberCardClicked when a people card is clicked', () => {
render(<Featured featuredData={featuredData} isLoggedIn={true} userInfo={mockUserInfo} />);
const memberLink = screen.getByText('John Doe');
fireEvent.click(memberLink);
Expand Down
4 changes: 2 additions & 2 deletions app/actions/sign-up.actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { cookies } from 'next/headers';
* 2. Formats the form data to match the API requirements.
* 3. Validates the formatted form data.
* 4. Checks for duplicate email addresses.
* 5. Handles image upload if a member profile image is provided.
* 5. Handles image upload if a people profile image is provided.
* 6. Creates a registration request with the formatted data.
* 7. Returns the result of the form submission.
*
Expand Down Expand Up @@ -69,7 +69,7 @@ export async function signUpFormAction(data: any, recaptchaToken: string) {
// if (formattedObj.memberProfile && formattedObj.memberProfile.size > 0) {
// try {

// // Uploads the member profile image into s3 and attaches the imageUid and imageUrl
// // Uploads the people profile image into s3 and attaches the imageUid and imageUrl
// const imgResponse = await saveRegistrationImage(formattedObj.memberProfile);
// const image = imgResponse?.image;
// formattedObj.imageUid = image.uid;
Expand Down
2 changes: 1 addition & 1 deletion app/changelog/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function Changelog() {
export const metadata: Metadata = {
title: 'Changelog | Protocol Labs Directory',
description:
'The Protocol Labs Directory helps network members orient themselves within the network by making it easy to learn about other teams and members, including their roles, capabilities, and experiences.',
'The Protocol Labs Directory helps network people orient themselves within the network by making it easy to learn about other teams and people, including their roles, capabilities, and experiences.',
openGraph: {
type: 'website',
url: process.env.APPLICATION_BASE_URL,
Expand Down
4 changes: 2 additions & 2 deletions app/irl/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ const getPageData = async (searchParams: any) => {
guestDetails.topics = topics;
guestDetails.eventsForFilter = getFilteredEventsForUser(loggedInUserEvents, currentEvents, isLoggedIn, userInfo);

// Fetch member preferences if the user is logged in
// Fetch people preferences if the user is logged in
if (isLoggedIn) {
const memberPreferencesResponse = await getMemberPreferences(userInfo.uid, authToken);
if (memberPreferencesResponse.isError) {
Expand Down Expand Up @@ -175,7 +175,7 @@ const getPageData = async (searchParams: any) => {
export const metadata: Metadata = {
title: 'IRL Gatherings | Protocol Labs Directory',
description:
'The Protocol Labs Directory helps network members orient themselves within the network by making it easy to learn about other teams and members, including their roles, capabilities, and experiences.',
'The Protocol Labs Directory helps network people orient themselves within the network by making it easy to learn about other teams and people, including their roles, capabilities, and experiences.',
openGraph: {
type: 'website',
url: process.env.APPLICATION_BASE_URL,
Expand Down
4 changes: 2 additions & 2 deletions app/members/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const MemberDetails = async ({ params }: { params: any }) => {
return (
<div className={styles?.memberDetail}>
<div className={styles?.memberDetail__breadcrumb}>
<BreadCrumb backLink="/members" directoryName="Members" pageName={member?.name ?? ''} />
<BreadCrumb backLink="/members" directoryName="People" pageName={member?.name ?? ''} />
</div>
<div className={styles?.memberDetail__container}>
<div>
Expand Down Expand Up @@ -132,7 +132,7 @@ export async function generateMetadata({ params, searchParams }: IGenerateMetada
return {
title: 'Protocol Labs Directory',
description:
'The Protocol Labs Directory helps network members orient themselves within the network by making it easy to learn about other teams and members, including their roles, capabilities, and experiences.',
'The Protocol Labs Directory helps network people orient themselves within the network by making it easy to learn about other teams and people, including their roles, capabilities, and experiences.',
openGraph: {
images: [
{
Expand Down
4 changes: 2 additions & 2 deletions app/members/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ const getPageData = async (searchParams: IMembersSearchParams) => {
export default Page;

export const metadata: Metadata = {
title: 'Members | Protocol Labs Directory',
title: 'People | Protocol Labs Directory',
description:
'The Protocol Labs Directory helps network members orient themselves within the network by making it easy to learn about other teams and members, including their roles, capabilities, and experiences.',
'The Protocol Labs Directory helps network people orient themselves within the network by making it easy to learn about other teams and people, including their roles, capabilities, and experiences.',
openGraph: {
type: 'website',
url: process.env.APPLICATION_BASE_URL,
Expand Down
2 changes: 1 addition & 1 deletion app/notifications/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export default Notifications;
export const metadata: Metadata = {
title: 'Notifications | Protocol Labs Directory',
description:
'The Protocol Labs Directory helps network members orient themselves within the network by making it easy to learn about other teams and members, including their roles, capabilities, and experiences.',
'The Protocol Labs Directory helps network people orient themselves within the network by making it easy to learn about other teams and people, including their roles, capabilities, and experiences.',
openGraph: {
type: 'website',
url: process.env.APPLICATION_BASE_URL,
Expand Down
2 changes: 1 addition & 1 deletion app/projects/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export async function generateMetadata({ params, searchParams }: IGenerateMetada
return {
title: 'Protocol Labs Directory',
description:
'The Protocol Labs Directory helps network members orient themselves within the network by making it easy to learn about other teams and members, including their roles, capabilities, and experiences.',
'The Protocol Labs Directory helps network people orient themselves within the network by making it easy to learn about other teams and people, including their roles, capabilities, and experiences.',
openGraph: {
images: [
{
Expand Down
2 changes: 1 addition & 1 deletion app/projects/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const getPageData = async (searchParams: any) => {
export const metadata: Metadata = {
title: 'Projects | Protocol Labs Directory',
description:
'The Protocol Labs Directory helps network members orient themselves within the network by making it easy to learn about other teams and members, including their roles, capabilities, and experiences.',
'The Protocol Labs Directory helps network people orient themselves within the network by making it easy to learn about other teams and people, including their roles, capabilities, and experiences.',
openGraph: {
type: 'website',
url: process.env.APPLICATION_BASE_URL,
Expand Down
8 changes: 4 additions & 4 deletions app/settings/members/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ export default async function ManageMembers(props: any) {

const breadcrumbItems = [
{ url: '/', icon: '/icons/home.svg' },
{ text: 'Members', url: '/members' },
{ text: 'People', url: '/members' },
{ text: `${userInfo.name}`, url: `/members/${userInfo.uid}` },
{ text: 'Manage Members', url: '/settings/members' },
{ text: 'Manage People', url: '/settings/members' },
];
return (
<>
Expand All @@ -83,7 +83,7 @@ export default async function ManageMembers(props: any) {
</div>
</div>
<div className={styles.ps__backbtn}>
<SettingsBackButton title="Manage Member" />
<SettingsBackButton title="Manage People" />
</div>
<div className={styles.ps__main}>
<aside className={styles.ps__main__aside}>
Expand All @@ -101,7 +101,7 @@ export default async function ManageMembers(props: any) {
export const metadata: Metadata = {
title: 'Settings | Protocol Labs Directory',
description:
'The Protocol Labs Directory helps network members orient themselves within the network by making it easy to learn about other teams and members, including their roles, capabilities, and experiences.',
'The Protocol Labs Directory helps network people orient themselves within the network by making it easy to learn about other teams and people, including their roles, capabilities, and experiences.',
openGraph: {
type: 'website',
url: process.env.APPLICATION_BASE_URL,
Expand Down
2 changes: 1 addition & 1 deletion app/settings/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default function Settings() {
export const metadata: Metadata = {
title: 'Settings | Protocol Labs Directory',
description:
'The Protocol Labs Directory helps network members orient themselves within the network by making it easy to learn about other teams and members, including their roles, capabilities, and experiences.',
'The Protocol Labs Directory helps network people orient themselves within the network by making it easy to learn about other teams and people, including their roles, capabilities, and experiences.',
openGraph: {
type: 'website',
url: process.env.APPLICATION_BASE_URL,
Expand Down
6 changes: 3 additions & 3 deletions app/settings/privacy/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ async function PrivacyPage() {
}
const breadcrumbItems = [
{ url: '/', icon: '/icons/home.svg' },
{ text: 'Members', url: '/members' },
{ text: 'People', url: '/members' },
{ text: `${userInfo.name}`, url: `/members/${userInfo.uid}` },
{ text: 'Privacy', url: '/settings/privacy' },
];
Expand All @@ -48,7 +48,7 @@ async function PrivacyPage() {
</div>
</div>
<div className={styles.privacy__backbtn}>
<SettingsBackButton title="Member Privacy" />
<SettingsBackButton title="People Privacy" />
</div>
<div className={styles.privacy__main}>
<aside className={styles.privacy__main__aside}>
Expand All @@ -68,7 +68,7 @@ export default PrivacyPage;
export const metadata: Metadata = {
title: 'Settings | Protocol Labs Directory',
description:
'The Protocol Labs Directory helps network members orient themselves within the network by making it easy to learn about other teams and members, including their roles, capabilities, and experiences.',
'The Protocol Labs Directory helps network people orient themselves within the network by making it easy to learn about other teams and people, including their roles, capabilities, and experiences.',
openGraph: {
type: 'website',
url: process.env.APPLICATION_BASE_URL,
Expand Down
6 changes: 3 additions & 3 deletions app/settings/profile/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default async function ProfileSettings() {

const breadcrumbItems = [
{ url: '/', icon: '/icons/home.svg' },
{ text: 'Members', url: '/members' },
{ text: 'People', url: '/members' },
{ text: `${memberInfo.name}`, url: `/members/${memberInfo.uid}` },
{ text: 'Profile', url: `/settings/profile` },
]
Expand All @@ -52,7 +52,7 @@ export default async function ProfileSettings() {
</div>
</div>
<div className={styles.ps__backbtn}>
<SettingsBackButton title="Member Profile" />
<SettingsBackButton title="People Profile" />
</div>
<div className={styles.ps__main}>
<aside className={styles.ps__main__aside}>
Expand All @@ -70,7 +70,7 @@ export default async function ProfileSettings() {
export const metadata: Metadata = {
title: 'Settings | Protocol Labs Directory',
description:
'The Protocol Labs Directory helps network members orient themselves within the network by making it easy to learn about other teams and members, including their roles, capabilities, and experiences.',
'The Protocol Labs Directory helps network people orient themselves within the network by making it easy to learn about other teams and people, including their roles, capabilities, and experiences.',
openGraph: {
type: 'website',
url: process.env.APPLICATION_BASE_URL,
Expand Down
4 changes: 2 additions & 2 deletions app/settings/teams/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default async function ManageTeams(props: any) {

const breadcrumbItems = [
{ url: '/', icon: '/icons/home.svg' },
{ text: 'Members', url: '/members' },
{ text: 'People', url: '/members' },
{ text: `${userInfo.name}`, url: `/members/${userInfo.uid}` },
{ text: 'Manage Teams', url: '/settings/teams' },
];
Expand Down Expand Up @@ -92,7 +92,7 @@ export default async function ManageTeams(props: any) {
export const metadata: Metadata = {
title: 'Settings | Protocol Labs Directory',
description:
'The Protocol Labs Directory helps network members orient themselves within the network by making it easy to learn about other teams and members, including their roles, capabilities, and experiences.',
'The Protocol Labs Directory helps network people orient themselves within the network by making it easy to learn about other teams and people, including their roles, capabilities, and experiences.',
openGraph: {
type: 'website',
url: process.env.APPLICATION_BASE_URL,
Expand Down
2 changes: 1 addition & 1 deletion app/sign-up/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default async function Page() {
export const metadata: Metadata = {
title: 'Sign up | Protocol Labs Directory',
description:
'The Protocol Labs Directory helps network members orient themselves within the network by making it easy to learn about other teams and members, including their roles, capabilities, and experiences.',
'The Protocol Labs Directory helps network people orient themselves within the network by making it easy to learn about other teams and people, including their roles, capabilities, and experiences.',
openGraph: {
type: 'website',
url: process.env.APPLICATION_BASE_URL,
Expand Down
2 changes: 1 addition & 1 deletion app/teams/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ export async function generateMetadata({ params, searchParams }: IGenerateMetada
return {
title: 'Protocol Labs Directory',
description:
'The Protocol Labs Directory helps network members orient themselves within the network by making it easy to learn about other teams and members, including their roles, capabilities, and experiences.',
'The Protocol Labs Directory helps network people orient themselves within the network by making it easy to learn about other teams and people, including their roles, capabilities, and experiences.',
openGraph: {
images: [
{
Expand Down
2 changes: 1 addition & 1 deletion app/teams/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const getPageData = async (searchParams: ITeamsSearchParams) => {
export const metadata: Metadata = {
title: 'Teams | Protocol Labs Directory',
description:
'The Protocol Labs Directory helps network members orient themselves within the network by making it easy to learn about other teams and members, including their roles, capabilities, and experiences.',
'The Protocol Labs Directory helps network people orient themselves within the network by making it easy to learn about other teams and people, including their roles, capabilities, and experiences.',
openGraph: {
type: 'website',
url: process.env.APPLICATION_BASE_URL,
Expand Down
2 changes: 1 addition & 1 deletion components/core/error.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const Error = () => {
</a>
&nbsp;or&nbsp;
<a href={PAGE_ROUTES.MEMBERS} className="error-container__content__message__desc__link">
members
people
</a>
&nbsp;or&nbsp;
<a href={PAGE_ROUTES.PROJECTS} className="error-container__content__message__desc__link">
Expand Down
2 changes: 1 addition & 1 deletion components/core/husky/husky-ask.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function HuskyAsk(props: any) {
<div className="huskyask__upload">
<div className="huskyask__upload__info">
<img className="huskyask__upload__info__icon" src="/icons/husky-add.svg" />
<p className="huskyask__upload__info__text">Want Husky to be able to fetch results for your teams, projects and members too?</p>
<p className="huskyask__upload__info__text">Want Husky to be able to fetch results for your teams, projects and people too?</p>
</div>
<a href='https://airtable.com/appgb6O7eF6mBEl8t/pagkXZKMaDujXVdio/form' target='_blank' className="huskyask__upload__btn">Upload data</a>
</div>
Expand Down
4 changes: 2 additions & 2 deletions components/core/husky/husky-empty-chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function HuskyEmptyChat({ onPromptClicked }: HuskyEmptyChatProps) {
<h3 className="hec__info__title__text">What is Husky?</h3>
</div>
<p className="hec__info__desc">
Husky is an LLM-powered chatbot, designed to help you explore Protocol Labs teams, projects, events and members. It can make suggestions and recommendations based on what you’re
Husky is an LLM-powered chatbot, designed to help you explore Protocol Labs teams, projects, events and people. It can make suggestions and recommendations based on what you’re
looking for. While it’s currently trained on a limited set of Protocol Labs entities, we encourage you to upload data about your team, project, or yourself to help others across our
growing innovation network discover and explore what you’re working on.
</p>
Expand Down Expand Up @@ -112,7 +112,7 @@ function HuskyEmptyChat({ onPromptClicked }: HuskyEmptyChatProps) {
</div>
<div className="hec__content__footer">
<img alt="Husky Add" width={16} height={16} src="/icons/husky-add.svg" className="hec__content__footer__icon" />
<p className="hec__content__footer__text">Want Husky to be able to fetch results for your teams, projects and members too?</p>
<p className="hec__content__footer__text">Want Husky to be able to fetch results for your teams, projects and people too?</p>
<a href='https://airtable.com/appgb6O7eF6mBEl8t/pagkXZKMaDujXVdio/form' target='_blank' className="hec__content__footer__button">Upload data</a>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion components/core/login/auth-box.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function AuthBox() {
appearance: {
theme: 'light',
accentColor: '#676FFF',
landingHeader: 'PL Member Login',
landingHeader: 'PL People Login',
},
loginMethods: ['email', 'google', 'github', 'wallet'],
}}
Expand Down
Loading

0 comments on commit a9c0565

Please sign in to comment.