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

Add slack invite button to website Contact Us #444

Merged
merged 41 commits into from
Nov 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
6ff7549
Add slack invite button to website Contact Us
suprjinx Oct 12, 2023
4eaac3d
Search syntax documentation (#443)
fabiovincenzi Oct 13, 2023
539ea4d
Bump github.com/aws/aws-sdk-go-v2/service/s3 from 1.40.1 to 1.40.2 (#…
dependabot[bot] Oct 16, 2023
e7dfca4
Bump github.com/aws/aws-sdk-go-v2/config from 1.18.44 to 1.18.45 (#447)
dependabot[bot] Oct 16, 2023
9de161a
Bump gorm.io/driver/postgres from 1.5.2 to 1.5.3 (#434)
dependabot[bot] Oct 16, 2023
0bbb6bd
Bump gorm.io/gorm from 1.25.4 to 1.25.5 (#433)
dependabot[bot] Oct 16, 2023
8cb8e61
Change CI release logic (#452)
jgiannuzzi Oct 16, 2023
6a85699
Improve required checks creation in CI (#458)
jgiannuzzi Oct 16, 2023
c15fba8
Initial support for namespaces (#466)
jgiannuzzi Oct 16, 2023
d16b24e
Bump github.com/aws/aws-sdk-go-v2/config from 1.18.45 to 1.19.0 (#467)
dependabot[bot] Oct 17, 2023
6e64e42
Bump github.com/gofiber/fiber/v2 from 2.49.2 to 2.50.0 (#468)
dependabot[bot] Oct 17, 2023
8afcc67
Create release branches automatically during tag creation (#471)
jgiannuzzi Oct 17, 2023
8956415
Do not run "Check required jobs" on forks (#470)
jgiannuzzi Oct 17, 2023
b19b66c
Rewrite the required checks process to look for check runs of the com…
jgiannuzzi Oct 17, 2023
9b4d7db
Remove absolute directories in unit tests which create unnecessary cr…
jgiannuzzi Oct 17, 2023
c21f9fa
Python dependencies maintenance (#475)
jgiannuzzi Oct 17, 2023
8d29be1
Bump boto3 from 1.28.64 to 1.28.65 (#479)
dependabot[bot] Oct 17, 2023
f49279c
Bump black from 23.9.1 to 23.10.0 (#480)
dependabot[bot] Oct 18, 2023
9d76124
Stop gracefully on SIGTERM (#476)
jgiannuzzi Oct 18, 2023
49e88da
Log the original SQLite database URI (#482)
jgiannuzzi Oct 18, 2023
d379d26
Create a pending required check as early as possible (#481)
jgiannuzzi Oct 18, 2023
6eefe87
Check module files in CI (#483)
jgiannuzzi Oct 18, 2023
9a3fbc3
Support Google Storage for artifact logging (#472)
dsuhinin Oct 18, 2023
a48cc9c
Fix wrong Y axis scale in Aim UI when metric has infinity values (#492)
jgiannuzzi Oct 18, 2023
db7d7a5
Restore functionality to update the website when a release is created…
jgiannuzzi Oct 18, 2023
9fc39d6
Implement (again) database reset for SQLite (#485)
jgiannuzzi Oct 18, 2023
fe5cc2e
Bump golang.org/x/net from 0.15.0 to 0.17.0 (#502)
dependabot[bot] Oct 20, 2023
78c3f72
Bump postcss from 8.4.23 to 8.4.31 in /website (#503)
dependabot[bot] Oct 20, 2023
2d161ce
Bump @babel/traverse from 7.21.5 to 7.23.2 in /website (#504)
dependabot[bot] Oct 20, 2023
48233c8
Integration test coverage increase (#436)
fabiovincenzi Oct 20, 2023
ae5b9e0
VSCode settings improvements (#431)
suprjinx Oct 20, 2023
5e9cef9
Use permanent slack invite URI
suprjinx Oct 23, 2023
a96333b
Adjust contact us to have slack join button
suprjinx Oct 23, 2023
942bded
Move the slack invite info below the contact us form
suprjinx Oct 23, 2023
2face74
Tweaking the contact us slack section
suprjinx Oct 23, 2023
cb5e6b6
fix whitespace and link icon in footer
suprjinx Oct 23, 2023
3f25f86
Merge branch 'main' into slack-info
suprjinx Nov 2, 2023
0447dc5
Merge branch 'main' into slack-info
dsuhinin Nov 2, 2023
050146d
Merge branch 'main' into slack-info
suprjinx Nov 3, 2023
0cc022d
Suggestions from PR
suprjinx Nov 3, 2023
3875b53
Merge branch 'main' into slack-info
suprjinx Nov 3, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ module.exports = async function configCreatorAsync() {
);
const releaseVersion = data.tag_name.substring(1);
const releaseUrl = data.html_url;
const slackUrl = 'https://join.slack.com/t/mlops-community/shared_invite/zt-258yl6ifq-zZNzBaddwlhifj56yt7ONg';

/** @type {import('@docusaurus/types').Config} */
return {
Expand All @@ -38,7 +39,7 @@ module.exports = async function configCreatorAsync() {

customFields: {
email: 'fasttrackml@gr-oss.io',
newIssueUrl: 'https://github.com/G-Research/fasttrackml/issues/new',
slackInviteUrl: slackUrl,
},

presets: [
Expand Down Expand Up @@ -89,6 +90,11 @@ module.exports = async function configCreatorAsync() {
label: 'GitHub',
position: 'right',
},
{
href: slackUrl,
label: 'Join our Slack',
position: 'right',
},
{
href: 'https://twitter.com/oss_gr',
label: 'Twitter',
Expand Down Expand Up @@ -126,6 +132,10 @@ module.exports = async function configCreatorAsync() {
label: 'GitHub',
href: 'https://github.com/G-Research/fasttrackml',
},
{
label: 'Join our Slack',
href: slackUrl,
},
{
label: 'Twitter',
href: 'https://twitter.com/oss_gr',
Expand Down Expand Up @@ -173,4 +183,4 @@ module.exports = async function configCreatorAsync() {
],
}),
};
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import clsx from 'clsx';
import {useForm, SubmitHandler} from "react-hook-form";
import styles from './ContactUsSection.module.css';
import {openNewIssue, openNewEmail} from "@site/src/core/utils";
import {openNewEmail} from "@site/src/core/utils";
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";


Expand Down Expand Up @@ -30,11 +30,7 @@ export default function ContactUsSection(): React.JSX.Element {
siteConfig: {customFields}
} = useDocusaurusContext();
const email = customFields?.email;
const newIssueUrl = customFields?.newIssueUrl;

const onUsingGitHub: SubmitHandler<Inputs> = data => {
openNewIssue(newIssueUrl as string, data.subject, getMessage(data.name, data.company, data.message));
};
const slackInviteUrl = customFields?.slackInviteUrl

const onSendEmail: SubmitHandler<Inputs> = data => {
openNewEmail(email as string, data.subject, getMessage(data.name, data.company, data.message));
Expand All @@ -44,7 +40,7 @@ export default function ContactUsSection(): React.JSX.Element {
<div className="container padding-bottom--xl text--center">
<h1 id="contact-us" className={clsx("section__ref")}>Contact Us</h1>
<p>We would love to hear from you! FastTrackML is a brand new project and any contribution would make a difference!</p>
<form onSubmit={handleSubmit(onUsingGitHub)}>
<form onSubmit={handleSubmit(onSendEmail)}>
<div className='row'>
<div className='col col--6'>
<label htmlFor="name">Your Name</label>
Expand Down Expand Up @@ -82,19 +78,15 @@ export default function ContactUsSection(): React.JSX.Element {
</div>
<div className="row margin-vert--md">
<div className={clsx("col", styles.buttons)}>
<button type="button" className="button button--outline button--primary button--lg"
<button type="button" className="button button--primary button--lg"
title={email as string}
disabled={!isValid} onClick={handleSubmit(onSendEmail)}>
📨 By Email
</button>
<button type="submit" className="button button--primary button--lg"
title={newIssueUrl as string}
disabled={!isValid}>
💬 Using GitHub
📨 Submit
</button>
</div>
</div>
</form>
<p>Or, join the <a href={slackInviteUrl} target="_blank">#fasttrackml channel on the MLOps.community Slack!</a></p>
</div>
</section>;
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default function HeroSection(): React.JSX.Element {
<Link
className="button button--primary button--lg"
to="/#contact-us">
{`💬 Talk to Us`}
{`💬 Contact Us`}
</Link>
</div>
</div>
Expand Down