Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ import { faHeartPulse, faExclamationTriangle, faSkull } from '@fortawesome/free-
import { render, screen, fireEvent } from '@testing-library/react'
import '@testing-library/jest-dom'
import React from 'react'
import type { ProjectHealthType } from 'types/project'
import ProjectTypeDashboardCard from 'components/ProjectTypeDashboardCard'

type ProjectHealthType = 'healthy' | 'needsAttention' | 'unhealthy'

jest.mock('next/link', () => {
return function MockedLink({
children,
Expand Down
8 changes: 4 additions & 4 deletions frontend/src/app/board/[year]/candidates/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,10 @@ const BoardCandidatesPage = () => {
const renderTopActiveChannels = () => {
if (!snapshot) return null

const hasChannels =
snapshot.channelCommunications && Object.keys(snapshot.channelCommunications).length > 0

if (!hasChannels) {
if (
!snapshot.channelCommunications ||
Object.keys(snapshot.channelCommunications).length <= 0
) {
return (
<div className="mt-4 w-full">
<h4 className="mb-2 text-sm font-semibold text-gray-700 dark:text-gray-300">
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/types/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import type { Organization } from 'types/organization'
import type { PullRequest } from 'types/pullRequest'
import type { Release } from 'types/release'

export type ProjectHealthType = 'healthy' | 'needsAttention' | 'unhealthy'

export type ProjectStats = {
contributors: number
forks: number
Expand Down
Copy link
Collaborator

Choose a reason for hiding this comment

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

What is this file for?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually another PRs file got pushed to this Sorry for inconvenience

Empty file.