Skip to content

Commit

Permalink
chore(platforms): update copy (#2980)
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-schultz authored Oct 16, 2024
1 parent cd51de1 commit 652f224
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
16 changes: 7 additions & 9 deletions platforms/src/Github/App-Bindings.ts
Original file line number Diff line number Diff line change
@@ -1,24 +1,22 @@
import React from "react";
import { PlatformOptions } from "../types";
import { Platform } from "../utils/platform";

export class GithubPlatform extends Platform {
platformId = "Github";
path = "github";
clientId: string = null;
redirectUri: string = null;

banner = {
content:
"Contribution Activity credentials focus on commit days. Ensure your contribution history is public by going to Settings > Public Profile > Contributions & Activity and unchecking 'Make profile private and hide activity'.",
};

constructor(options: PlatformOptions = {}) {
super();
this.clientId = options.clientId as string;
this.redirectUri = options.redirectUri as string;
this.banner = {
heading: "Verifying Contribution Activity",
content:
"For the Contribution Activity credentials, make sure your contribution data is public. Go to Settings > Public Profile > Contributions & Activity and uncheck 'Make profile private and hide activity'. Verify your contribution history with your Passport!",
cta: {
label: "Learn more",
url: "https://support.passport.xyz/passport-knowledge-base/stamps/how-do-i-add-passport-stamps/connecting-a-github-account-to-passport",
},
};
}

async getOAuthUrl(state: string): Promise<string> {
Expand Down
10 changes: 5 additions & 5 deletions platforms/src/Github/Providers-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const PlatformDetails: PlatformSpec = {
icon: "./assets/githubWhiteStampIcon.svg",
platform: "Github",
name: "Github",
description: "Connect to GitHub to verify your code contributions.",
description: "Connect to GitHub to verify your activity based on days with active commits.",
connectMessage: "Connect Account",
website: "https://github.com",
};
Expand All @@ -16,18 +16,18 @@ let ProviderConfig: PlatformGroupSpec[] = [];

ProviderConfig = [
{
platformGroup: "Contribution Activity",
platformGroup: "Commit Days Credentials:",
providers: [
{
title: "Contributions on at least 30 distinct days",
title: "Made commits on at least 30 distinct days",
name: "githubContributionActivityGte#30",
},
{
title: "Contributions on at least 60 distinct days",
title: "Made commits on at least 60 distinct days",
name: "githubContributionActivityGte#60",
},
{
title: "Contributions on at least 120 distinct days",
title: "Made commits on at least 120 distinct days",
name: "githubContributionActivityGte#120",
},
],
Expand Down

0 comments on commit 652f224

Please sign in to comment.