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

feat: remote displays app and PR CI #114

Open
wants to merge 19 commits into
base: main
Choose a base branch
from
Open

Conversation

Benjozork
Copy link
Member

No description provided.

@Benjozork Benjozork changed the title feat: remote displays app feat: remote displays app and PR CI Mar 31, 2024
let remoteClient: RemoteClient | undefined;
function initializeClient() {
if (!remoteClient) {
remoteClient = new RemoteClient(`ws://${window.location.hostname}:8380/interfaces/v1/remote-app`);
Copy link
Member

@alepouna alepouna Apr 1, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remoteClient = new RemoteClient(ws://${window.location.hostname}:8380/interfaces/v1/remote-app);

Wouldn't it better to use the configured server port incase user has a different port set via the installer?

Comment on lines -1 to +17
name: PR
on:
pull_request_target:
types:
- opened
- synchronize
- reopened
- ready_for_review

jobs:
title:
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v3.1.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
name: PR
on:
pull_request_target:
types:
- opened
- synchronize
- reopened
- ready_for_review

jobs:
title:
name: Validate title semantics
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v3.1.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

diff here? is this just whitespace?

onChange={(event) => setTypedBridgeID(event.target.value)}
/>

<span>GFNCBENFB4TQ</span>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<span>GFNCBENFB4TQ</span>
<span>GFNCBENFB4TQ</span>

Does this have a purpose? Or is this meant to be taken from a var somewhere? I'm not very sure.

this.server = server;
this.logger.log('Remote app gateway websocket initialised');
this.logger.log(
`Initialised on http://${await this.networkService.getLocalIp(true)}:${this.serverConf.port}${server.path}`,
Copy link
Member

@alepouna alepouna Apr 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
`Initialised on http://${await this.networkService.getLocalIp(true)}:${this.serverConf.port}${server.path}`,
`Initialised websocket gateway on ws://${await this.networkService.getLocalIp(true)}:${this.serverConf.port}${server.path}`,

I believe that a user looking at the logs might think this is (also) the remote app path and try to access it but of course it returns 404 since its only for websockets, and might cause confusion.

? `Connected (${connectionState.clientName})`
: connectionState.connected === ConnectionPhase.ConnectedToBridge
? 'Waiting on aircraft'
: 'Not connected'}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
: 'Not connected'}
: 'Simbridge Connection Lost'}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants