Skip to content

Commit

Permalink
fix: Ensure that table css is always imported (#2748)
Browse files Browse the repository at this point in the history
Ensure that all tables properly import css correctly.
  • Loading branch information
nicholas-codecov authored Apr 5, 2024
1 parent 17177eb commit 7a86cc7
Show file tree
Hide file tree
Showing 17 changed files with 30 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ import { useInView } from 'react-intersection-observer'

import Spinner from 'ui/Spinner'

import 'ui/Table/Table.css'
import { useAdminAccessList } from './useAdminAccessList'

import 'ui/Table/Table.css'

type AdminAccessTableColumn = {
name: string
email: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ import { OrderingDirection, OrderingParameter } from 'services/pull/usePull'
import A from 'ui/A'
import Icon from 'ui/Icon'
import Spinner from 'ui/Spinner'
import 'ui/FileList/FileList.css'
import TotalsNumber from 'ui/TotalsNumber'

import 'ui/FileList/FileList.css'

const CommitFileDiff = lazy(() => import('../shared/CommitFileDiff'))

const columnHelper = createColumnHelper<ImpactedFileType>()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import {
import A from 'ui/A'
import Icon from 'ui/Icon'
import Spinner from 'ui/Spinner'

import 'ui/FileList/FileList.css'

const CommitFileDiff = lazy(() => import('../shared/CommitFileDiff'))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ import { ImpactedFileType, useCommit } from 'services/commit/useCommit'
import A from 'ui/A'
import Icon from 'ui/Icon'
import Spinner from 'ui/Spinner'
import 'ui/FileList/FileList.css'
import TotalsNumber from 'ui/TotalsNumber'

import 'ui/FileList/FileList.css'

const CommitFileDiff = lazy(() => import('./CommitFileDiff'))

const columnHelper = createColumnHelper<ImpactedFileType>()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { useParams } from 'react-router-dom'
import { usePullBundleComparisonList } from 'services/pull/usePullBundleComparisonList'
import { formatSizeToString } from 'shared/utils/bundleAnalysis'
import Icon from 'ui/Icon'

import 'ui/Table/Table.css'

interface URLParams {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { useParams } from 'react-router-dom'
import { useCommitsTeam } from 'services/commits'
import { useRepoOverview } from 'services/repo'
import Spinner from 'ui/Spinner'

import 'ui/Table/Table.css'

import { createCommitsTableTeamData } from './createCommitsTableTeamData'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ import TotalsNumber from 'ui/TotalsNumber'
import ComponentsNotConfigured from './ComponentsNotConfigured'
import { ComponentsComparison, useComponentComparison } from './hooks'

import 'ui/Table/Table.css'
import ComponentsSelector from '../ComponentsSelector'

import 'ui/Table/Table.css'

const Loader = () => (
<div className="mb-4 flex justify-center pt-4">
<Spinner />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ import {
import A from 'ui/A'
import Icon from 'ui/Icon'
import Spinner from 'ui/Spinner'
import 'ui/FileList/FileList.css'
import TotalsNumber from 'ui/TotalsNumber'

import 'ui/FileList/FileList.css'

const PullFileDiff = lazy(() => import('../../shared/FileDiff'))

const columnHelper = createColumnHelper<ImpactedFile>()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import {
import A from 'ui/A'
import Icon from 'ui/Icon'
import Spinner from 'ui/Spinner'

import 'ui/FileList/FileList.css'

const PullFileDiff = lazy(() => import('../../shared/FileDiff'))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ import isEmpty from 'lodash/isEmpty'
import { useMemo } from 'react'
import { useParams } from 'react-router-dom'

import 'ui/Table/Table.css'
import { FlagsComparison, usePull } from 'services/pull'
import FlagsNotConfigured from 'shared/FlagsNotConfigured'
import Spinner from 'ui/Spinner'
import TotalsNumber from 'ui/TotalsNumber'

import 'ui/Table/Table.css'

const Loader = () => (
<div className="mb-4 flex justify-center pt-4">
<Spinner />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ import ToggleHeader from 'pages/PullRequestPage/Header/ToggleHeader/ToggleHeader
import A from 'ui/A'
import Icon from 'ui/Icon'
import Spinner from 'ui/Spinner'
import 'ui/FileList/FileList.css'
import TotalsNumber from 'ui/TotalsNumber'

import 'ui/FileList/FileList.css'

import { useIndirectChangedFilesTable } from './hooks'
import NameColumn from './NameColumn/NameColumn'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import Icon from 'ui/Icon'
import { useRepoBranchContentsTable } from '../hooks'
import { Loader, RepoContentsResult } from '../shared'

import 'ui/Table/Table.css'

const columnHelper = createColumnHelper<Row>()

function getOrderingDirection(sorting: Array<{ id: string; desc: boolean }>) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import Icon from 'ui/Icon'
import { useRepoBranchContentsTable } from '../hooks'
import { Loader, RepoContentsResult } from '../shared'

import 'ui/Table/Table.css'

const columnHelper = createColumnHelper<Row>()

function getOrderingDirection(sorting: Array<{ id: string; desc: boolean }>) {
Expand Down
3 changes: 2 additions & 1 deletion src/pages/RepoPage/PullsTab/PullsTable/PullsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@ import { useParams } from 'react-router-dom'

import { useLocationParams } from 'services/navigation'
import { usePulls } from 'services/pulls'
import 'ui/Table/Table.css'
import { useRepoOverview } from 'services/repo'
import Spinner from 'ui/Spinner'

import { createPullsTableData } from './createPullsTableData'

import { orderingEnum } from '../enums'

import 'ui/Table/Table.css'

const Loader = () => (
<div className="mb-4 flex justify-center pt-4">
<Spinner />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@ import { useParams } from 'react-router-dom'

import { useLocationParams } from 'services/navigation'
import { usePullsTeam } from 'services/pulls/usePullsTeam'
import 'ui/Table/Table.css'
import { useRepoOverview } from 'services/repo'
import Spinner from 'ui/Spinner'

import { createPullsTableTeamData } from './createPullsTableTeamData'

import { orderingEnum } from '../enums'

import 'ui/Table/Table.css'

const Loader = () => (
<div className="mb-4 flex justify-center pt-4">
<Spinner />
Expand Down
3 changes: 2 additions & 1 deletion src/shared/ListRepo/ReposTable/ReposTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ import Spinner from 'ui/Spinner'

import { getReposColumnsHelper } from './getReposColumnsHelper'

import 'ui/Table/Table.css'
import { repoDisplayOptions } from '../ListRepo'
import NoReposBlock from '../NoReposBlock'

import 'ui/Table/Table.css'

interface URLParams {
provider: string
}
Expand Down
3 changes: 2 additions & 1 deletion src/shared/ListRepo/ReposTableTeam/ReposTableTeam.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@ import { formatTimeToNow } from 'shared/utils/dates'
import Button from 'ui/Button'
import Icon from 'ui/Icon'

import 'ui/Table/Table.css'
import InactiveRepo from '../InactiveRepo'
import { repoDisplayOptions } from '../ListRepo'
import NoReposBlock from '../NoReposBlock'
import RepoTitleLink from '../RepoTitleLink'

import 'ui/Table/Table.css'

export function getSortingOption(
sorting: Array<{ id: string; desc: boolean }>
) {
Expand Down

0 comments on commit 7a86cc7

Please sign in to comment.