Skip to content

Commit 8c5fa34

Browse files
committed
Merge branch 'dev' into dependabot-upgrades
2 parents 6e13390 + ffd05dd commit 8c5fa34

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+3125
-584
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "10.4.1"
2+
".": "10.5.0"
33
}

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,19 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
## [10.5.0](https://github.com/microsoftgraph/microsoft-graph-explorer-v4/compare/v10.4.1...v10.5.0) (2024-12-02)
6+
7+
8+
### Features
9+
10+
* add a notification banner to display for first time users ([#3396](https://github.com/microsoftgraph/microsoft-graph-explorer-v4/issues/3396)) ([79e3b85](https://github.com/microsoftgraph/microsoft-graph-explorer-v4/commit/79e3b85083d305cbe2b8f851c48b3069aa180bdb))
11+
* API Permissions and Collections redesign ([#3391](https://github.com/microsoftgraph/microsoft-graph-explorer-v4/issues/3391)) ([d239f8f](https://github.com/microsoftgraph/microsoft-graph-explorer-v4/commit/d239f8fd53c2a937ef5d4c15a8e0ffd505c664f1))
12+
13+
14+
### Bug Fixes
15+
16+
* select only the required values from state and useEffect to get description error message ([#3395](https://github.com/microsoftgraph/microsoft-graph-explorer-v4/issues/3395)) ([9141255](https://github.com/microsoftgraph/microsoft-graph-explorer-v4/commit/914125564325f74f5e739835cfdf4afb353188fd))
17+
518
## [10.4.1](https://github.com/microsoftgraph/microsoft-graph-explorer-v4/compare/v10.4.0...v10.4.1) (2024-10-07)
619

720

package-lock.json

Lines changed: 1541 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "graph-explorer-v2",
3-
"version": "10.4.1",
3+
"version": "10.5.0",
44
"private": true,
55
"dependencies": {
66
"@augloop/types-core": "file:packages/types-core-2.16.189.tgz",

sonar-project.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ sonar.projectKey=microsoftgraph_microsoft-graph-explorer-v4
22
sonar.organization=microsoftgraph2
33
sonar.projectName=microsoft-graph-explorer-v4
44
// x-release-please-start-version
5-
sonar.projectVersion=10.4.1
5+
sonar.projectVersion=10.5.0
66
// x-release-please-end
77
sonar.host.url=https://sonarcloud.io
88

src/app/middleware/localStorageMiddleware.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ import { CURRENT_THEME } from '../services/graph-constants';
77
import { getUniquePaths } from '../services/reducers/collections-reducer.util';
88
import {
99
CHANGE_THEME_SUCCESS, COLLECTION_CREATE_SUCCESS,
10-
RESOURCEPATHS_ADD_SUCCESS, RESOURCEPATHS_DELETE_SUCCESS, SAMPLES_FETCH_SUCCESS
10+
RESOURCEPATHS_ADD_SUCCESS, RESOURCEPATHS_DELETE_SUCCESS,
11+
SAMPLES_FETCH_SUCCESS
1112
} from '../services/redux-constants';
1213
import { saveToLocalStorage } from '../utils/local-storage';
1314

src/app/services/actions/autocomplete-action-creators.spec.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,14 +103,20 @@ const mockState: ApplicationState = {
103103
permissions: [],
104104
error: null
105105
},
106-
collections: [],
106+
collections: {
107+
collections: [],
108+
saved: false
109+
},
107110
proxyUrl: ''
108111
}
109112

110113
store.getState = () => ({
111114
...mockState,
112115
proxyUrl: '',
113-
collections: [],
116+
collections: {
117+
collections: [],
118+
saved: false
119+
},
114120
graphExplorerMode: Mode.Complete,
115121
queryRunnerStatus: null,
116122
samples: {

src/app/services/actions/permissions-action-creator.spec.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,10 @@ const mockState: ApplicationState = {
124124
permissions: [],
125125
error: null
126126
},
127-
collections: [],
127+
collections: {
128+
collections: [],
129+
saved: false
130+
},
128131
proxyUrl: ''
129132
}
130133
const currentState = store.getState();

src/app/services/actions/resource-explorer-action-creators.spec.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,10 @@ const mockState: ApplicationState = {
9999
data: {},
100100
error: null
101101
},
102-
collections: [],
102+
collections: {
103+
collections: [],
104+
saved: false
105+
},
103106
proxyUrl: ''
104107
}
105108

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { createContext } from 'react';
2+
3+
import { CollectionPermission, ResourcePath } from '../../../../types/resources';
4+
5+
interface CollectionPermissionsContext {
6+
getPermissions: (paths: ResourcePath[]) => Promise<void>;
7+
permissions?: { [key: string]: CollectionPermission[] };
8+
isFetching?: boolean;
9+
}
10+
11+
// eslint-disable-next-line @typescript-eslint/no-redeclare
12+
export const CollectionPermissionsContext = createContext<CollectionPermissionsContext>(
13+
{} as CollectionPermissionsContext
14+
);

0 commit comments

Comments
 (0)