Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Org profile page #659

Merged
merged 33 commits into from
Jul 31, 2023
Merged

Org profile page #659

merged 33 commits into from
Jul 31, 2023

Conversation

hdJerry
Copy link
Contributor

@hdJerry hdJerry commented Sep 29, 2022

Image

Screenshot 2022-09-29 at 16 37 31

@hdJerry hdJerry requested a review from ihardz September 29, 2022 15:40
@hdJerry hdJerry linked an issue Sep 29, 2022 that may be closed by this pull request
@aws-amplify-us-east-1
Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-659.dbm2zhgk5abrj.amplifyapp.com

@aws-amplify-us-east-1
Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-659.d3sqkonra6x7y9.amplifyapp.com

<div class="q-pt-md q-mx-auto">
<div class="row items-center" v-if="!loadingOrgProfileDetail">
<span class="company_logo q-mr-sm rounded-borders">
<img :src="orgProfileDetail?.avatarUrl" alt="company logo" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hide image if the a orgProfileDetail?.avatarUrl is not a valid src

</small>
</div>
<div>
<a :href="'/' + username" class="row items-center clear-filter">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move link composing logic into computed

);
} else if (sortByData.value?.sortby === SORT_OPTIONS.stars) {
response.sort((a, b) =>
b.node.stargazerCount > a.node.stargazerCount ? 1 : -1,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what if equal? it can cause different result for different order and count. Handle 0 as you did above

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure this is valid. We are sorting, yeah, so if ) then it will be at the end.

);
} else {
response.sort((a, b) =>
getTime(b.node.updatedAt) - getTime(a.node.updatedAt) ? 1 : -1,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the same as above

Comment on lines 227 to 230
if (
search !== '' &&
!repo?.node.name?.toLocaleLowerCase().includes(search.toLocaleLowerCase())
) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (
search !== '' &&
!repo?.node.name?.toLocaleLowerCase().includes(search.toLocaleLowerCase())
) {
if (
search &&
!repo?.node.name?.toLocaleLowerCase().includes(search.toLocaleLowerCase())
) {

});
}
});
languages.sort((a, b) => (a.name > b.name ? 1 : -1));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the same as above

Comment on lines 290 to 291
width: 32px;
height: 32px;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use em

/>
<span
class="tab_label q-mx-sm"
:class="{ 'text-weight-bold': tab === 'packages' }"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move tabs values to enum. Do not harddcode them. It is hard to maintain

Comment on lines 5 to 10
export const inArray = (
array: ArrayData[],
target: string,
): { name: string } | undefined => {
return array.find((arr) => arr.name === target);
};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
export const inArray = (
array: ArrayData[],
target: string,
): { name: string } | undefined => {
return array.find((arr) => arr.name === target);
};
export const inArray = (
array: ArrayData[],
target: string,
): ArrayData | undefined => {
return array.find((arr) => arr.name === target);
};

Comment on lines 2 to 8
if (filterText.endsWith('s')) {
if (filterText.match(new RegExp('forks', 'i'))) {
filterText = filterText.replace('s', 'ed');
} else {
filterText = filterText.replace('s', '');
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what if the work contans multiple 's' letters?

@hdJerry hdJerry requested a review from ihardz October 5, 2022 10:40
@AllStackDev1 AllStackDev1 self-requested a review November 21, 2022 11:30
@AllStackDev1 AllStackDev1 assigned SDaian and hdJerry and unassigned SDaian Nov 21, 2022
@AllStackDev1 AllStackDev1 requested review from SDaian and removed request for SDaian and AllStackDev1 November 21, 2022 11:31
vyktoremario
vyktoremario previously approved these changes Jul 27, 2023
Copy link
Contributor

@vyktoremario vyktoremario left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check the formatting rules. The mockServiceWorker.js looks to be re-formatted

@netlify
Copy link

netlify bot commented Jul 27, 2023

Deploy Preview for cra-rxjs-styled-components canceled.

Name Link
🔨 Latest commit e9227f0
🔍 Latest deploy log https://app.netlify.com/sites/cra-rxjs-styled-components/deploys/64c4479c1900870008336f57

@netlify
Copy link

netlify bot commented Jul 27, 2023

Deploy Preview for next-react-query-tailwind canceled.

Name Link
🔨 Latest commit e9227f0
🔍 Latest deploy log https://app.netlify.com/sites/next-react-query-tailwind/deploys/64c4479c4611fa000787be94

@netlify
Copy link

netlify bot commented Jul 27, 2023

Deploy Preview for angular-apollo-tailwind canceled.

Name Link
🔨 Latest commit e9227f0
🔍 Latest deploy log https://app.netlify.com/sites/angular-apollo-tailwind/deploys/64c4479c560e25000805f4f5

@netlify
Copy link

netlify bot commented Jul 27, 2023

Deploy Preview for starter-dev-backend canceled.

Name Link
🔨 Latest commit e9227f0
🔍 Latest deploy log https://app.netlify.com/sites/starter-dev-backend/deploys/64c4479c1343b00008f2c779

@netlify
Copy link

netlify bot commented Jul 27, 2023

Deploy Preview for nuxt-pinia-tailwind canceled.

Name Link
🔨 Latest commit e9227f0
🔍 Latest deploy log https://app.netlify.com/sites/nuxt-pinia-tailwind/deploys/64c4479c47bccc00084f3fa7

@sonarcloud
Copy link

sonarcloud bot commented Jul 27, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@sonarcloud
Copy link

sonarcloud bot commented Jul 28, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@hdJerry hdJerry merged commit 547381e into main Jul 31, 2023
59 checks passed
@hdJerry hdJerry deleted the org-profile-page branch July 31, 2023 09:37
@thisdot-bot
Copy link

Hi @hdJerry. 👋

Your PR has been approved and merged. 🎉

Thank you for your continued contributions to the starter.dev GitHub showcases repo. ❤️

Keep up the great work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[vue-apollo-quasar] Org profiles not loading
6 participants