-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
1,080 additions
and
189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* eslint-disable react/destructuring-assignment */ | ||
/* eslint-disable no-console */ | ||
import { Component, ErrorInfo, ReactNode } from 'react'; | ||
|
||
interface Props { | ||
showErrorMessage?: boolean; | ||
children?: ReactNode; | ||
} | ||
|
||
interface State { | ||
hasError: boolean; | ||
} | ||
|
||
class ErrorBoundary extends Component<Props, State> { | ||
constructor(props: Props) { | ||
super(props); | ||
this.state = { hasError: false }; | ||
} | ||
|
||
public static getDerivedStateFromError(): State { | ||
// Update state so the next render will show the fallback UI. | ||
return { hasError: true }; | ||
} | ||
|
||
public componentDidCatch(error: Error, errorInfo: ErrorInfo) { | ||
console.error('Uncaught error:', error, errorInfo); | ||
} | ||
|
||
public render() { | ||
if (this.state.hasError && this.props.showErrorMessage) { | ||
return <h1>Sorry.. there was an error</h1>; | ||
} | ||
if (this.state.hasError) { | ||
return null; | ||
} | ||
|
||
return this.props.children; | ||
} | ||
} | ||
|
||
export default ErrorBoundary; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { twMerge } from 'tailwind-merge'; | ||
|
||
type LoadingSkeletonProps = { | ||
className?: string; | ||
}; | ||
|
||
/** | ||
* https://flowbite.com/docs/components/skeleton/ | ||
*/ | ||
const LoadingSkeleton: React.FC<LoadingSkeletonProps> = ({ className }) => ( | ||
<div role="status" className={twMerge('max-w-sm animate-pulse', className)}> | ||
<div className="mb-2.5 h-2 max-w-[360px] rounded-full bg-gray-200 dark:bg-gray-700" /> | ||
<div className="mb-2.5 h-2 rounded-full bg-gray-200 dark:bg-gray-700" /> | ||
<div className="mb-2.5 h-2 max-w-[330px] rounded-full bg-gray-200 dark:bg-gray-700" /> | ||
<div className="mb-2.5 h-2 max-w-[300px] rounded-full bg-gray-200 dark:bg-gray-700" /> | ||
<div className="h-2 max-w-[360px] rounded-full bg-gray-200 dark:bg-gray-700" /> | ||
<span className="sr-only">Loading</span> | ||
</div> | ||
); | ||
|
||
export default LoadingSkeleton; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
apiapiapiapiapi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
I tend to wind up being the person on the team who is always pushing for more meaningful tests. I don't just want code coverage metrics though, I want tests that will ensure that specific issues do not reoccur and tests that make development easier. A lot of times this means adding end-to-end tests or figuring out how to write a test around a clunky piece of legacy code that no one wants to touch. I've also found a lot of value in writing scripts to create test data in the dev database on a few different occasions, which has helped me in developing a feature but also helps the team maintain that feature and others as the test data is expanded to more use cases. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
fluffy clouds |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
- I always try to fix any local setup things or automations that will make my life easier and hopefully help others as well | ||
- Campus labs azure | ||
- Being at startups for the past 4 years I've also wound up having some ownership over other tooling as well... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
get off your damn phone |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
I started using React in 2016 when the team I was on at Campus Labs decided to switch. I began the migration alone, with some guidance from other teams that had already made the switch, and later taught others how to use React. From there I went on to fully frontend roles at Crisp and Wagmo, both using React nearly 100% of the time. | ||
|
||
I've worked with class components and _Redux_ for state management but I've also worked a lot with functional components, hooks, and context for global state. For most of the apps I've worked on it's made more sense to persist everything on the backend and use _React Query_ or _Apollo GraphQL_ to access that data. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
hello |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
When I worked at Campus Labs, our design team was constantly trying to improve the accessibility of our platform and I learned a lot of basics from working with them on fixes. When I moved on to smaller startups, I became the voice for improving accessibility as the relative expert and learned even more in trying to teach these practices to others. I think it is most important to add some static checking like `eslint/jsx-a11y` to catch some basic issues. And using something like _React Testing Library_ as it is documented gets you very far in making accessible components. I've also learned the basics of using VoiceOver on Mac to test accessibility more completely. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
I learned HTML and JavaScript in high school and tinkered with websites throughout college. Professionally, I've almost always worked on webapps - either MVC backend with a lightweight frontend or a RESTful/GraphQL backend with a full frontend framework. I've been through all of the browser compatibility issues of the early 2000's and working with plain javascript without a framework enough to understand the fundamentals very well. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.