Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: merge v4 to mgt-chat #3026

Merged
merged 62 commits into from
Feb 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
4769ef7
chore: refactor tests to await render events (#2855)
gavinbarron Nov 14, 2023
c3a3d82
fix: add method to clear selected channel in mgt-teams-channel-picker…
Mnickii Nov 20, 2023
700f6ef
chore: re-work cleanup pipeline (#2869)
gavinbarron Nov 21, 2023
f3e8599
docs: fix person-card sections component names in localization (#2888)
Mnickii Nov 30, 2023
ad4cfa3
fix: stop keydown from bubbling beyond people-picker (#2892)
gavinbarron Nov 30, 2023
59cccb0
fix: ensure filtering of tasks actually works (#2894)
gavinbarron Dec 1, 2023
64acd1f
feat: add edit funtionality to mgt-todo (#2783)
Mnickii Dec 1, 2023
df8af8c
feat: rename mgt-tasks to mgt-planner (#2890)
gavinbarron Dec 1, 2023
992ab85
feat: automatically convert disambiguation value to lowercase (#2898)
gavinbarron Dec 1, 2023
4c41534
fix: mgt-person avatar size customization in vertical layout (#2875)
Mnickii Dec 5, 2023
1796b6b
chore: add csp to storybook deployments (#2902)
gavinbarron Dec 6, 2023
9c53cbf
fix: update person details when mgt-person attributes are changed (#2…
Mnickii Dec 11, 2023
20eb7fc
fix: add connect img and frame csp directives (#2910)
gavinbarron Dec 11, 2023
86697f4
feat: promoting search components to GA (#2909)
sebastienlevert Dec 11, 2023
513031b
fix: increase area for placeholder (#2921)
gavinbarron Dec 19, 2023
ebf5ed3
fix: update the sandbox fallback url (#2924)
gavinbarron Jan 3, 2024
8900eb4
feat: add ElectronContextBridgeProvider (#2914)
trulysinclair Jan 3, 2024
81d124b
feat: scope aware requests (#2797)
gavinbarron Jan 4, 2024
981e6f9
fix: guard on non-existent result (#2931)
gavinbarron Jan 4, 2024
f2547d1
fix: direct reports list formatting (#2930)
gavinbarron Jan 4, 2024
53b291c
fix: enter email keypress behavior (#2928)
gavinbarron Jan 5, 2024
1cf2bc4
docs: updating storybook overview (#2927)
sebastienlevert Jan 9, 2024
90b2dd1
fix: adding headers and count on all potential advanced aad queries (…
sebastienlevert Jan 9, 2024
11459db
docs: fix custom element manifest generation (#2939)
gavinbarron Jan 9, 2024
267bc19
fix: remove readonly props from react components (#2946)
gavinbarron Jan 16, 2024
6d44a17
fix: consolidate person view types (#2943)
gavinbarron Jan 17, 2024
ec25e57
fix: correct permissions used for some requests (#2953)
gavinbarron Jan 18, 2024
6c28ab7
docs: fix zoom truncation for get story (#2932)
gavinbarron Jan 18, 2024
4dc50cf
docs: make refresh buttons have apparent actions (#2935)
gavinbarron Jan 18, 2024
14a96ff
feat: use `@lit/task` to schedule async data fetching (#2912)
gavinbarron Jan 22, 2024
e79fbdc
feat: add support for nested values in mgt-picker key-name (#2917)
andreasomayrat Jan 23, 2024
eda4b19
fix person image stretch (#2965)
Mnickii Jan 24, 2024
18d0aec
feat!: convert attribute enums to string unions (#2962)
gavinbarron Jan 24, 2024
3da9560
feat!: deprecate mgt-spfx package (#2940)
gavinbarron Jan 24, 2024
2fb1064
docs: adding react snippets in Storybook (#2934)
sebastienlevert Jan 24, 2024
73ae85c
docs: add story for picker nested values (#2973)
Mnickii Jan 25, 2024
ea0f71b
feat: remove mgt-loader (#2963)
gavinbarron Jan 25, 2024
65ca8e2
feat: add optional person-card to people picker (#2900)
Mnickii Jan 26, 2024
3e436de
chore: ensure rollup is run correctly (#2979)
gavinbarron Jan 26, 2024
06534ac
chore: Add permissions for workflows requiring GITHUB_TOKEN (#2971)
musale Jan 26, 2024
92a6b5e
docs: fixing person string unions for react stories (#2978)
sebastienlevert Jan 29, 2024
00fe946
chore: set license headers (#2985)
gavinbarron Jan 29, 2024
606fffb
fix: update rollup and rollup config (#2969)
musale Jan 29, 2024
5e261c0
chore: update pipelines to run on node 20 (#2986)
gavinbarron Jan 30, 2024
05f3249
chore: update pipeline tag filters (#3001)
gavinbarron Jan 30, 2024
daf06bc
docs: always load files in Storybook editor
musale Jan 31, 2024
573fa45
fix: add focus on input field when you click the button to add a new …
musale Feb 2, 2024
c8c564d
fix: clean-up react-contoso homepage (#3008)
Mnickii Feb 2, 2024
0317fc2
fix: typing for LocalizationHelper.strings (#2998)
gavinbarron Feb 2, 2024
744976d
chore: Update the permissions for PR reporting. (#3007)
musale Feb 2, 2024
f432d85
docs: make clear cache button adopt theming (#3010)
Mnickii Feb 2, 2024
b254e49
fix: add detail-line part attribute to person component (#2999)
Mnickii Feb 2, 2024
14bb9c1
fix: focus on the input when you cancel adding a todo (#3005)
musale Feb 2, 2024
eec74d0
fix: set add button to disabled until task name is provided (#2996)
musale Feb 2, 2024
0bad7e5
fix: msal setActiveAccount error (#3017)
gavinbarron Feb 5, 2024
52d8ad9
fix: correct completion of todo items (#3018)
Mnickii Feb 5, 2024
d5c993d
chore(main): release 4.0.0 (#2767)
gavinbarron Feb 5, 2024
ddf3ad2
merge from main
gavinbarron Feb 6, 2024
30265dd
backout self based access to setInterval
gavinbarron Feb 6, 2024
9c1ff30
updating tests to match behavior
gavinbarron Feb 6, 2024
5c44ae9
Change Viewtype values to match string literals
musale Feb 7, 2024
288dbf9
Use CSS classes to style mgt elements with disambiguation
musale Feb 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 1 addition & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ module.exports = {
'packages/mgt-chat/tsconfig.json',
'packages/mgt-components/tsconfig.json',
'packages/mgt-react/tsconfig.json',
'packages/mgt-spfx/tsconfig.json',
'packages/mgt-spfx-utils/tsconfig.json',
'packages/providers/mgt-electron-provider/tsconfig.authenticator.json',
'packages/providers/mgt-electron-provider/tsconfig.provider.json',
Expand All @@ -39,7 +38,7 @@ module.exports = {
'react-hooks'
],
root: true,
ignorePatterns: ['**/**-css.ts', '.eslintrc.js', '*.cjs'],
ignorePatterns: ['**/**-css.ts', '.eslintrc.js', '*.cjs', 'rollup.config.mjs'],
rules: {
'@typescript-eslint/no-explicit-any': 'warn',
// prefer-nullish-coalescing requires strictNullChecking to be turned on
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ This issue tracks the publishing progress for a release. It will get updated as
- [ ] Validate npm packages are published
- [ ] Validate mgt.dev is updated
- [ ] Validate https://aka.ms/ge and https://aka.ms/mgt/docs are embedding the latest documentation
- [ ] Validate GitHub release contains `mgt-spfx` asset
- [ ] Publish GitHub release
- [ ] Close the current milestone
- [ ] Increment `./package.json` version in main for building preview packages
7 changes: 1 addition & 6 deletions .github/workflows/next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

strategy:
matrix:
node-version: [18.x]
node-version: [20.x]

steps:
- uses: actions/checkout@v4
Expand All @@ -39,8 +39,3 @@ jobs:
if: github.repository == 'microsoftgraph/microsoft-graph-toolkit'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Upload a Build Artifact - mgt-spfx Solution
uses: actions/upload-artifact@v2
with:
name: mgt-spfx solution
path: packages/mgt-spfx/sharepoint/*
43 changes: 17 additions & 26 deletions .github/workflows/pr-clean-deployments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,18 @@ on:
types: [closed]
branches: [main, release/**, next/**]

permissions:
pull-requests: write
contents: write

jobs:
storybook:
if: "contains(github.event.pull_request.labels.*.name, 'Build: Storybook')"
cleanup:
if: "contains(github.event.pull_request.labels.*.name, 'Build: Storybook') || contains(github.event.pull_request.labels.*.name, 'Build: React Contoso')"
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]
node-version: [20.x]

steps:
- uses: actions/checkout@v4
Expand All @@ -26,33 +30,20 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org'
- run: |
- name: Setup git user
run: |
git config user.name github-actions
git config user.email [email protected]
- name: Remove pr storybook deployment
if: "contains(github.event.pull_request.labels.*.name, 'Build: Storybook')"
run: |
git rm -r next/pr/${{ github.event.number }}
git commit -m "PR ${{ github.event.number }} closed - remove storybook"
git push

react-contoso:
if: "contains(github.event.pull_request.labels.*.name, 'Build: React Contoso')"
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]

steps:
- uses: actions/checkout@v4
with:
ref: gh-pages
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org'
- run: |
git config user.name github-actions
git config user.email [email protected]
- name: Remove pr test app deployment
if: "contains(github.event.pull_request.labels.*.name, 'Build: React Contoso')"
run: |
git rm -r next/sample/pr/${{ github.event.number }}
git commit -m "PR ${{ github.event.number }} closed - remove react-contoso"
- name: Push changes
run: |
git push
7 changes: 7 additions & 0 deletions .github/workflows/pr-reporting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,18 @@ on:
types:
- completed

permissions:
pull-requests: write
contents: read
id-token: write
checks: write

jobs:
pr_report:
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ github.token }}

steps:
# added to work around missing .git repo wanted by gh cli
- uses: actions/checkout@v4
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/pr-storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,18 @@ on:
types: [opened, labeled, synchronize, reopened]
branches: [main, release/**, next/**]

permissions:
pull-requests: write
contents: write

jobs:
storybook:
if: "contains(github.event.pull_request.labels.*.name, 'Build: Storybook')"
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]
node-version: [20.x]

steps:
- uses: actions/checkout@v4
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/pr-test-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
types: [opened, labeled, synchronize, reopened]
branches: [main, release/**, next/**]

permissions:
pull-requests: write
contents: write

jobs:
react-contoso:
if: "contains(github.event.pull_request.labels.*.name, 'Build: React Contoso')"
Expand All @@ -18,7 +22,7 @@ jobs:

strategy:
matrix:
node-version: [18.x]
node-version: [20.x]

steps:
- uses: actions/checkout@v4
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,16 @@ on:
pull_request:
branches: [main, release/**, next/**]

permissions:
pull-requests: write

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]
node-version: [18.x, 20.x]

steps:
- uses: actions/checkout@v4
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/project-automation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,14 @@ on:
types:
- opened

permissions:
issues: write
repository-projects: read

jobs:
track_issue:
runs-on: ubuntu-latest

steps:
- name: Get project data
env:
Expand All @@ -32,8 +37,8 @@ jobs:
}' -f org=$PROJECT_ORGANIZATION -F number=$PROJECT_NUMBER > project_data.json

echo 'PROJECT_ID='$(jq '.data.organization.projectNext.id' project_data.json) >> $GITHUB_ENV
- name: Add issue to project

- name: Add issue to project
env:
GITHUB_TOKEN: ${{ secrets.PROJECT_ACCESS_TOKEN }}
ISSUE_ID: ${{ github.event.issue.node_id }}
Expand All @@ -43,4 +48,4 @@ jobs:
addProjectNextItem(input: {projectId: $project, contentId: $issue}) {
projectNextItem { id }
}
}' -f project=$PROJECT_ID -f issue=$ISSUE_ID
}' -f project=$PROJECT_ID -f issue=$ISSUE_ID
13 changes: 7 additions & 6 deletions .github/workflows/push-preview-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
name: Create Preview release
on:
push:
tags: ['v3.*-preview.*', 'v3.*-rc.*']
tags: ['*-preview.*', '*-rc.*']

permissions:
contents: write
pull-requests: write

jobs:
version:
Expand All @@ -19,7 +23,7 @@ jobs:

strategy:
matrix:
node-version: [18.x]
node-version: [20.x]

steps:
- uses: actions/checkout@v4
Expand All @@ -44,7 +48,7 @@ jobs:
if: needs.version.outputs.latest-version != needs.version.outputs.package-version
strategy:
matrix:
node-version: [18.x]
node-version: [20.x]

environment:
name: release
Expand Down Expand Up @@ -74,9 +78,6 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Attach mgt-spfx solution to GitHub release
run: node scripts/uploadSpfxSolution.js ${{secrets.GITHUB_TOKEN}} ${{needs.version.outputs.package-version}}

- name: ReleaseNotes
uses: anton-yurchenko/[email protected]
env:
Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/push-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ name: Release latest

on:
push:
tags: ['v3.*']
tags: ['v3.*', v4.*]
permissions:
contents: write

jobs:
version:
Expand All @@ -17,7 +19,7 @@ jobs:

strategy:
matrix:
node-version: [18.x]
node-version: [20.x]

steps:
- uses: actions/checkout@v4
Expand All @@ -42,7 +44,7 @@ jobs:
if: needs.version.outputs.latest-version != needs.version.outputs.package-version
strategy:
matrix:
node-version: [18.x]
node-version: [20.x]

environment:
name: release
Expand Down Expand Up @@ -72,9 +74,6 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Attach mgt-spfx solution to GitHub release
run: node scripts/uploadSpfxSolution.js ${{secrets.GITHUB_TOKEN}} ${{needs.version.outputs.package-version}}

- name: Notify TeamsFx Repo
uses: peter-evans/repository-dispatch@v2
with:
Expand All @@ -88,7 +87,7 @@ jobs:

strategy:
matrix:
node-version: [18.x]
node-version: [20.x]

steps:
- uses: actions/checkout@v4
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
if: github.repository == 'microsoftgraph/microsoft-graph-toolkit'
strategy:
matrix:
node-version: [18.x]
node-version: [20.x]

steps:
- uses: actions/checkout@v4
Expand All @@ -40,9 +40,3 @@ jobs:
run: lerna exec --scope @microsoft/* -- "npm publish --tag next --access=public"
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Upload a Build Artifact - mgt-spfx Solution
uses: actions/upload-artifact@v2
with:
name: mgt-spfx solution
path: packages/mgt-spfx/sharepoint/*
7 changes: 3 additions & 4 deletions .github/workflows/run-release-please.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# when the main branch is updated this workflow will run and create or update a combined [release PR](https://github.com/googleapis/release-please#whats-a-release-pr)
# upon approval of the release PR as it adds a v3.x tag the [push-release.yml](./push-release.yml) workflow will run, push the release to npm and update the GitHub
# release with the mgt-spfx sppkg file
# upon approval of the release PR as it adds a v3.x tag the [push-release.yml](./push-release.yml) workflow will run, push the release to npm
on:
push:
branches:
Expand All @@ -14,10 +13,10 @@ jobs:
release-please:
runs-on: ubuntu-latest
steps:
- name: Use Node.js 18.x
- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 18.x
node-version: 20.x
registry-url: 'https://registry.npmjs.org'
- uses: google-github-actions/release-please-action@v3
id: release
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,17 @@ on:
push:
branches: [main]

permissions:
contents: write

jobs:
build:
runs-on: ubuntu-latest
if: github.repository == 'microsoftgraph/microsoft-graph-toolkit'

strategy:
matrix:
node-version: [18.x]
node-version: [20.x]

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "3.1.3"
".": "4.0.0"
}
Loading
Loading