Skip to content

Commit

Permalink
🚀 8.6.1 (Kong#7014)
Browse files Browse the repository at this point in the history
* Bump app version to 8.6.1

* feat(unit-tests): Unit test reordering (Kong#7020)

* re-orderable test suites

* re-orderable tests

* fix ts

* Use db methods for sorting

* sort suites and unit tests in inso

* fix suite rename

* Fixes Kong#7011 (Kong#7012)

* Fixes Kong#7009 (Kong#7010)

* chore: edit changelog process [INS-3456] (Kong#7001)

* fix(workspace): Add default name for when creating a workspace (Kong#7046)

* Add default name for when creating a design/collection

* workspace update and creation

* fix filter history keys not being valid selectors (Kong#7040)

* remove invalid wide css prop (Kong#7041)

* feat(environment): update environments icons (Kong#7050)

* update environments icons

* fix workspace name

* fix one line editor being scrollable (Kong#7059)

* change 8.0 to 8 (Kong#7061)

* Cleanup page containers and add hint container in the page (Kong#7060)

* feat(pane-tabs): Consistent styles for tabs (Kong#7062)

* response/request pane tab counts

* tab dropdown colors

* fix updates to db leading to errors in loader fetchers (Kong#7033)

* feat(command-palette): add button to open the command palette (Kong#7064)

* add button for quick search

* update button styles in project

* make it look good with gh stars

* fix ts issue

* changelog

---------

Co-authored-by: Jack Kavanagh <3679927+jackkav@users.noreply.github.com>
Co-authored-by: James Gatz <jamesgatzos@gmail.com>
Co-authored-by: Jeroen Van den Berghe <vandenberghe.jeroen@gmail.com>
Co-authored-by: Filipe Freire <livrofubia@gmail.com>
  • Loading branch information
5 people committed Mar 13, 2024
1 parent edb9c8f commit 4cf5367
Show file tree
Hide file tree
Showing 45 changed files with 455 additions and 354 deletions.
171 changes: 0 additions & 171 deletions .github/workflows/changelog.yml

This file was deleted.

10 changes: 10 additions & 0 deletions .github/workflows/release-start.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,16 @@ jobs:
- name: Git Commit
run: git commit -am "Bump app version to ${{ env.RELEASE_VERSION }}"

- name: Update CHANGELOG
id: changelog
uses: requarks/changelog-action@v1
with:
token: ${{ secrets.RELEASE_GH_TOKEN }}
tag: ${{ github.ref_name }}

- name: Git Commit Changelog
run: git commit -am "update CHANGELOG.md for ${{ env.RELEASE_VERSION }} [skip ci]"

- name: Git Push changes
run: |
remote_repo="https://${GITHUB_ACTOR}:${RELEASE_GH_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
Expand Down
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [core@8.6.1] - 2024-02-06
### :sparkles: New Features
- [`e1e3b13`](https://github.com/Kong/insomnia/commit/e1e3b139b3bb917ab9dfcb0ce12d16079dee9c04) - **unit-tests**: Unit test reordering *(PR [#7020](https://github.com/Kong/insomnia/pull/7020) by [@gatzjames](https://github.com/gatzjames))*
- [`2249bb7`](https://github.com/Kong/insomnia/commit/2249bb7b98c947ab1cb11955928fd80d4adec845) - **environment**: update environments icons *(PR [#7050](https://github.com/Kong/insomnia/pull/7050) by [@gatzjames](https://github.com/gatzjames))*
- [`a09c233`](https://github.com/Kong/insomnia/commit/a09c23305c9c493105808b8df23d1911f5b59ea2) - **pane-tabs**: Consistent styles for tabs *(PR [#7062](https://github.com/Kong/insomnia/pull/7062) by [@gatzjames](https://github.com/gatzjames))*
- [`d1c2928`](https://github.com/Kong/insomnia/commit/d1c292891cc9dd8a17d4637f643336cf1afcccfa) - **command-palette**: add button to open the command palette *(PR [#7064](https://github.com/Kong/insomnia/pull/7064) by [@gatzjames](https://github.com/gatzjames))*

### :bug: Bug Fixes
- [`df0a791`](https://github.com/Kong/insomnia/commit/df0a79194143dc615310ecc0976381c538f695f2) - re-initialize the parameter editor state when switching between requests *(PR [#7005](https://github.com/Kong/insomnia/pull/7005) by [@gatzjames](https://github.com/gatzjames))*
- :arrow_lower_right: *fixes issue [#7000](undefined) opened by [@jwarner112](https://github.com/jwarner112)*
- [`3fceccf`](https://github.com/Kong/insomnia/commit/3fceccfdf691a0f3d7592f31120030eeff92be61) - **workspace**: Add default name for when creating a workspace *(PR [#7046](https://github.com/Kong/insomnia/pull/7046) by [@gatzjames](https://github.com/gatzjames))*

### :wrench: Chores
- [`353780e`](https://github.com/Kong/insomnia/commit/353780e16ab30853ce206398850c0c0f1c9bd887) - edit changelog process [INS-3456] *(PR [#7001](https://github.com/Kong/insomnia/pull/7001) by [@filfreire](https://github.com/filfreire))*


[core@8.6.1]: https://github.com/Kong/insomnia/compare/core@8.6.0...core@8.6.1
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"lint": "npm run lint --workspaces --if-present",
"type-check": "npm run type-check --workspaces --if-present",
"test": "npm run test --workspaces --if-present",
"lint:markdown": "npx markdownlint-cli2 \"**/*.md\" \"#**/node_modules\"",
"lint:markdown": "npx markdownlint-cli2 \"**/*.md\" \"#**/node_modules\" \"#**/CHANGELOG.md\"",
"clean": "git clean -dfX",
"inso-start": "npm start --workspace=packages/insomnia-inso",
"inso-package": "npm run build:sr --workspace=packages/insomnia && npm run package --workspace=packages/insomnia-inso",
Expand Down
2 changes: 1 addition & 1 deletion packages/insomnia-inso/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "insomnia-inso",
"version": "8.6.0",
"version": "8.6.1",
"homepage": "https://insomnia.rest",
"description": "A CLI for Insomnia - The Collaborative API Design Tool",
"author": "Kong <office@konghq.com>",
Expand Down
2 changes: 1 addition & 1 deletion packages/insomnia-inso/src/commands/run-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export async function runInsomniaTests(
suites.map(suite =>
createTestSuite(
suite,
db.UnitTest.filter(test => test.parentId === suite._id),
db.UnitTest.filter(test => test.parentId === suite._id).sort((a, b) => a.metaSortKey - b.metaSortKey),
),
),
);
Expand Down
2 changes: 2 additions & 0 deletions packages/insomnia-inso/src/db/models/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export type ApiSpec = BaseModel & BaseApiSpec;

interface BaseUnitTestSuite {
name: string;
metaSortKey: number;
}

export type UnitTestSuite = BaseModel & BaseUnitTestSuite;
Expand All @@ -25,6 +26,7 @@ interface BaseUnitTest {
name: string;
code: string;
requestId: string | null;
metaSortKey: number;
}

export type UnitTest = BaseModel & BaseUnitTest;
Expand Down
2 changes: 1 addition & 1 deletion packages/insomnia-inso/src/db/models/unit-test-suite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const loadTestSuites = (
const workspace = loadWorkspace(db, apiSpec?.parentId || identifier); // if identifier is for an apiSpec or a workspace, return all suites for that workspace

if (workspace) {
return db.UnitTestSuite.filter(s => s.parentId === workspace._id);
return db.UnitTestSuite.filter(s => s.parentId === workspace._id).sort((a, b) => a.metaSortKey - b.metaSortKey);
} // load particular suite

const result = loadUnitTestSuite(db, identifier);
Expand Down
2 changes: 1 addition & 1 deletion packages/insomnia-send-request/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"private": true,
"name": "insomnia-send-request",
"license": "Apache-2.0",
"version": "8.6.0",
"version": "8.6.1",
"author": "Kong <office@konghq.com>",
"main": "dist/index.js",
"types": "dist/send-request/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/insomnia-smoke-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"bugs": {
"url": "https://github.com/kong/insomnia/issues"
},
"version": "8.6.0",
"version": "8.6.1",
"scripts": {
"test:dev": "xvfb-maybe cross-env BUNDLE=dev playwright test",
"test:build": "xvfb-maybe cross-env BUNDLE=build playwright test",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ test.describe('Design interactions', async () => {
await page.getByLabel('New test').click();

// Rename test
await page.getByRole('button', { name: 'Returns 200' }).dblclick();
await page.getByRole('button', { name: 'Returns 200', exact: true }).dblclick();
// TODO(filipe) - Something is wrong here. It should be a single dblclick
await page.getByRole('button', { name: 'Returns 200', exact: true }).dblclick();
await page.getByRole('textbox').fill('Returns 200 and works');
await page.getByRole('textbox').press('Enter');
await page.getByRole('heading', { name: 'Returns 200 and works' }).click();
Expand Down
2 changes: 1 addition & 1 deletion packages/insomnia-testing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"private": true,
"name": "insomnia-testing",
"license": "Apache-2.0",
"version": "8.6.0",
"version": "8.6.1",
"author": "Kong <office@konghq.com>",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/insomnia/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "insomnia",
"version": "8.6.0",
"version": "8.6.1",
"productName": "Insomnia",
"private": true,
"description": "The Collaborative API Design Tool",
Expand Down
2 changes: 1 addition & 1 deletion packages/insomnia/src/common/hotkeys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const keyboardShortcutDescriptions: Record<KeyboardShortcut, string> = {
'request_showSettings': 'Show Request Settings',
'preferences_showKeyboardShortcuts': 'Show Keyboard Shortcuts',
'preferences_showGeneral': 'Show App Preferences',
'request_quickSwitch': 'Switch Requests',
'request_quickSwitch': 'Quick search',
'request_showRecent': 'Show Recent Requests',
'request_showRecentPrevious': 'Show Recent Requests (Previous)',
'plugin_reload': 'Reload Plugins',
Expand Down
12 changes: 1 addition & 11 deletions packages/insomnia/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,17 +99,7 @@
</div>
</div>
<div id="graphql-explorer-container"></div>
<div
id="dropdowns-container"
style="
z-index: 99999;
position: fixed;
right: -90000px;
top: -90000px;
width: 100vw;
height: 100vh;
"
></div>
<div id="hints-container" class="theme--dropdown__menu"></div>
<script src="./renderer.ts" type="module"></script>
</body>
</html>
Loading

0 comments on commit 4cf5367

Please sign in to comment.