Skip to content

Commit

Permalink
Chore (release): 7.1.0 (#2300)
Browse files Browse the repository at this point in the history
* Task: Update dependencies (#1356)

* Chore(deps): Bump style-loader from 0.23.1 to 2.0.0 (#1283)

* Chore(deps): Bump babel-loader from 8.2.2 to 8.2.3 (#1285)

* Chore(deps-dev): Bump node-fetch from 2.6.1 to 3.1.0 (#1286)

* Chore(deps-dev): Bump @typescript-eslint/eslint-plugin from 4.15.0 to 4.33.0 (#1287)

* Chore(deps): Bump typescript from 4.1.5 to 4.5.4

* update package dependencies

* add variable types

* remove added caret

* Chore(deps-dev): Bump color-string from 1.6.0 to 1.9.0 (#1342)

* Chore(deps-dev): Bump selenium-webdriver from 4.0.0-beta.4 to 4.1.1 (#1343)

* Chore(deps): Bump follow-redirects from 1.14.1 to 1.14.7 (#1354)

* update packages

* update dependencies

* add status message to history item (#1364)

* Fix: disable link highlighting (#1358)

* expand and collapse resource links on selection

* remove vertical outline from resource links

* Fix version validation for autocomplete (#1357)

* Remove extra slashes in the query sanitization process

* Only fetch autocomplete suggestions if version is valid

* Add warning for user if version specified for query is invalid

* Fix: Enable focus to remain on copy button when clicked (#1379)

* add focus function to copy buttons

* remove closing dialog function

* Fix: Add aria-label for items in the sample queries tab (#1378)

* Add ariaLabel

* change to lowercase

* Update from microsoftgraph/microsoft-graph-devx-content@4a246ee (#1384)

Co-authored-by: content-assistant <67429574+content-assistant[bot]@users.noreply.github.com>

* chore/handover-translations-202201301912

* Fix: Query input 'i' icon focus (#1377)

* change Icon to button

* localize string

* Update user profile info if they use a different account to consent to permissions (#1380)

* Update documentation link icon (#1390)

* Update documentation link icon

* Use theme color for documentation link icon

* Fix: Text overflowing on feedback and access token tabs (#1382)

* Show Resource Explorer HTTP methods next to resource (#1367)

* Display HTTP methods in Resource Explorer like they are shown in Samples Queries

* Show functions on resource explorer tree at the top

* Update Postman collection preview

* Enable resource explorer tab

* Organise Postman collection into resource groups instead of having one long list and improve names of endpoints

* Add ResourceLinkType enum

* Set query on clicking list item

* change pivot items order (#1407)

* Hide resources tab (#1408)

* Fix copy button on response headers (#1409)

Co-authored-by: Millicent Achieng <achieng.milli@gmail.com>

* Fix: Appearing/Disappearing popup (#1418)

* remove ocps token call

* retuen ocps call

* remove getPolicies dispatch

* hide feedback button

* dsiable pop up if user is AAD

* Fix: Selectively disable HTTP cache for failing anonymous fetch calls (#1391)

* temporarily disable Http cache for failing anonymous GET calls

* selectively add cache headers before fetch

* fix failing test

* chore/handover-translations-202202041836 (#1425)

* Update from microsoftgraph/microsoft-graph-devx-content@dabcdcf

* chore/handover-translations-202202061812 (#1428)

* Update from microsoftgraph/microsoft-graph-devx-content@a9f2f50

Co-authored-by: content-assistant <67429574+content-assistant[bot]@users.noreply.github.com>

* chore/handover-translations-202202071552 (#1430)

* Update from microsoftgraph/microsoft-graph-devx-content@bff58f2

Co-authored-by: content-assistant <67429574+content-assistant[bot]@users.noreply.github.com>

* Release: February 2022 (#1447)

* chore(release): 4.16.2

* Fix: hanging run query button (#1445)

* Fix: Narrator announces Tab items activation (#1435)

* add aria-controls to request pivots

* add aria-controls on respopnse pivots

* add aria-controls on adaptive card pivots

* add aria-controls on code snippets pivots

* add aria-controls on sidebar pivots

* Fix: Remove extra outline from search boxes (#1438)

* remove search box outline

* fix linting error

* add correct types on History component

* Fix: Resize sidebar (#1433)

* add resize to left side of screen

* add spacing between resize and component

* make status messages independent

* remove semi-colon (#1457)

* Task: Add Manifest Generator task for EO compliance (#1439)

* Add Manifest Generator task for EO compliance

* Publish manifest artifact

* Create manifest directory, fix paths

* Fix paths

* Fix indent

* Update azure-pipelines.yml

* Add component governance

Co-authored-by: Elinor <ekaguongo@gmail.com>

* Task: Migrate from webpack v4 to webpack v5 (#1395)

* update plugins and loaders

* update react dev utils

* add FixFormatter plugin

* update fork-ts package

* fix json parsing errors

* add eslint-webpack-plugin

* update react-dev-utils

* update eslint config

* fix linting errors

* remove unsupported plugin

* remove caret

* update webpack config file

* update node-sass package

* update webpack-config

* downgarde node-sass and upgrade webpack-dev-server

* remove close function

* update webpack dev server settings

* update webpack config settings

* update build info path

* update vulnerable dependencies

* add babel/runtime dependency

* configure babel to use relative path

* update Workbox options

* update babel-preset-react-app

* adding babel-preset for webpack 5

* update babel packages and settings

* add new rule

* rename babel config file

* add runtime preset

* Update linter.yml

* Update azure-static-web-apps-jolly-sand-0ac78c710.yml

* increase cache size

* remove coverage path fix to invoke path error

* test coverage with unix environment

* refactor sonar analysis to a separate workflow

* refactor sonarcloud to workflows directory

* revert to the original linter workflow

* Update azure-static-web-apps-jolly-sand-0ac78c710.yml

* Update linter.yml

* update webpack config file

* update eslint packages

* update import

* update errors

* add localization

* update @typescript-eslint packages

* remove try...catch

* remove unused import

* remove unused string

* display error message

* remove plugin

* remove commented code

Co-authored-by: Evans Aboge <evansonoka05.j@gmail.com>
Co-authored-by: Charles Wahome <thewahome.cw@gmail.com>

* Fix: Toolkit component text padding (#1461)

* polish toolkit message

* justify text

* refactor styles to styles file

* Enhancement: Changes position of feedback button (#1455)

* change position of feedback button

* restore return types on app title functions

* add a test for the feedback button

* float feedback button in mobile view

* fix code smell

* add padding to tooltip

* remove unused imports

* add padding to tooltip content

* fix linting error

* chore/handover-translations-202202180932 (#1468)

* Update from microsoftgraph/microsoft-graph-devx-content@d5e41f0

* Update GE_de-DE.json

Co-authored-by: content-assistant <67429574+content-assistant[bot]@users.noreply.github.com>
Co-authored-by: Millicent Achieng <achieng.milli@gmail.com>

* Update from microsoftgraph/microsoft-graph-devx-content@7b20a49 (#1469)

Co-authored-by: content-assistant <67429574+content-assistant[bot]@users.noreply.github.com>

* Task: Improve test coverage (#1434)

* add test coverage for root app

* add react testing library to dev dependencies

* added tests

* coverage currently 53%

* test coverage at 70%

* fix linting errors

* update coverage

* clean up tests

* fix augloop file path

* fix linting error

* fix linting error

* restore workflow

* remove unnecessary mocks

* fix code smells

* fix failing tests

* merge with dev

* fix merge conflicts

* Update from microsoftgraph/microsoft-graph-devx-content@0910e71 (#1471)

Co-authored-by: content-assistant <67429574+content-assistant[bot]@users.noreply.github.com>

* chore: handover translations 202202182126

Co-authored-by: content-assistant <67429574+content-assistant[bot]@users.noreply.github.com>

* chore: handover translations 202202190029

Co-authored-by: content-assistant <67429574+content-assistant[bot]@users.noreply.github.com>

* chore: handover translations 202202190327

Co-authored-by: content-assistant <67429574+content-assistant[bot]@users.noreply.github.com>

* chore: handover translations 202202191226

Co-authored-by: content-assistant <67429574+content-assistant[bot]@users.noreply.github.com>

* Chore: update dependencies (#1476)

* Chore(deps): Bump @axe-core/webdriverjs from 4.3.1 to 4.4.0 (#1466)

* Chore(deps): Bump redux from 4.0.1 to 4.1.2 (#1404)

* Chore(deps-dev): Bump enzyme from 3.9.0 to 3.11.0 (#1406)

* Chore(deps): Bump monaco-editor-webpack-plugin from 4.0.0 to 4.2.0 (#1401)

* Chore(deps-dev): Bump @types/react-intl from 2.3.17 to 3.0.0 (#1399)

* Chore(deps-dev): Bump tslint from 5.12.1 to 5.20.1 (#1397)

* Chore(deps-dev): Bump ws from 8.2.3 to 8.5.0 (#1448)

* Chore(deps-dev): Bump url-parse from 1.5.3 to 1.5.6 (#1477)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Disable invalid space error on url on carriage returns (#1464)

* run query on Enter

* Chore: reorganise test files (#1481)

* add new code owner (#1485)

* Chore: remove unnecessary packages (#1487)

* Fix: Selectively disable invalid url warning (#1484)

* selectively disable white space error

* adjust tests

* decode url within a try catch (#1489)

* decode URI within a try catch

* refactor sanitizeQueryUrl function

* Fix: Corrects position of feedback button and GE title (#1492)

* add feedback button to side menu

* fix app title section

* Task: Adjust feedback popup time (#1496)

* Fix/share button enhancement (#1459)

* move copy button near query runner

* add margin

* switch button positions

* remove flex-wrap property

* disable flexwrap at 150% resolution

* update QueryInput test

* fix code smells

* restore share query behavior

* refactor share query to its own component

* remove debug statements

* remove duplications

* add space between internal and external imports

* Tests: move spec files closer to file under test (#1497)

* Chore: change build agent to MsGraphBuildAgentsWindows (#1511)

* Fix: try-it experience layout (#1495)

* Tests: skip spec.tsx files (#1519)

* Enhancement: Code snippets UI (#1494)

* update editor look

* remove focus styling

* remove ruler border

* fix: restore accessibility tests (#1526)

* Fix: Show correct information on Modify Permissions tab (#1498)

* display correct information on modify permissions tab

* remove unnecessary code

* fix failing tests

* remove hasUrl property

* fix code smell

* Fix: Add Fluent Responsive stylesheet (#1500)

* add fabric-core-css

* change to percentage values

* add grid columns and rows

* adjust styling

* Adjust height

* adjust heights

* add grid columns and rows

* fix content display on hide sidebar menu

* reduce left padding

* adjust right margin

* adjust position of feedback button

* Chore: Cut a release github workflow (#1514)

* Fix: Authentication error handling (#1547)

* disable linting rule when throwing authentication errors

* add missing semi-colons

* Chore: Update to 4.17.0 (#1548)

* Bump version to 4.17.0

* Try using hosted image (#1551)

* Chore: Update to 4.18.0 (#1552)

* Chore: Update packages from Dependabot: March (#1554)

* Fix: Code snippet generation (#1559)

* Chore(deps): Bump glob-parent from 3.1.0 to 5.1.2 (#1563)

* Enhancement: Adjust position of chevron icon on history items' headers (#1562)

* Fix: Update Tip message format (#1570)

* Fix: validate permissions before any operations (#1578)

* Restore resources tab (#1319)

* Restore resources tab

* Fix: Shorten overflowing resource links (#1353)

* Add ellipsis to long links

* add dynamic ellipsis to links

* refactor responsive sizes

* refactor range selection to resource utils file

* adjust overflow widths

* restore resources tab for tests

* refactor overflow width calculation to utils file

* disable resources tab

* merge dev

* Update Sidebar.tsx

* fix overflow bug

* disable link display

* Align node items on resource explorer horizontally

* Simplify sortResourceLinks method

* Search all resource nodes and expand node if hit is found in child

* Debounce resources search

* Deep copy resources when searching and filtering by version

* On searching resources, do not expand node if parent node is not expanded.

* Use const on variable that's not been reassigned

* switch versions using toggle button

* fix: ellipsis on resources (#1533)

* generate flattened postman collection

* add multiple versions to collection

* remove folder collections from test

* discard entire collection without opening preview

* make label inline

* remove caret; add ariaLabel

Co-authored-by: Millicent Achieng <miachien@microsoft.com>
Co-authored-by: EvansA <evansonoka05.j@gmail.com>
Co-authored-by: Charles Wahome <thewahome.cw@gmail.com>

* Fix: Narrator announces more information about a sample query header (#1583)

* Fix: Parse whitespace in query parameters (#1555)

* Update from microsoftgraph/microsoft-graph-devx-content@85e8e81 (#1598)

Co-authored-by: content-assistant <67429574+content-assistant[bot]@users.noreply.github.com>

* Chore: Update to 5.0.0 (#1581)

* chore: handover-translations-202204042239 (#1605)

Co-authored-by: content-assistant <67429574+content-assistant[bot]@users.noreply.github.com>

* chore: handover-translations-202204042241 (#1606)

Co-authored-by: content-assistant <67429574+content-assistant[bot]@users.noreply.github.com>

* Fix: Makes app consistent on all browsers (#1602)

* Chore: Update MsGraph JavaScript SDK (#1568)

* Fix: Update query field when a sample query is selected (#1607)

* Chore: Dependabot upgrades (#1603)

* Add query resulting in CORS error to list for the appropriate message to be displayed (#1580)

* Enhancement: Add more info to code snippets (#1540)

* add more information to code snippets

* add shortened links to code snippets

* update GE json file

* add shortened links to snippets

* add telemetry to cnode snippet links

* fix console error

* add noopener property

* fix code smell

* adjust left margin

* remove condition

* add colors for different themes

* add specific telemetry information for sdk links

* remove redundant code

* include telemetry for snippet doc links

* update PR

Co-authored-by: Charles Wahome <thewahome.cw@gmail.com>

* Fix: Header position on try-it experience (#1636)

* Task: Bulk update of dependabot upgrades  (#1638)

* Task: Package updates (#1641)

* Fix: Display permissions on modify permissions tab (#1642)

* Fix: Signing out on Try-It  (#1634)

* Update from microsoftgraph/microsoft-graph-devx-content@05a22ce (#1644)

Co-authored-by: content-assistant <67429574+content-assistant[bot]@users.noreply.github.com>

* Handle CORS error thrown when GE attempts to download file from a redirect (#1629)

* Fix: Send proper request body type for code snippets (#1639)

* Fix: Sidebar and query response components on zoom (#1658)

* Chore: Update to 5.1.0 (#1661)

* Fix: Build information for feedback and telemetry (#1669)

* Task: Persist sidebar selection (#1664)

* Chore: Update fluentUI package (#1674)

* Chore: Update to 5.1.1 (#1680)

* Bump version to 5.1.1

* Fix: Request section layout (#1681)

* Task: Refactor permissions (#1665)

* Fix: Permissions consent button color (#1679)

* Fix: OCV Feedback rating (#1687)

* Chore: Update to 5.2.0 (#1728)

* Show isolated resources (#1741)

* Fix: Refactor sample queries (#1677)

* Improve efficiency of query sanitization regexes (#1726)

* Simplify query parameter sanitization regex

* Decode query parameters separately during sanitization since decodeURIComponent cannot be used directly to parse query parameters from a URL and needs a bit of preparation

* Update sanitization regex that checks if property name is valid

* Update regex that matches filter segments during query sanitization

* Update query sanitization regex to prevent catastrophic backtracking

* Add tests to check for catastrophic backtracking

* Simplify 'filter' query option value sanitization regex

* Task: auto merge dependabot PRs into one PR (#1735)

* Add history items as a batch (#1748)

* Fix: Expand/Collapse toggling (#1750)

* Use compliant 1es agent pool (#1760)

* Fix: Add overflow aria-label (#1758)

* Update from microsoftgraph/microsoft-graph-devx-content@492b2b1 (#1764)

Co-authored-by: content-assistant <67429574+content-assistant[bot]@users.noreply.github.com>

* Update from microsoftgraph/microsoft-graph-devx-content@aa5c01f (#1765)

Co-authored-by: content-assistant <67429574+content-assistant[bot]@users.noreply.github.com>

* chore: handover translations 202205302030

Co-authored-by: content-assistant <67429574+content-assistant[bot]@users.noreply.github.com>

* chore: handover translations 202205302328

Co-authored-by: content-assistant <67429574+content-assistant[bot]@users.noreply.github.com>

* chore: handover translations 202205310228

Co-authored-by: content-assistant <67429574+content-assistant[bot]@users.noreply.github.com>

* Chore: handover-translations (#1770)

* Remove button-name from accessibility exclusion (#1762)

* Chore: Consolidate github workflows (#1740)

* Task: localise resource explorer (#1753)

* Update from microsoftgraph/microsoft-graph-devx-content@0c14202 (#1804)

Co-authored-by: content-assistant <67429574+content-assistant[bot]@users.noreply.github.com>

* Update from microsoftgraph/microsoft-graph-devx-content@d6dee03 (#1805)

Co-authored-by: content-assistant <67429574+content-assistant[bot]@users.noreply.github.com>

* chore: handover translations 202206030349

Co-authored-by: content-assistant <67429574+content-assistant[bot]@users.noreply.github.com>

* Task: Make request headers editable (#1801)

* Update from microsoftgraph/microsoft-graph-devx-content@6c874ce (#1812)

* Update from microsoftgraph/microsoft-graph-devx-content@ee2107a (#1813)

* Update from microsoftgraph/microsoft-graph-devx-content@079af7b (#1817)

* Update from microsoftgraph/microsoft-graph-devx-content@e2c5808 (#1816)

* chore: handover translations 202206072100

Co-authored-by: content-assistant <67429574+content-assistant[bot]@users.noreply.github.com>
Co-authored-by: EvansA <evansonoka05.j@gmail.com>

* Chore: Dependabot-upgrades-June (#1814)

* Chore(deps): Bump typescript from 4.6.4 to 4.7.2 (#1780)

* Chore(deps-dev): Bump @typescript-eslint/parser from 5.18.0 to 5.27.0 (#1779)

* Chore(deps): Bump @fluentui/react from 8.66.1 to 8.72.1 (#1800)

* Chore(deps): Bump workbox-webpack-plugin from 6.5.2 to 6.5.3 (#1797)

* Chore(deps-dev): Bump acorn from 8.7.0 to 8.7.1 (#1798)

* Chore(deps-dev): Bump selenium-webdriver and @types/selenium-webdriver (#1796)

* Chore(deps-dev): Bump @testing-library/react from 13.0.0 to 13.3.0 (#1795)

* Chore(deps): Bump eslint-plugin-react from 7.29.4 to 7.30.0 (#1794)

* Chore(deps): Bump postcss-preset-env from 7.4.3 to 7.7.0 (#1791)

* Chore(deps): Bump @microsoft/applicationinsights-react-js (#1790)

* Chore(deps): Bump @monaco-editor/react from 4.4.1 to 4.4.5 (#1781)

* Chore(deps): Bump @babel/runtime from 7.17.9 to 7.18.3 (#1783)

* Chore(deps): Bump webpack-dev-server from 4.8.1 to 4.9.1 (#1785)

* Chore(deps): Bump babel-loader from 8.2.4 to 8.2.5 (#1786)

* Chore(deps): Bump webpack from 5.72.0 to 5.72.1 (#1788)

* Chore(deps): Bump redux from 4.1.2 to 4.2.0 (#1789)

* Chore(deps): Bump postcss-loader from 6.2.1 to 7.0.0 (#1793)

* Chore(deps-dev): Bump babel-jest from 27.5.1 to 28.1.0 (#1792)

* Add headers to snippet request (#1810)

* Feature: Add Graph Explorer header (#1682)


* Task: page layout (#1683)

* Task: Profile callout styles (#1686)

* Task: Extend sidebar content space (#1709)

* Fix: panel overlay (#1714)

* remove scrollbar from menu (#1717)

* Fix: align right header items (#1720)

* remove flex-wrap property (#1737)

* Task: Move permissions button (#1755)

* Task: Increase help and settings box sizes (#1756)

* fix auth icon size (#1759)

* Fix: Restore permissions styles (#1761)

* Limits sidebar resize (#1769)

* Task: tenant name ellipsis (#1799)

* Revert "Task: tenant name ellipsis (#1799)" (#1818)

* Chore: Update to 6.0.0 (#1820)

* Speed up tests (#1840)

* Sanitize sampleUrl before sharing (#1842)

* Fix search box position on resources tab (#1833)

* Fix: Enable promptless logout (#1841)

* Add test for history item expiry (#1848)

* Task: Persist Query Response selection (#1850)

* Task: Remove .spec.tsx tests add tests on App.spec.tsx file (#1837)

* Add test confirming users can sign out (#1851)

* Chore: Migrate FabricBot Tasks to Config-as-Code (#1857)

Co-authored-by: msftbot[bot] <48340428+msftbot[bot]@users.noreply.github.com>

* Feature: autocomplete typeahead (#1802)

* Editorial fixes (#1890)

* Update from microsoftgraph/microsoft-graph-devx-content@5c4b691 (#1901)

Co-authored-by: content-assistant <67429574+content-assistant[bot]@users.noreply.github.com>

* Update from microsoftgraph/microsoft-graph-devx-content@19a4a36 (#1905)

* Add search results information (#1891)

* Update from microsoftgraph/microsoft-graph-devx-content@c204a3a (#1910)

Co-authored-by: content-assistant <67429574+content-assistant[bot]@users.noreply.github.com>

* Update from microsoftgraph/microsoft-graph-devx-content@2c56f1b (#1911)

* Update from microsoftgraph/microsoft-graph-devx-content@8bcd07e (#1917)

* Update from microsoftgraph/microsoft-graph-devx-content@a6c0545 (#1916)

* Update from microsoftgraph/microsoft-graph-devx-content@a07e90e (#1915)

* Update from microsoftgraph/microsoft-graph-devx-content@c77e6c3 (#1914)

* Update from microsoftgraph/microsoft-graph-devx-content@fed5835 (#1913)

* chore: handover translations 202207081347 (#1912)

* Fix: Add h1 tags (#1921)

* Fix: Update link classes (#1902)

* Add telemetry for feedback button (#1852)

* Fix: run query over sanitization (#1925)

* Remove experimental code (#1926)

* Fix: Add focus on Request body editor (#1904)

* Chore: Update to 6.1.0 (#1927)

* Chore: reduce PR body content (#1937)

* Fix: Center method names on sample queries (#1940)

* Feature: Add PHP Snippets tab. (#1923)

* Fix: Return focus to feedback button (#1941)

* July dependabot upgrades (#1920)

* Task: Add missing header telemetry (#1944)

* Fix: Remove pivot tooltips (#1952)

* Fix: Remove toggleCollapse string (#1951)

* Fix: Toolkit component scrolling  (#1946)

* Chore(deps): Bump terser from 5.13.1 to 5.14.2 (#1953)

* Fix: Use resources as a source of truth (#1956)

* blocks calls to the API for path segments

* only make calls when querying parameters

Co-authored-by: Elinor <ekaguongo@gmail.com>

* Chore: Update to 6.2.0 (#1959)

* Task: Add PHP docs link telemetry (#1961)

* Revert "Feature: Add PHP Snippets tab. (#1923)" (#1985)

* Disable sanitization of query url when sharing query (#1993)

* Bump version to 6.2.0

* Disable shrinking of the query textbox (#1995)

* Fix: Update Forbidden-403 message (#1997)

* Fix: Persist snippet tabs (#1958)

* Update from microsoftgraph/microsoft-graph-devx-content@a345bce (#2006)

* Update from microsoftgraph/microsoft-graph-devx-content@852a8fa (#2011)

* Update from microsoftgraph/microsoft-graph-devx-content@bf993df (#2007)

* Set sample url regardless of version (#2004)

* Fix: Return undefined when account type is not established (#2000)

* Revert "Feature: Add PHP Snippets tab. (#1923)" (#2012)

* Chore: Update to 6.3.0 (#2014)

* chore: automate adding issues to project board (#1992)

* Validate permissions and consented scopes before accessing them (#2023)

* Remove scrollbars from expanded modal (#1999)

* Fix: Text-alignment on the text in query response tabs (#2025)

* Left align text on query response tabs

* Remove emptyStateLabel class name

Co-authored-by: MG <t-mgitonga@microsoft.com>
Co-authored-by: EvansA <evansonoka05.j@gmail.com>

* Fix: Autoloading suggestions on  /me (#2037)

* Chore: Dependabot upgrades-August (#2003)

* Chore(deps): Bump @axe-core/webdriverjs from 4.4.2 to 4.4.3 (#1881)

* Chore(deps): Bump @babel/runtime from 7.18.3 to 7.18.6 (#1880)

* Chore(deps): Bump office-ui-fabric-core from 11.0.0 to 11.0.1 (#1879)

* Chore(deps-dev): Bump jest-watch-typeahead from 1.0.0 to 1.1.0 (#1878)

* Chore(deps-dev): Bump babel-jest from 28.1.0 to 28.1.2 (#1877)

* Chore(deps): Bump postcss-preset-env from 7.7.0 to 7.7.2 (#1876)

* Chore(deps): Bump webpack from 5.72.1 to 5.73.0 (#1875)

* Chore(deps): Bump typescript from 4.7.2 to 4.7.4 (#1874)

* Chore(deps): Bump @microsoft/applicationinsights-web from 2.7.6 to 2.8.4 (#1873)

* Chore(deps): Bump fork-ts-checker-webpack-plugin from 7.2.3 to 7.2.11 (#1872)

* Chore(deps): Bump @babel/core from 7.17.9 to 7.18.6 (#1871)

* Chore(deps-dev): Bump ts-jest from 28.0.1 to 28.0.5 (#1870)

* Chore(deps-dev): Bump jest-environment-jsdom from 28.1.0 to 28.1.2 (#1869)

* Chore(deps-dev): Bump @testing-library/user-event from 14.1.1 to 14.2.1 (#1868)

* Chore(deps-dev): Bump selenium-webdriver from 4.2.0 to 4.3.0 (#1866)

* Chore(deps): Bump mini-css-extract-plugin from 2.6.0 to 2.6.1 (#1865)

* Chore(deps-dev): Bump @typescript-eslint/parser from 5.27.0 to 5.30.5 (#1897)

* Chore(deps): Bump @azure/msal-browser from 2.23.0 to 2.27.0 (#1896)

* Chore(deps): Bump fork-ts-checker-webpack-plugin from 7.2.11 to 7.2.13 (#1962)

* Chore(deps-dev): Bump jest-environment-jsdom from 28.1.2 to 28.1.3 (#1963)

* Chore(deps): Bump webpack-dev-server from 4.9.1 to 4.9.3 (#1964)

* Chore(deps-dev): Bump @typescript-eslint/eslint-plugin (#1968)

* Chore(deps): Bump @babel/core from 7.18.6 to 7.18.10 (#1969)

* Chore(deps): Bump bootstrap from 5.1.3 to 5.2.0 (#1971)

* Chore(deps-dev): Bump eslint from 8.12.0 to 8.21.0 (#1972)

* Chore(deps-dev): Bump selenium-webdriver and @types/selenium-webdriver (#1966)

* Chore(deps-dev): Bump jest-watch-typeahead from 1.1.0 to 2.0.0 (#1967)

* Chore(deps): Bump @babel/runtime from 7.18.6 to 7.18.9 (#1970)

* Chore(deps): Bump webpack from 5.73.0 to 5.74.0 (#1973)

* Chore(deps): Bump eslint-plugin-react from 7.30.0 to 7.30.1 (#1975)

* Chore(deps): Bump sass-loader from 12.6.0 to 13.0.2 (#1976)

* Chore(deps): Bump postcss-loader from 7.0.0 to 7.0.1 (#1977)

* Chore(deps-dev): Bump @testing-library/user-event from 14.2.1 to 14.4.1 (#1994)

* Chore(deps): Bump @microsoft/applicationinsights-web from 2.8.4 to 2.8.6 (#1996)

* Chore(deps): Bump resolve from 1.22.0 to 1.22.1 (#1974)

* Chore(deps): Bump @microsoft/applicationinsights-react-js (#1978)

* Fix: Update the cached queries in queries.ts (#2042)

Co-authored-by: MG <t-mgitonga@microsoft.com>

* Fix: Disable running queries on clicking samples (#2045)

* Fix: Populate method with GET for queries selected from tips (#2047)

* Fix: Resize query response area when zoomed out (#2048)

* Fix query response area bottom to parent bottom using FlexBox

* Add height on request body

* Fix: Response area pivot font sizes (#2049)

* Reduce share query button size (#2059)

* Fix: Return correct error response status (#2053)

* Fix: Speed up autocomplete (#2041)

* Fix: Localize 'Expand' string (#2057)

* Fix: Schema validation for Adaptive cards  (#2062)

* Task: Add device characteristics telemetry (#2056)

Co-authored-by: Evans Aboge

* Fix: Ensure consistent font sizes on all Pivots (#2067)

* Fix: Prevent unintentional display of suggestions (#2070)

* Fix: failing api calls (#2068)

* Fix: Cut release to master (#2075)

* Fix: cut release to master (#2077)

* Chore: Update to 6.4.0 (#2078)

* Task: Fix auto-collapsing of permissions items (#2099)

* Fix: Prevent sample groups from collapsing (#2101)

* Fix: Remove float CSS property on snippets (#2106)

* Task: Take Modify Permissions out of preview (#2110)

* Fix: Update wordSeparators in Monaco (#2109)

* Task: fix accessibility unnecessary empty data scans (#2118)

* Fix: Failing tests (#2144)

* Fix: failing tests [Attempt 2] (#2145)

* Chore: Dependabot upgrades September 2022 (#2098)

* Task: Update doc.microsoft links to learn.microsoft (#2148)

* Fix: stop recursive deep copy (#2151)

* display suggestions for placeholder segments (#2156)

* Fix: Reloading of permissions tab when permissions panel is opened (#2154)

* Chore: Update to 6.5.0 (#2158)

* Task: Fix auto-collapsing of permissions items (#2099)

* Task: Take Modify Permissions out of preview (#2110)

* Task: fix accessibility unnecessary empty data scans (#2118)

* Task: Update doc.microsoft links to learn.microsoft (#2148)

* Task: Remove errors telemetry filter to capture more details (#2124)

* Fix: Prevent sample groups from collapsing (#2101)

* Fix: Remove float CSS property on snippets (#2106)

* Fix: Update wordSeparators in Monaco (#2109)

* Fix: Failing tests (#2144)

* Fix: failing tests [Attempt 2] (#2145)

* Fix: stop recursive deep copy (#2151)

* Fix: display suggestions for placeholder segments (#2156)

* Fix: Pass empty array to signOutSuccess when signing out (#2162)

* Chore: Dependabot upgrades September 2022 (#2098)

* Feature: ABNF validation (#2044)

* Fix: Permission search results (#2167)

* Fix: Component name on device characteristics event (#2173)

* Task: upgrade redux (#2179)

* Task: Add Adaptive card templates to local repo (#2182)

* Task: Update adaptive cards templating (#2183)

* Fix: Add consent status for successful consent (#2187)

* Chore: Update to 7.0.0 (#2217)

* Chore: remove class components (#2226)

* Fix: Update HAR file export from the History queries (#2236)

* Fix: Add ariaLabels on the Sample Queries documentation icons (#2237)

* Update from microsoftgraph/microsoft-graph-devx-content@a2d5baf (#2244)

* Fix: Permissions filtering on permissions panel (#2246)

* Fix: Add mgt link colors (#2240)

* Chore: Move codeowners to team, add JIT admin access cfig (#2249)

* Enhancement: sample queries cache (#2239)

* Task: Update packages (#2248)

* Chore: Update react (#2234)

* Fix: pattern matching urls (#2259)

* Fix: Autocomplete double click (#2255)

* Fix: MSA account jwt token (#2254)

* Fix: Modify permissions styling (#2263)

* Fix: % symbol crash (#2267)

* Fix: Adaptive cards color on dark mode (#2288)

* Bump version to 7.1.0

* format package-lock

* remove previously deleted tests

* Test access

* fix build step

* Fix history items (#2301)

Co-authored-by: EvansA <evansonoka05.j@gmail.com>
Co-authored-by: Millicent Achieng <achieng.milli@gmail.com>
Co-authored-by: Charles Wahome <thewahome.cw@gmail.com>
Co-authored-by: content-assistant <67429574+content-assistant[bot]@users.noreply.github.com>
Co-authored-by: Michael Mainer <MIchaelMainer@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Millicent Achieng <miachien@microsoft.com>
Co-authored-by: msftbot[bot] <48340428+msftbot[bot]@users.noreply.github.com>
Co-authored-by: silaskenneth <silaskenneth1@gmail.com>
Co-authored-by: Gavin Barron <gavin.barron@gmail.com>
Co-authored-by: Maryann Gitonga <34104277+MaryannGitonga@users.noreply.github.com>
Co-authored-by: MG <t-mgitonga@microsoft.com>
Co-authored-by: github-actions <github-actions@github.com>
  • Loading branch information
15 people authored Dec 13, 2022
1 parent 1979149 commit 399068a
Show file tree
Hide file tree
Showing 94 changed files with 2,178 additions and 3,399 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ module.exports = {
}],
'spaced-comment': 'off',
'use-isnan': 'error',
'valid-typeof': 'off'
'valid-typeof': 'off',
'react/react-in-jsx-scope': 'off'
},
settings: {
react: {
Expand Down
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @thewahome @ElinorW @adhiambovivian @millicentachieng @ddyett @Onokaev
* @microsoft-graph-explorer-v4-write
12 changes: 12 additions & 0 deletions .github/policies/jit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: JIT_Access
description: Policy for admin JIT for microsoft-graph-explorer-v4 repo

resource: repository

configuration:
jitAccess:
enabled: true
maxHours: 2
approvers:
requestors:
role: write
2 changes: 0 additions & 2 deletions __mocks__/react-monaco-editor.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import * as React from 'react';

function MonacoEditor() {
return (<div />);
}
Expand Down
2,856 changes: 1,081 additions & 1,775 deletions package-lock.json

Large diffs are not rendered by default.

45 changes: 23 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,54 +1,55 @@
{
"name": "graph-explorer-v2",
"version": "7.0.0",
"version": "7.1.0",
"private": true,
"dependencies": {
"@augloop/types-core": "file:packages/types-core-2.16.189.tgz",
"@axe-core/webdriverjs": "4.4.5",
"@azure/msal-browser": "2.27.0",
"@azure/msal-browser": "2.30.0",
"@babel/core": "7.19.3",
"@babel/runtime": "7.19.0",
"@fluentui/react": "8.97.1",
"@fluentui/react-icons-mdl2": "1.3.8",
"@babel/runtime": "7.20.1",
"@fluentui/react": "8.100.0",
"@fluentui/react-icons-mdl2": "1.3.25",
"@microsoft/applicationinsights-react-js": "3.4.0",
"@microsoft/applicationinsights-web": "2.8.6",
"@microsoft/applicationinsights-web": "2.8.9",
"@microsoft/microsoft-graph-client": "3.0.2",
"@monaco-editor/react": "4.4.6",
"@ms-ofb/officebrowserfeedbacknpm": "file:packages/officebrowserfeedbacknpm-1.6.6.tgz",
"adaptive-expressions": "4.17.1",
"adaptivecards": "2.11.1",
"adaptivecards-templating": "2.3.1",
"ajv": "8.11.0",
"apg-js": "4.1.2",
"babel-loader": "8.2.5",
"babel-preset-react-app": "10.0.1",
"bfj": "7.0.2",
"bootstrap": "5.2.0",
"bootstrap": "5.2.2",
"case-sensitive-paths-webpack-plugin": "2.4.0",
"css-loader": "6.7.1",
"dotenv": "16.0.3",
"dotenv-expand": "9.0.0",
"eslint-config-react-app": "7.0.1",
"eslint-plugin-react": "7.31.8",
"eslint-webpack-plugin": "3.1.1",
"express": "4.18.1",
"eslint-plugin-react": "7.31.10",
"eslint-webpack-plugin": "3.2.0",
"express": "4.18.2",
"file-loader": "6.2.0",
"fork-ts-checker-webpack-plugin": "7.2.13",
"fs-extra": "10.1.0",
"guid-typescript": "1.0.9",
"isomorphic-fetch": "3.0.0",
"localforage": "1.10.0",
"mini-css-extract-plugin": "2.6.1",
"monaco-editor": "0.34.0",
"monaco-editor": "0.34.1",
"monaco-editor-webpack-plugin": "7.0.1",
"office-ui-fabric-core": "11.0.1",
"postcss-flexbugs-fixes": "5.0.2",
"postcss-loader": "7.0.1",
"postcss-preset-env": "7.8.2",
"re-resizable": "6.9.9",
"react": "16.14.0",
"react": "18.2.0",
"react-app-polyfill": "3.0.0",
"react-dom": "16.14.0",
"react-intl": "2.8.0",
"react-dom": "18.2.0",
"react-intl": "6.2.1",
"react-redux": "8.0.4",
"redux": "4.2.0",
"redux-thunk": "2.4.1",
Expand All @@ -60,7 +61,7 @@
"url": "0.11.0",
"url-loader": "4.1.1",
"webpack": "5.74.0",
"webpack-dev-server": "4.9.3",
"webpack-dev-server": "4.11.1",
"webpack-manifest-plugin": "5.0.0",
"workbox-webpack-plugin": "6.5.4"
},
Expand Down Expand Up @@ -95,25 +96,25 @@
"@types/isomorphic-fetch": "0.0.36",
"@types/jest": "27.4.1",
"@types/lodash.debounce": "4.0.7",
"@types/react": "17.0.44",
"@types/react-dom": "17.0.11",
"@types/react": "18.0.25",
"@types/react-dom": "18.0.8",
"@types/react-intl": "3.0.0",
"@types/react-redux": "7.1.23",
"@types/redux-logger": "3.0.9",
"@types/redux-mock-store": "1.0.3",
"@types/selenium-webdriver": "4.1.5",
"@typescript-eslint/eslint-plugin": "5.38.1",
"@typescript-eslint/parser": "5.38.1",
"acorn": "8.8.0",
"babel-jest": "29.1.2",
"acorn": "8.8.1",
"babel-jest": "^29.2.2",
"chromedriver": "106.0.1",
"enzyme": "3.11.0",
"enzyme-adapter-react-16": "1.15.6",
"eslint": "8.24.0",
"eslint": "8.27.0",
"html-webpack-plugin": "5.5.0",
"jest": "28.1.0",
"jest-environment-jsdom": "28.1.3",
"jest-canvas-mock": "2.4.0",
"jest-environment-jsdom": "28.1.3",
"jest-fetch-mock": "3.0.3",
"jest-sonar-reporter": "2.0.0",
"jest-watch-typeahead": "2.2.0",
Expand All @@ -131,6 +132,6 @@
"indent": 4
},
"resolutions": {
"@types/react": "17.0.30"
"axe-core": "4.4.3"
}
}
18 changes: 15 additions & 3 deletions src/app/middleware/localStorageMiddleware.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
import { samplesCache } from '../../modules/cache/samples.cache';
import { saveTheme } from '../../themes/theme-utils';
import { AppAction } from '../../types/action';
import { CHANGE_THEME_SUCCESS } from '../services/redux-constants';
import {
CHANGE_THEME_SUCCESS, SAMPLES_FETCH_SUCCESS
} from '../services/redux-constants';

const localStorageMiddleware = () => (next: any) => (action: AppAction) => {
if (action.type === CHANGE_THEME_SUCCESS) {
saveTheme(action.response);
switch (action.type) {
case CHANGE_THEME_SUCCESS:
saveTheme(action.response);
break;

case SAMPLES_FETCH_SUCCESS:
samplesCache.saveSamples(action.response);
break;

default:
break;
}
return next(action);
};
Expand Down
3 changes: 2 additions & 1 deletion src/app/services/actions/ocps-action-creators.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ describe('OCPS action creators', () => {
const store = mockStore({});
const expectedActions = [
{
type: GET_POLICY_PENDING
type: GET_POLICY_PENDING,
response: null
},
{
type: GET_POLICY_SUCCESS,
Expand Down
2 changes: 1 addition & 1 deletion src/app/services/actions/profile-action-creators.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ describe('Profile action creators', () => {
// Assert
expect(action).toEqual(expectedAction);
});
});
});
4 changes: 2 additions & 2 deletions src/app/services/actions/query-action-creators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { IQuery } from '../../../types/query-runner';
import { IStatus } from '../../../types/status';
import { ClientError } from '../../utils/error-utils/ClientError';
import { setStatusMessage } from '../../utils/status-message';
import { writeHistoryData } from '../../views/sidebar/history/history-utils';
import { historyCache } from '../../../modules/cache/history-utils';
import {
anonymousRequest,
authenticatedRequest,
Expand Down Expand Up @@ -180,7 +180,7 @@ async function createHistory(
result
};

writeHistoryData(historyItem);
historyCache.writeHistoryData(historyItem);

dispatch(addHistoryItem(historyItem));
return result;
Expand Down
15 changes: 4 additions & 11 deletions src/app/services/actions/request-history-action-creators.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
} from '../redux-constants';
import { IHistoryItem } from '../../../types/history';
import { AppAction } from '../../../types/action';
import { IGraphResponse } from '../../../types/query-response';

const middlewares = [thunk];
const mockStore = configureMockStore(middlewares);
Expand All @@ -37,17 +38,9 @@ describe('Request History Action Creators', () => {

it('should dispatch VIEW_HISTORY_ITEM_SUCCESS when viewHistoryItem() is called with a valid history item', () => {
// Assert
const response: IHistoryItem = {
index: 0,
statusText: 'Something worked!',
responseHeaders: [],
result: {},
url: 'https://graph.microsoft.com/v1.0/me',
method: 'GET',
headers: [],
createdAt: Date.now().toString(),
status: 200,
duration: 200
const response: IGraphResponse = {
body: undefined,
headers: undefined
}

const expectedAction: AppAction = {
Expand Down
11 changes: 7 additions & 4 deletions src/app/services/actions/request-history-action-creators.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

import { AppAction } from '../../../types/action';
import { IHistoryItem } from '../../../types/history';
import { bulkRemoveHistoryData, removeHistoryData } from '../../views/sidebar/history/history-utils';
import { historyCache } from '../../../modules/cache/history-utils';
import {
ADD_HISTORY_ITEM_SUCCESS,
REMOVE_ALL_HISTORY_ITEMS_SUCCESS,
Expand All @@ -27,15 +27,18 @@ export function bulkAddHistoryItems(historyItems: IHistoryItem[]): AppAction {
export function viewHistoryItem(historyItem: IHistoryItem): AppAction {
return {
type: VIEW_HISTORY_ITEM_SUCCESS,
response: historyItem
response: {
body: historyItem.result,
headers: historyItem.headers
}
};
}

export function removeHistoryItem(historyItem: IHistoryItem) {

delete historyItem.category;
return async (dispatch: Function) => {
return removeHistoryData(historyItem)
return historyCache.removeHistoryData(historyItem)
.then(() => {
dispatch({
type: REMOVE_HISTORY_ITEM_SUCCESS,
Expand All @@ -53,7 +56,7 @@ export function bulkRemoveHistoryItems(historyItems: IHistoryItem[]) {
});

return async (dispatch: Function) => {
return bulkRemoveHistoryData(listOfKeys)
return historyCache.bulkRemoveHistoryData(listOfKeys)
.then(() => {
dispatch({
type: REMOVE_ALL_HISTORY_ITEMS_SUCCESS,
Expand Down
8 changes: 7 additions & 1 deletion src/app/services/actions/samples-action-creators.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { geLocale } from '../../../appLocale';
import { samplesCache } from '../../../modules/cache/samples.cache';
import { AppDispatch } from '../../../store';
import { AppAction } from '../../../types/action';
import { IRequestOptions } from '../../../types/request';
import { queries } from '../../views/sidebar/sample-queries/queries';
import {
SAMPLES_FETCH_ERROR,
SAMPLES_FETCH_PENDING,
Expand Down Expand Up @@ -55,7 +57,11 @@ export function fetchSamples() {
const res = await response.json();
return dispatch(fetchSamplesSuccess(res.sampleQueries));
} catch (error) {
return dispatch(fetchSamplesError({ error }));
let cachedSamples = await samplesCache.readSamples();
if (cachedSamples.length === 0) {
cachedSamples = queries;
}
return dispatch(fetchSamplesError(cachedSamples));
}
};
}
3 changes: 2 additions & 1 deletion src/app/services/actions/snippet-action-creator.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ describe('Snippet actions creators', () => {
// Arrange
const expectedActions = [
{
type: 'GET_SNIPPET_PENDING'
type: 'GET_SNIPPET_PENDING',
response: null
},
{
type: GET_SNIPPET_SUCCESS,
Expand Down
8 changes: 2 additions & 6 deletions src/app/services/reducers/samples-reducers.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,11 @@ describe('Samples Reducer', () => {
error: null
};

const mockResponse = {
status: 400
};

const newState = { ...initialState };
newState.error = mockResponse;
newState.error = 'error';
newState.queries = queries;

const queryAction = { type: SAMPLES_FETCH_ERROR, response: mockResponse };
const queryAction = { type: SAMPLES_FETCH_ERROR, response: queries };
const state = samples(initialState, queryAction);

expect(state).toEqual(newState);
Expand Down
5 changes: 2 additions & 3 deletions src/app/services/reducers/samples-reducers.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { AppAction } from '../../../types/action';
import { queries } from '../../views/sidebar/sample-queries/queries';
import { SAMPLES_FETCH_ERROR, SAMPLES_FETCH_PENDING, SAMPLES_FETCH_SUCCESS } from '../redux-constants';

const initialState = {
Expand All @@ -25,8 +24,8 @@ export function samples(state = initialState, action: AppAction): any {
return {
...state,
pending: false,
queries,
error: action.response
queries: action.response,
error: 'error'
};
default:
return state;
Expand Down
3 changes: 3 additions & 0 deletions src/app/utils/device-characteristics-telemetry.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
export function getBrowserScreenSize(browserWidth: number){
if (browserWidth >= 2560) {
return 'xxxxl';
}
if(browserWidth >= 1920){
return 'xxxl';
}
Expand Down
20 changes: 19 additions & 1 deletion src/app/utils/resources/resources-filter.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { IResource } from '../../../types/resources';
import { hasPlaceHolders } from '../sample-url-generation';

function getResourcesSupportedByVersion(
resources: IResource[],
Expand Down Expand Up @@ -42,8 +43,25 @@ function searchResources(haystack: IResource[], needle: string): IResource[] {
return foundResources;
}

function getMatchingResourceForUrl(url: string, resources: IResource[]): IResource | undefined {
const parts = url.split('/').filter(k => k !== '');
let matching = [...resources];
let node;
for (const path of parts) {
if (hasPlaceHolders(path)) {
node = matching.find(k => hasPlaceHolders(k.segment));
matching = node?.children || [];
} else {
node = matching.find(k => k.segment === path);
matching = node?.children || [];
}
}
return node;
}

export {
searchResources,
getResourcesSupportedByVersion,
versionExists
versionExists,
getMatchingResourceForUrl
}
Loading

0 comments on commit 399068a

Please sign in to comment.