Skip to content

Commit

Permalink
Merge branch 'master' into feat/embedder1
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkrick committed Mar 18, 2024
2 parents 7ec3d6a + 0217e11 commit 49c3eae
Show file tree
Hide file tree
Showing 89 changed files with 2,057 additions and 544 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
push:
branches:
- "release-please--**"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/migration-order.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- name: Checkout master
uses: actions/checkout@v3
with:
ref: master
ref: ${{ github.base_ref }}

- name: Get newest migration on master
run: |
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/snyk-yarn-lock-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Update Snyk PR to add yarn.lock

on:
pull_request:
types: [opened, synchronize, reopened]

jobs:
update-snyk-pr:
if: contains(github.event.pull_request.title, '[Snyk]')
runs-on: ubuntu-latest

steps:
- name: Checkout the repository
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, no need to create one

- name: Install dependencies
run: yarn install

- name: Commit yarn.lock to the PR branch
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Action"
git add yarn.lock
git commit -m "Update yarn.lock" || echo "No changes to commit"
git push
5 changes: 1 addition & 4 deletions .github/workflows/validate_pr_title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ jobs:
name: Validate PR title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v4
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
# See https://github.com/marketplace/actions/semantic-pull-request for details on other available options
validateSingleCommit: true
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.21.0"
".": "7.22.1"
}
4 changes: 2 additions & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@
{
"name": "Launch Chrome",
"request": "launch",
"type": "pwa-chrome",
"type": "chrome",
"url": "http://localhost:3000",
"webRoot": "${workspaceFolder}"
},
{
"type": "node",
"request": "launch",
"name": "Debug Executor",
"program": "scripts/runExecutor.js",
"program": "scripts/runExecutor.js"
},
{
"type": "node",
Expand Down
38 changes: 38 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,44 @@ This project adheres to [Semantic Versioning](http://semver.org/).

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

## [7.22.1](https://github.com/ParabolInc/parabol/compare/v7.22.0...v7.22.1) (2024-03-14)


### Fixed

* node-loader that ignores public path ([#9537](https://github.com/ParabolInc/parabol/issues/9537)) ([1009ede](https://github.com/ParabolInc/parabol/commit/1009edefba19b1caec0b8f9708aa468d565fc225))


### Changed

* migrate FailedAuthRequest to pg ([#9500](https://github.com/ParabolInc/parabol/issues/9500)) ([efc0dc9](https://github.com/ParabolInc/parabol/commit/efc0dc9d090f2bcd03d5abedc04a5507addb2f6e))
* migrate ScheduledJob from rethinkdb to pg ([#9490](https://github.com/ParabolInc/parabol/issues/9490)) ([5c39fde](https://github.com/ParabolInc/parabol/commit/5c39fde04c6e8b5c31d70258d4ef7f548aa28298))

## [7.22.0](https://github.com/ParabolInc/parabol/compare/v7.21.0...v7.22.0) (2024-03-13)


### Added

* Add team sections to the Custom category in activity library ([#9511](https://github.com/ParabolInc/parabol/issues/9511)) ([2338414](https://github.com/ParabolInc/parabol/commit/233841498bf997343f3d94e443104973078bf736))
* added additinal check-in questions ([10c6f69](https://github.com/ParabolInc/parabol/commit/10c6f6932008fcca434d1b6a73c288aea88768d5))
* managing teams ([#9285](https://github.com/ParabolInc/parabol/issues/9285)) ([f351cf9](https://github.com/ParabolInc/parabol/commit/f351cf9f5a894fe019f331cc0ec6f012a0779c42))
* Recurring GCal event dialog ([#9506](https://github.com/ParabolInc/parabol/issues/9506)) ([fc4429c](https://github.com/ParabolInc/parabol/commit/fc4429c85dd9610d3fdadf83882c2dbdd88f424f))
* Release MS Teams integration ([#9527](https://github.com/ParabolInc/parabol/issues/9527)) ([1ed2796](https://github.com/ParabolInc/parabol/commit/1ed279673fdaa7a21a995677c7e2b0e6a7c41f96))


### Fixed

* Korean greeting corrected ([#9525](https://github.com/ParabolInc/parabol/issues/9525)) ([10c6f69](https://github.com/ParabolInc/parabol/commit/10c6f6932008fcca434d1b6a73c288aea88768d5))
* Make hasGCalError optional ([#9526](https://github.com/ParabolInc/parabol/issues/9526)) ([9350b93](https://github.com/ParabolInc/parabol/commit/9350b93b7a2a6f48e0af712cc0a6edbb8395004c))
* recreate lockfile ([#9516](https://github.com/ParabolInc/parabol/issues/9516)) ([af47966](https://github.com/ParabolInc/parabol/commit/af47966d6c07b295536327a3ee4d6bac1fece57b))


### Changed

* **ci:** add capability to manually generate Docker Images ([#9524](https://github.com/ParabolInc/parabol/issues/9524)) ([88bf97f](https://github.com/ParabolInc/parabol/commit/88bf97f6ff3e820d49a24e9a8a8cf4dbab46b22c))
* **gh-actions:** reporting status to Slack if test or build GH Actions fail ([#9512](https://github.com/ParabolInc/parabol/issues/9512)) ([e7539d1](https://github.com/ParabolInc/parabol/commit/e7539d152ccfb5fbe12bdcb9b5ce3cc64fd2955c))
* Remove Add Activity button from discussions ([#9528](https://github.com/ParabolInc/parabol/issues/9528)) ([37bd20c](https://github.com/ParabolInc/parabol/commit/37bd20cf8e073d353e3b3dffb5f3037c199adf67))

## [7.21.0](https://github.com/ParabolInc/parabol/compare/v7.20.0...v7.21.0) (2024-03-06)


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.21.0",
"version": "7.22.1",
"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.21.0",
"version": "7.22.1",
"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.21.0"
"parabol-server": "7.22.1"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ const ActivityDetails = (props: Props) => {
if (!activity) {
return <Redirect to='/activity-library' />
}
// eslint-disable react-hooks/rules-of-hooks -- return above violates these rules, but is just a safeguard and not normal usage
useEffect(() => {
SendClientSideEvent(atmosphere, 'Viewed Template', {
meetingType: activity.type,
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ import SendClientSideEvent from '../../utils/SendClientSideEvent'
import StartCheckInMutation from '../../mutations/StartCheckInMutation'
import StartTeamPromptMutation from '../../mutations/StartTeamPromptMutation'
import {PALETTE} from '../../styles/paletteV3'
import {CreateGcalEventInput} from '../../__generated__/StartRetrospectiveMutation.graphql'
import {
CreateGcalEventInput,
RecurrenceSettingsInput
} from '../../__generated__/StartRetrospectiveMutation.graphql'
import sortByTier from '../../utils/sortByTier'
import {MeetingTypeEnum} from '../../__generated__/ActivityDetailsQuery.graphql'
import {RecurrenceSettings} from '../Recurrence/RecurrenceSettings'
import NewMeetingSettingsToggleAnonymity from '../NewMeetingSettingsToggleAnonymity'
import NewMeetingSettingsToggleTeamHealth from '../NewMeetingSettingsToggleTeamHealth'
import NewMeetingSettingsToggleCheckIn from '../NewMeetingSettingsToggleCheckIn'
Expand All @@ -32,7 +34,6 @@ import FlatPrimaryButton from '../FlatPrimaryButton'
import NewMeetingActionsCurrentMeetings from '../NewMeetingActionsCurrentMeetings'
import RaisedButton from '../RaisedButton'
import NewMeetingTeamPicker from '../NewMeetingTeamPicker'
import {ActivityDetailsRecurrenceSettings} from './ActivityDetailsRecurrenceSettings'
import {AdhocTeamMultiSelect, Option} from '../AdhocTeamMultiSelect/AdhocTeamMultiSelect'
import {Select} from '../../ui/Select/Select'
import {SelectTrigger} from '../../ui/Select/SelectTrigger'
Expand Down Expand Up @@ -119,17 +120,13 @@ const ActivityDetailsSidebar = (props: Props) => {
...NewMeetingTeamPicker_teams
...NewMeetingActionsCurrentMeetings_team
...ScheduleMeetingButton_team
...ScheduleDialog_team
}
`,
teamsRef
)

const atmosphere = useAtmosphere()
const [recurrenceSettings, setRecurrenceSettings] = useState<RecurrenceSettings>({
name: '',
rrule: null
})

const templateTeam = teams.find((team) => team.id === selectedTemplate.teamId)

const availableTeams =
Expand Down Expand Up @@ -193,18 +190,23 @@ const ActivityDetailsSidebar = (props: Props) => {
}
: null

const handleStartActivity = (gcalInput?: CreateGcalEventInput) => {
const handleStartActivity = (
gcalInput?: CreateGcalEventInput,
recurrenceSettings?: RecurrenceSettingsInput
) => {
if (submitting) return
submitMutation()
if (type === 'teamPrompt') {
StartTeamPromptMutation(
atmosphere,
{
teamId: selectedTeam.id,
recurrenceSettings: {
rrule: recurrenceSettings.rrule?.toString(),
name: recurrenceSettings.name
},
recurrenceSettings: recurrenceSettings
? {
rrule: recurrenceSettings.rrule?.toString(),
name: recurrenceSettings.name
}
: undefined,
gcalInput
},
{history, onError, onCompleted}
Expand Down Expand Up @@ -238,10 +240,12 @@ const ActivityDetailsSidebar = (props: Props) => {
atmosphere,
{
teamId: selectedTeam.id,
recurrenceSettings: {
rrule: recurrenceSettings.rrule?.toString(),
name: recurrenceSettings.name
},
recurrenceSettings: recurrenceSettings
? {
rrule: recurrenceSettings.rrule?.toString(),
name: recurrenceSettings.name
}
: undefined,
gcalInput
},
{history, onError, onCompleted}
Expand Down Expand Up @@ -299,6 +303,20 @@ const ActivityDetailsSidebar = (props: Props) => {
history.push(`/me/organizations/${selectedTeam.orgId}/billing`)
}

const meetingNamePlaceholder =
type === 'retrospective'
? 'Retro'
: type === 'teamPrompt'
? 'Standup'
: type === 'poker'
? 'Poker'
: type === 'action'
? 'Check-in'
: 'Meeting'
const withRecurrence =
type === 'teamPrompt' ||
(selectedTeam.organization.featureFlags.recurringRetros && type === 'retrospective')

return (
<>
{isOpen && <div className='w-96' />}
Expand Down Expand Up @@ -404,13 +422,6 @@ const ActivityDetailsSidebar = (props: Props) => {
teamRef={selectedTeam}
/>
<NewMeetingSettingsToggleAnonymity settingsRef={selectedTeam.retroSettings} />
{selectedTeam.organization.featureFlags.recurringRetros && (
<ActivityDetailsRecurrenceSettings
onRecurrenceSettingsUpdated={setRecurrenceSettings}
recurrenceSettings={recurrenceSettings}
placeholder='Retro'
/>
)}
</>
)}
{type === 'poker' && (
Expand All @@ -419,13 +430,6 @@ const ActivityDetailsSidebar = (props: Props) => {
{type === 'action' && (
<NewMeetingSettingsToggleCheckIn settingsRef={selectedTeam.actionSettings} />
)}
{type === 'teamPrompt' && (
<ActivityDetailsRecurrenceSettings
onRecurrenceSettingsUpdated={setRecurrenceSettings}
recurrenceSettings={recurrenceSettings}
placeholder='Standup'
/>
)}
</>
)}
</div>
Expand All @@ -449,6 +453,8 @@ const ActivityDetailsSidebar = (props: Props) => {
handleStartActivity={handleStartActivity}
mutationProps={mutationProps}
teamRef={selectedTeam}
placeholder={meetingNamePlaceholder}
withRecurrence={withRecurrence}
/>
</>
)}
Expand Down
Loading

0 comments on commit 49c3eae

Please sign in to comment.