Skip to content

Commit

Permalink
chore(release): Test v7.40.0 (#10044)
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Krick <[email protected]>
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Matt Krick <[email protected]>
Co-authored-by: snyk-bot <[email protected]>
Co-authored-by: GitHub Action <[email protected]>
Co-authored-by: Georg Bremer <[email protected]>
Co-authored-by: Nick O'Ferrall <[email protected]>
Co-authored-by: parabol-release-bot[bot] <150284312+parabol-release-bot[bot]@users.noreply.github.com>
Co-authored-by: Bruce Tian <[email protected]>
Co-authored-by: Dale Bumblis <[email protected]>
Co-authored-by: Mohd Muneeb <[email protected]>
Co-authored-by: Muneeb-Ventures <[email protected]>
Co-authored-by: Rafa <[email protected]>
Co-authored-by: Jordan Husney <[email protected]>
Co-authored-by: Bartosz Jarocki <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Terry Acker <[email protected]>
Co-authored-by: Rafael Romero <[email protected]>
Co-authored-by: github-actions <[email protected]>
  • Loading branch information
18 people authored Jul 31, 2024
1 parent b0389b0 commit 2c8ca4b
Show file tree
Hide file tree
Showing 657 changed files with 11,658 additions and 13,412 deletions.
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "7.39.3"
".": "7.40.0"
}
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,26 @@ This project adheres to [Semantic Versioning](http://semver.org/).

This CHANGELOG follows conventions [outlined here](http://keepachangelog.com/).

## [7.40.0](https://github.com/ParabolInc/parabol/compare/v7.39.3...v7.40.0) (2024-07-26)


### Added

* nav updates ([#9973](https://github.com/ParabolInc/parabol/issues/9973)) ([2dd490a](https://github.com/ParabolInc/parabol/commit/2dd490ac75578f73d7a7b3e1f8ccfb1cd2164884))


### Fixed

* Disable SAML on downgrade to starter ([#10026](https://github.com/ParabolInc/parabol/issues/10026)) ([fa52c46](https://github.com/ParabolInc/parabol/commit/fa52c4638629fcf9c5c3453798d1320b9d8da2dd))


### Changed

* **deps:** bump braces from 3.0.2 to 3.0.3 ([#9843](https://github.com/ParabolInc/parabol/issues/9843)) ([0f6d8a4](https://github.com/ParabolInc/parabol/commit/0f6d8a40ad7e8490ba9503b56c5bc9e9a20620c2))
* migrate EmailVerification to pg ([#9492](https://github.com/ParabolInc/parabol/issues/9492)) ([a653a61](https://github.com/ParabolInc/parabol/commit/a653a61b279631aa66d461ebd2012c4136358bd0))
* **rethinkdb:** TemplateDimension: One-shot ([#10033](https://github.com/ParabolInc/parabol/issues/10033)) ([77e163a](https://github.com/ParabolInc/parabol/commit/77e163add65765641936bd56b83aa91f58e5b21a))
* **SDL:** refactor _legacy.graphql into individual typeDefs ([#10019](https://github.com/ParabolInc/parabol/issues/10019)) ([f8b029d](https://github.com/ParabolInc/parabol/commit/f8b029d60b78e50e8afa5f0a0f44c863afce753a))

## [7.39.3](https://github.com/ParabolInc/parabol/compare/v7.39.2...v7.39.3) (2024-07-25)


Expand Down
2 changes: 1 addition & 1 deletion codegen.json
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
"TeamPromptMeeting": "../../database/types/MeetingTeamPrompt#default as MeetingTeamPromptDB",
"TeamPromptMeetingMember": "../../database/types/TeamPromptMeetingMember#default as TeamPromptMeetingMemberDB",
"TeamPromptResponse": "../../postgres/queries/getTeamPromptResponsesByIds#TeamPromptResponse",
"TemplateDimension": "../../database/types/TemplateDimension#default",
"TemplateDimension": "../../postgres/types/index#TemplateDimension as TemplateDimensionDB",
"TimelineEventTeamPromptComplete": "./types/TimelineEventTeamPromptComplete#TimelineEventTeamPromptCompleteSource",
"ToggleFavoriteTemplateSuccess": "./types/ToggleFavoriteTemplateSuccess#ToggleFavoriteTemplateSuccessSource",
"ToggleSummaryEmailSuccess": "./types/ToggleSummaryEmailSuccess#ToggleSummaryEmailSuccessSource",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "An open-source app for building smarter, more agile teams.",
"author": "Parabol Inc. <[email protected]> (http://github.com/ParabolInc)",
"license": "AGPL-3.0",
"version": "7.39.3",
"version": "7.40.0",
"repository": {
"type": "git",
"url": "https://github.com/ParabolInc/parabol"
Expand Down
4 changes: 2 additions & 2 deletions packages/chronos/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chronos",
"version": "7.39.3",
"version": "7.40.0",
"description": "A cron job scheduler",
"author": "Matt Krick <[email protected]>",
"homepage": "https://github.com/ParabolInc/parabol/tree/master/packages/chronos#readme",
Expand All @@ -25,6 +25,6 @@
},
"dependencies": {
"cron": "^2.3.1",
"parabol-server": "7.39.3"
"parabol-server": "7.40.0"
}
}
97 changes: 41 additions & 56 deletions packages/client/components/DashNavList/DashNavList.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
import styled from '@emotion/styled'
import {ManageAccounts} from '@mui/icons-material'
import graphql from 'babel-plugin-relay/macro'
import React from 'react'
import {useFragment} from 'react-relay'
import {PALETTE} from '~/styles/paletteV3'
import {DashNavList_organization$key} from '../../__generated__/DashNavList_organization.graphql'
import {TierEnum} from '../../__generated__/InvoiceHeader_invoice.graphql'
import useBreakpoint from '../../hooks/useBreakpoint'
import {Breakpoint} from '../../types/constEnums'
import {upperFirst} from '../../utils/upperFirst'
import LeftDashNavItem from '../Dashboard/LeftDashNavItem'
import BaseTag from '../Tag/BaseTag'
import {TierEnum} from '../../__generated__/OrganizationSubscription.graphql'
import {Tooltip} from '../../ui/Tooltip/Tooltip'
import {TooltipContent} from '../../ui/Tooltip/TooltipContent'
import {TooltipTrigger} from '../../ui/Tooltip/TooltipTrigger'
import DashNavListTeams from './DashNavListTeams'
import DashNavMenu from './DashNavMenu'

const EmptyTeams = styled('div')({
fontSize: 16,
Expand All @@ -20,22 +17,13 @@ const EmptyTeams = styled('div')({
textAlign: 'center'
})

const StyledLeftDashNavItem = styled(LeftDashNavItem)<{isViewerOnTeam: boolean}>(
({isViewerOnTeam}) => ({
color: isViewerOnTeam ? PALETTE.SLATE_700 : PALETTE.SLATE_600,
borderRadius: 44,
paddingLeft: 15
})
)

const Tag = styled(BaseTag)<{tier: TierEnum | null}>(({tier}) => ({
backgroundColor:
tier === 'enterprise' ? PALETTE.SKY_500 : tier === 'team' ? PALETTE.GOLD_300 : PALETTE.JADE_400,
color: tier === 'team' ? PALETTE.GRAPE_700 : PALETTE.WHITE
}))
const StyledIcon = styled(ManageAccounts)({
height: 18,
width: 18
})

interface Props {
organizationsRef: DashNavList_organization$key | null
organizationsRef: DashNavList_organization$key
onClick?: () => void
}

Expand All @@ -45,7 +33,6 @@ const DashNavList = (props: Props) => {
graphql`
fragment DashNavList_organization on Organization @relay(plural: true) {
...DashNavListTeams_organization
...DashNavMenu_organization
id
name
tier
Expand All @@ -56,44 +43,42 @@ const DashNavList = (props: Props) => {
`,
organizationsRef
)
const isDesktop = useBreakpoint(Breakpoint.SIDEBAR_LEFT)
const teams = organizations?.flatMap((org) => org.viewerTeams)

const TierEnumValues: TierEnum[] = ['enterprise', 'team', 'starter']

const sortedOrgs = organizations.toSorted((a, b) => {
const aTier = TierEnumValues.indexOf(a.tier)
const bTier = TierEnumValues.indexOf(b.tier)
return aTier < bTier ? -1 : aTier > bTier ? 1 : a.name.localeCompare(b.name)
})

const teams = organizations.flatMap((org) => org.viewerTeams)

if (teams?.length === 0) {
return <EmptyTeams>It appears you are not a member of any team!</EmptyTeams>
return <EmptyTeams>{'It appears you are not a member of any team!'}</EmptyTeams>
}

return (
<div className='w-full p-2 lg:pt-4'>
{organizations?.map((org) => (
<div key={org.id} className='mb-3 w-full rounded-lg border border-solid border-slate-400'>
<div
className={
org.viewerTeams.length > 0 ? `border-b border-solid border-slate-300 p-2` : 'p-2'
}
>
<div className='flex flex-wrap items-center pb-1'>
<div className='flex min-w-0 flex-1 flex-wrap items-center justify-between'>
<span className='pl-2 text-base font-semibold leading-6 text-slate-700'>
{org.name}
</span>
<div className='flex w-auto justify-end px-0 text-right'>
<Tag tier={org.tier}>{upperFirst(org.tier)}</Tag>
</div>
</div>
</div>
{isDesktop ? (
<DashNavMenu organizationRef={org} />
) : (
<StyledLeftDashNavItem
className={'bg-transparent'}
icon={'manageAccounts'}
isViewerOnTeam
onClick={onClick}
href={`/me/organizations/${org.id}/billing`}
label={'Settings & Members'}
/>
)}
<div className='w-full p-3 pt-4 pb-0'>
{sortedOrgs.map((org) => (
<div key={org.id} className='w-full pb-4'>
<div className='mb-1 flex min-w-0 flex-1 flex-wrap items-center justify-between'>
<span className='flex-1 pl-3 text-base font-semibold leading-6 text-slate-700'>
{org.name}
</span>
<Tooltip>
<TooltipTrigger asChild>
<a
className='flex h-8 w-8 items-center justify-center rounded-full hover:bg-slate-300'
href={`/me/organizations/${org.id}/billing`}
>
<StyledIcon />
</a>
</TooltipTrigger>
<TooltipContent side='bottom' align='center' sideOffset={4}>
{'Settings & Members'}
</TooltipContent>
</Tooltip>
</div>
<DashNavListTeams onClick={onClick} organizationRef={org} />
</div>
Expand Down
6 changes: 3 additions & 3 deletions packages/client/components/DashNavList/DashNavListTeams.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const StyledLeftDashNavItem = styled(LeftDashNavItem)<{isPublicTeams?: boolean}>
({isPublicTeams}) => ({
color: isPublicTeams ? PALETTE.SLATE_600 : PALETTE.SLATE_700,
borderRadius: 44,
paddingLeft: 15
paddingLeft: 16
})
)

Expand Down Expand Up @@ -61,7 +61,7 @@ const DashNavListTeams = (props: Props) => {

if (!viewerTeams.length) return null
return (
<div className='p-2'>
<div>
{viewerTeams.map((team) => {
return (
<StyledLeftDashNavItem
Expand All @@ -75,7 +75,7 @@ const DashNavListTeams = (props: Props) => {
})}
{publicTeamsCount > 0 && (
<StyledLeftDashNavItem
className='bg-white pl-11 lg:bg-slate-200'
className='bg-white pl-[46px] lg:bg-slate-200'
onClick={handleClick}
isPublicTeams
label={`View ${publicTeamsCount} ${plural(publicTeamsCount, 'Public Team', 'Public Teams')}`}
Expand Down
98 changes: 0 additions & 98 deletions packages/client/components/DashNavList/DashNavMenu.tsx

This file was deleted.

19 changes: 7 additions & 12 deletions packages/client/components/Dashboard/DashSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import React from 'react'
import {useFragment} from 'react-relay'
import {useRouteMatch} from 'react-router'
import {DashSidebar_viewer$key} from '../../__generated__/DashSidebar_viewer.graphql'
import {PALETTE} from '../../styles/paletteV3'
import {NavSidebar} from '../../types/constEnums'
import {
AUTHENTICATION_PAGE,
Expand Down Expand Up @@ -40,7 +39,7 @@ const NavMain = styled('div')({

const NavItem = styled(LeftDashNavItem)({
borderRadius: 44,
paddingLeft: 15
paddingLeft: 16
})

const NavList = styled(DashNavList)({
Expand All @@ -56,14 +55,6 @@ const Wrapper = styled('div')({
flexDirection: 'column'
})

const OrgName = styled('div')({
color: PALETTE.SLATE_600,
fontWeight: 600,
fontSize: 12,
lineHeight: '16px',
padding: '8px 16px'
})

interface Props {
isOpen: boolean
viewerRef: DashSidebar_viewer$key | null
Expand Down Expand Up @@ -107,7 +98,11 @@ const DashSidebar = (props: Props) => {
label={'Organizations'}
exact
/>
<OrgName>{name}</OrgName>
<div className='mb-1 mt-4 flex min-h-[32px] items-center'>
<span className='flex-1 pl-3 text-base font-semibold leading-6 text-slate-700'>
{name}
</span>
</div>
<NavItem
icon={'creditScore'}
href={`/me/organizations/${orgId}/${BILLING_PAGE}`}
Expand Down Expand Up @@ -146,7 +141,7 @@ const DashSidebar = (props: Props) => {
<SideBarStartMeetingButton isOpen={isOpen} />
<Nav isOpen={isOpen}>
<Contents>
<div className='border-x border-solid border-[transparent] px-4'>
<div className='px-3'>
<NavItem icon={'forum'} href={'/meetings'} label={'Meetings'} />
<NavItem icon={'timeline'} href={'/me'} label={'History'} exact />
<NavItem icon={'playlist_add_check'} href={'/me/tasks'} label={'Tasks'} />
Expand Down
Loading

0 comments on commit 2c8ca4b

Please sign in to comment.