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

Final Staging #1740

Merged
merged 78 commits into from
Nov 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
111c6e5
updated macOS pattern
imolorhe Oct 20, 2021
70719c6
Add import/export menu in client app
AlexandruValeanu Oct 22, 2021
667f04c
Change 'Restore' to 'Import'
AlexandruValeanu Oct 22, 2021
4697b31
iadded post request script to exported window
imolorhe Oct 24, 2021
009aff3
Merge pull request #1729 from altair-graphql/add-post-request-to-expo…
imolorhe Oct 24, 2021
06d07bb
New translations default.json (Acholi)
imolorhe Oct 24, 2021
d9a271f
New translations default.json (Portuguese)
imolorhe Oct 24, 2021
0ec0bfb
New translations default.json (Portuguese, Brazilian)
imolorhe Oct 24, 2021
7cdfa69
New translations default.json (Vietnamese)
imolorhe Oct 24, 2021
e5dcb0b
New translations default.json (English)
imolorhe Oct 24, 2021
34826d4
New translations default.json (Chinese Traditional)
imolorhe Oct 24, 2021
5385c35
New translations default.json (Chinese Simplified)
imolorhe Oct 24, 2021
c5acd80
New translations default.json (Ukrainian)
imolorhe Oct 24, 2021
6f94fba
New translations default.json (Turkish)
imolorhe Oct 24, 2021
b9a18d5
New translations default.json (Swedish)
imolorhe Oct 24, 2021
043329f
New translations default.json (Serbian (Cyrillic))
imolorhe Oct 24, 2021
27b503f
New translations default.json (Russian)
imolorhe Oct 24, 2021
2ea2f42
New translations default.json (Romanian)
imolorhe Oct 24, 2021
9b39863
New translations default.json (French)
imolorhe Oct 24, 2021
a6610d9
New translations default.json (Norwegian)
imolorhe Oct 24, 2021
7d8991b
New translations default.json (Dutch)
imolorhe Oct 24, 2021
c181888
New translations default.json (Korean)
imolorhe Oct 24, 2021
523ebc3
New translations default.json (Japanese)
imolorhe Oct 24, 2021
c60e94c
New translations default.json (Italian)
imolorhe Oct 24, 2021
f40a140
New translations default.json (Hungarian)
imolorhe Oct 24, 2021
8152c94
New translations default.json (Finnish)
imolorhe Oct 24, 2021
a2e1690
New translations default.json (German)
imolorhe Oct 24, 2021
9c53fab
New translations default.json (Danish)
imolorhe Oct 24, 2021
6f7beb4
New translations default.json (Czech)
imolorhe Oct 24, 2021
50b38d1
New translations default.json (Spanish)
imolorhe Oct 24, 2021
03b318c
New translations default.json (Polish)
imolorhe Oct 24, 2021
4c8bc3a
Merge branch 'staging' into l10n_staging
imolorhe Oct 24, 2021
d00f283
Merge pull request #1730 from altair-graphql/l10n_staging
imolorhe Oct 24, 2021
1f0555b
Merge branch 'staging' into 1691_import_export_data
AlexandruValeanu Oct 24, 2021
bb3fb9a
Move import/export to settings menu
AlexandruValeanu Oct 25, 2021
a41fe8e
Remove debugging logs
AlexandruValeanu Oct 28, 2021
8fad3fb
Merge pull request #1728 from AlexandruValeanu/1691_import_export_data
imolorhe Oct 28, 2021
a261d74
New translations default.json (Romanian)
imolorhe Oct 28, 2021
af290af
New translations default.json (Spanish)
imolorhe Oct 28, 2021
d94563f
New translations default.json (Czech)
imolorhe Oct 28, 2021
0fc950b
New translations default.json (Danish)
imolorhe Oct 28, 2021
4ffd694
New translations default.json (German)
imolorhe Oct 28, 2021
76183f3
New translations default.json (Finnish)
imolorhe Oct 28, 2021
c568268
New translations default.json (Hungarian)
imolorhe Oct 28, 2021
9028a37
New translations default.json (Italian)
imolorhe Oct 28, 2021
f5fb039
New translations default.json (French)
imolorhe Oct 28, 2021
1cd10d0
New translations default.json (Turkish)
imolorhe Oct 28, 2021
788fa2c
New translations default.json (Portuguese, Brazilian)
imolorhe Oct 28, 2021
639c67d
New translations default.json (Vietnamese)
imolorhe Oct 28, 2021
ff97ad4
New translations default.json (English)
imolorhe Oct 28, 2021
4fe6f21
New translations default.json (Chinese Traditional)
imolorhe Oct 28, 2021
39bab55
New translations default.json (Chinese Simplified)
imolorhe Oct 28, 2021
6ee8a40
New translations default.json (Ukrainian)
imolorhe Oct 28, 2021
dc98272
New translations default.json (Polish)
imolorhe Oct 28, 2021
c8f6d0d
New translations default.json (Swedish)
imolorhe Oct 28, 2021
3f30930
New translations default.json (Serbian (Cyrillic))
imolorhe Oct 28, 2021
f72b8ca
New translations default.json (Russian)
imolorhe Oct 28, 2021
ce277af
New translations default.json (Portuguese)
imolorhe Oct 28, 2021
e3ddd1d
New translations default.json (Norwegian)
imolorhe Oct 28, 2021
208ffd1
New translations default.json (Dutch)
imolorhe Oct 28, 2021
5f88a84
New translations default.json (Korean)
imolorhe Oct 28, 2021
c5a14ed
New translations default.json (Japanese)
imolorhe Oct 28, 2021
d093102
New translations default.json (Acholi)
imolorhe Oct 28, 2021
3a6a499
general updates
imolorhe Oct 28, 2021
bfbdfa7
add header component redesigned
imolorhe Oct 28, 2021
7f1e9c4
updated tests
imolorhe Oct 28, 2021
5679ba5
Merge branch 'staging' into l10n_staging
imolorhe Oct 28, 2021
e23eb25
Merge pull request #1733 from altair-graphql/l10n_staging
imolorhe Oct 28, 2021
40c3c52
Merge branch 'staging' into general-ui-updates
imolorhe Oct 28, 2021
f0206da
Merge pull request #1732 from altair-graphql/general-ui-updates
imolorhe Oct 29, 2021
b35f789
add variable checker to full url checker
Nov 12, 2021
c9c15cc
use regex from env service
Nov 12, 2021
6014ec8
add tests for getFullUrl method
Nov 12, 2021
71e3906
Apply suggestions from code review
imolorhe Nov 12, 2021
b424810
updated chrome version to 95.0.4638.69
imolorhe Nov 12, 2021
efbdf50
Merge branch 'staging' into staging
imolorhe Nov 12, 2021
19af277
Merge pull request #1737 from kiptrs/staging
imolorhe Nov 12, 2021
f19d613
update all staging instructions to master
imolorhe Nov 13, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ jobs:
repo_token: ${{ secrets.github_token }}
prerelease: false
draft: true
# - id: staging-pr
# - id: master-pr
# uses: peter-evans/create-pull-request@v3
# with:
# branch: staging
# branch: master
# base: master
# title: Staging to master
# title: master to master
outputs:
release-tag: ${{ steps.release-draft.outputs.automatic_releases_tag }}
# staging-pr-id: ${{ steps.staging-pr.outputs.pull-request-number }}
# master-pr-id: ${{ steps.master-pr.outputs.pull-request-number }}
electron:
strategy:
matrix:
Expand Down Expand Up @@ -124,7 +124,7 @@ jobs:
# - uses: peter-evans/enable-pull-request-automerge@v1
# with:
# token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
# pull-request-number: ${{ needs.prepare-release.outputs.staging-pr-id }}
# pull-request-number: ${{ needs.prepare-release.outputs.master-pr-id }}
deploy-docs:
name: Deploy docs
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/staging.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Staging
name: Master

on:
push:
branches:
- staging
- master

jobs:
translate:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Altair provides several features that make developing with GraphQL very efficien

### Missing feature?

Is there a feature that is missing? You can let us know by creating a [new issue](https://github.com/altair-graphql/altair/issues/new) or you can add the feature by creating a [Pull Request](https://github.com/altair-graphql/altair/blob/staging/.github/CONTRIBUTING.md).
Is there a feature that is missing? You can let us know by creating a [new issue](https://github.com/altair-graphql/altair/issues/new) or you can add the feature by creating a [Pull Request](https://github.com/altair-graphql/altair/blob/master/.github/CONTRIBUTING.md).

## Sponsors
Thanks to all our sponsors for sponsoring this project! Do you use Altair GraphQL client at your company? Consider supporting this project as a major sponsor (primary, gold, silver or bronze) on [open collective](https://opencollective.com/altair/contribute).
Expand Down Expand Up @@ -126,7 +126,7 @@ $ composer require xkojimedia/laravel-altair-graphql
*You can find other available integrations here: https://altair.sirmuel.design/docs/integrations*

### Configuration Options
When using a custom instance of Altair, there are [couple of options](https://github.com/altair-graphql/altair/blob/staging/packages/altair-app/src/app/modules/altair/config.ts#L9) you can use to customize Altair based on your needs:
When using a custom instance of Altair, there are [couple of options](https://github.com/altair-graphql/altair/blob/master/packages/altair-app/src/app/modules/altair/config.ts#L9) you can use to customize Altair based on your needs:

- `endpointURL` `string` - URL to set as the server endpoint
- `subscriptionsEndpoint` `string` - URL to set as the subscription endpoint
Expand Down
2 changes: 1 addition & 1 deletion bin/publish_packages_local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ LATEST_TAG=$(git describe --tags `git rev-list --tags --max-count=1`)
git checkout $LATEST_TAG
yarn lerna bootstrap
yarn lerna publish from-git --force-publish=* --no-git-tag-version --no-push --yes
git checkout staging
git checkout master
4 changes: 2 additions & 2 deletions chocolatey/altair-graphql.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ This is a nuspec. It mostly adheres to https://docs.nuget.org/create/Nuspec-Refe
<iconUrl>https://altair.sirmuel.design/assets/img/altair_logo_128.png</iconUrl>
<!-- <copyright>Year Software Vendor</copyright> -->
<!-- If there is a license Url available, it is required for the community feed -->
<licenseUrl>https://github.com/altair-graphql/altair/blob/staging/.github/LICENSE</licenseUrl>
<licenseUrl>https://github.com/altair-graphql/altair/blob/master/.github/LICENSE</licenseUrl>
<!-- <requireLicenseAcceptance>true</requireLicenseAcceptance>-->
<projectSourceUrl>https://github.com/imolorhe/altair</projectSourceUrl>
<docsUrl>https://github.com/altair-graphql/altair/blob/staging/chocolatey/README.md</docsUrl>
<docsUrl>https://github.com/altair-graphql/altair/blob/master/chocolatey/README.md</docsUrl>
<!--<mailingListUrl></mailingListUrl>-->
<bugTrackerUrl>https://github.com/altair-graphql/altair/issues</bugTrackerUrl>
<tags>altair-graphql graphql graphql-client altair opensource graphql-editor graphql-ide graphiql graphql-subscriptions</tags>
Expand Down
2 changes: 1 addition & 1 deletion packages/altair-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"generate-settings-schema-validator": "./scripts/generate-settings-schema.sh",
"analyze": "ng build --stats-json && npx webpack-bundle-analyzer dist/stats.json",
"analyze:prod": "ng build --prod --aot --stats-json && npx webpack-bundle-analyzer dist/stats.json",
"webdriver-update-ci": "webdriver-manager update --standalone false --gecko false --versions.chrome=93.0.4577.63"
"webdriver-update-ci": "webdriver-manager update --standalone false --gecko false --versions.chrome=95.0.4638.69"
},
"dependencies": {
"@angular/animations": "^12.2.6",
Expand Down
2 changes: 2 additions & 0 deletions packages/altair-app/src/app/modules/altair/altair.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import { getReducer, metaReducers, reducerToken } from './store';

import { QueryEffects } from './effects/query.effect';
import { WindowsEffects } from './effects/windows.effect';
import { WindowsMetaEffects } from './effects/windows-meta.effect';
import { QueryCollectionEffects } from './effects/query-collection.effect';
import { PluginEventEffects } from './effects/plugin-event.effect';
import { LocalEffects } from './effects/local.effect';
Expand Down Expand Up @@ -139,6 +140,7 @@ const providers = [
EffectsModule.forRoot([
QueryEffects,
WindowsEffects,
WindowsMetaEffects,
QueryCollectionEffects,
PluginEventEffects,
LocalEffects,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { SharedModule } from '../modules/shared/shared.module';
import { PipesModule } from '../pipes';
import { DirectivesModule } from '../directives';

import { HeaderComponent } from './header/header.component';
import { QueryEditorComponent } from './query-editor/query-editor.component';
import { QueryResultComponent } from './query-result/query-result.component';
import { ActionBarComponent } from './action-bar/action-bar.component';
Expand Down Expand Up @@ -39,6 +40,7 @@ import { PluginManagerComponent } from './plugin-manager/plugin-manager.componen
import { ElementWrapperComponent } from './element-wrapper/element-wrapper.component';

const COMPONENTS = [
HeaderComponent,
QueryEditorComponent,
QueryResultComponent,
ActionBarComponent,
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
<app-icon name="more-vertical"></app-icon>
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`HeaderComponent should render correctly 1`] = `
<app-header>
<div
class="header__logo-wrapper"
>
<img
alt="logo"
class="header__logo"
src="assets/img/logo.svg"
/>
</div>
<app-window-switcher />
<div
class="header__actions"
>
<ul
class="header__menu"
>

<li
class="header__menu-item"
nz-dropdown=""
nztrigger="click"
>


<span>
<app-icon
name="eye-off"
/>
<span>

</span>
</span>
</li>
<nz-dropdown-menu>
<ul
class="environments-dropdown__list"
nz-menu=""
>

<li
nz-menu-item=""
>
...
</li>
</ul>
</nz-dropdown-menu>
<li
class="header__menu-item"
nz-dropdown=""
nztrigger="click"
>
<app-icon
name="settings"
/>
</li>
<nz-dropdown-menu>
<ul
nz-menu=""
>
<li
nz-menu-item=""
>

</li>
<li
nz-menu-item=""
>

</li>
<li
nz-menu-item=""
>

</li>
<li
nz-menu-item=""
>

</li>
<li
nz-menu-item=""
>

</li>
<li
nz-menu-item=""
>

</li>
<li
nz-menu-item=""
>

</li>
</ul>
</nz-dropdown-menu>
</ul>
</div>
</app-header>
`;
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
<div
class="header__logo-wrapper"
[ngClass]="{ 'header__logo-wrapper--experimental': experimentalEnabled }"
>
<img
src="assets/img/logo.svg"
alt="logo"
class="header__logo"
>
</div>

<app-window-switcher
[windows]="windows"
[windowIds] = "windowIds"
[activeWindowId]="activeWindowId"
[closedWindows]="closedWindows"
[isElectron]="isElectron"
(newWindowChange)="newWindowChange.emit($event)"
(activeWindowChange)="activeWindowChange.emit($event)"
(removeWindowChange)="removeWindowChange.emit($event)"
(duplicateWindowChange)="duplicateWindowChange.emit($event)"
(windowNameChange)="windowNameChange.emit($event)"
(repositionWindowChange)="repositionWindowChange.emit($event)"
(reopenClosedWindowChange)="reopenClosedWindowChange.emit($event)"
></app-window-switcher>

<div class="header__actions">
<ul class="header__menu">
<li
*ngFor="let panel of headerPanels trackBy:trackById"
(click)="togglePanelActiveChange.emit(panel)"
[popper]="panel.title"
[popperPlacement]="'bottom'"
class="header__menu-item"
[ngClass]="{ 'header__menu-item--active': panel.isActive }"
>
<app-icon name="cpu"></app-icon>
<nz-modal
[nzVisible]="panel.isActive"
(nzVisibleChange)="togglePanelActiveChange.emit(panel)"
[nzTitle]="modalTitle"
[nzContent]="modalContent"
[nzFooter]="null"
(nzOnCancel)="togglePanelActiveChange.emit(panel)"
>
<ng-template #modalTitle>
<div class="app-dialog-header">
<div class="app-dialog-title">{{ panel.title }}</div>
</div>
</ng-template>

<ng-template #modalContent>
<app-element-wrapper
[element]="panel.element"
></app-element-wrapper>
</ng-template>
</nz-modal>
</li>

<li
nz-dropdown
nzTrigger="click"
[nzDropdownMenu]="environmentsMenu"
class="header__menu-item"
>
<span *ngIf="activeEnvironment">
<app-icon name="eye"></app-icon>
<span>{{ activeEnvironment?.title }}</span>
</span>
<span *ngIf="activeEnvironment === undefined">
<app-icon name="eye-off"></app-icon>
<span>{{ 'NO_ENVIRONMENT_TEXT' | translate }}</span>
</span>
</li>
<nz-dropdown-menu #environmentsMenu="nzDropdownMenu">
<ul nz-menu class="environments-dropdown__list">
<ng-container *ngIf="environments?.subEnvironments.length">
<li
nz-menu-item
(click)="selectActiveEnvironmentChange.emit(environment.id)"
*ngFor="let environment of environments.subEnvironments; trackBy:trackById;"
[ngClass]="{ 'active': environment.id === activeEnvironment }"
>
{{ environment.title }}
</li>
<li
nz-menu-item
(click)="selectActiveEnvironmentChange.emit(undefined)"
>
{{ 'NO_ENVIRONMENT_TEXT' | translate }}
</li>
<li nz-menu-divider></li>
</ng-container>
<li
nz-menu-item
(click)="toggleEnvironmentManagerChange.emit(true)"
>
{{ 'ENVIRONMENTS_BUTTON' | translate }}...
</li>
</ul>
</nz-dropdown-menu>
<li
nz-dropdown
nzTrigger="click"
[nzDropdownMenu]="settingsMenu"
class="header__menu-item"
>
<app-icon name="settings"></app-icon>
</li>
<nz-dropdown-menu #settingsMenu="nzDropdownMenu">
<ul nz-menu>
<li nz-menu-item (click)="importWindowChange.emit()">{{ 'IMPORT_WINDOW_TEXT' | translate }}</li>
<li nz-menu-item (click)="showImportCurlDialogChange.emit(true)">{{ 'IMPORT_WINDOW_FROM_CURL_TEXT' | translate }}</li>
<li nz-menu-item (click)="showSettingsDialogChange.emit()">{{ 'SETTINGS_TEXT' | translate }}</li>
<li nz-menu-item (click)="openLink($event, 'https://github.com/altair-graphql/altair')">{{ 'STAR_ON_GITHUB_TEXT' | translate }}</li>
<li nz-menu-item (click)="openLink($event, 'https://github.com/altair-graphql/altair/issues/new?template=Bug_report.md')">{{ 'REPORT_BUG_TEXT' | translate }}</li>
<li nz-menu-item (click)="exportBackupDataChange.emit()">{{ 'EXPORT_BACKUP_DATA_TEXT' | translate }}</li>
<li nz-menu-item (click)="importBackupDataChange.emit()">{{ 'IMPORT_BACKUP_DATA_TEXT' | translate }}</li>
</ul>
</nz-dropdown-menu>
</ul>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import { NO_ERRORS_SCHEMA } from '@angular/core';
import { expect, describe, it } from '@jest/globals';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { MockModule } from 'ng-mocks';
import { mount, NgxTestWrapper } from '../../../../../testing';
import { SharedModule } from '../../modules/shared/shared.module';

import { HeaderComponent } from './header.component';

describe('HeaderComponent', () => {
let wrapper: NgxTestWrapper<HeaderComponent>;

beforeEach(async() => {
wrapper = await mount({
component: HeaderComponent,
imports: [
MockModule(SharedModule),
],
schemas: [ NO_ERRORS_SCHEMA ],
});
});

it('should create', () => {
expect(wrapper.componentInstance).toBeTruthy();
});

it('should render correctly', () => {
expect(wrapper.element).toMatchSnapshot();
});
});