Skip to content

Conversation

@maxomatic458
Copy link
Owner

closes #32
closes #27

  • Add ETA to UI
  • Add connection mode to UI
  • improve logging in the UI
  • bump versions
  • update workflows

@maxomatic458 maxomatic458 requested a review from Copilot May 16, 2025 19:38
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR improves the UI by adding ETA and connection mode displays, enhances logging in the UI, and updates versioning and workflows to support protocol changes. It also refactors some deprecated code and adjusts the release workflows accordingly.

  • Added ETA and transfer mode signals to the Send and Receive pages.
  • Updated logging messages and connection type emissions.
  • Updated version constants and workflow triggers.

Reviewed Changes

Copilot reviewed 24 out of 24 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
qs-gui/src/Pages/Send.tsx Added transfer mode signal and enhanced logging for connection events.
qs-gui/src/Pages/Receive.tsx Added transfer mode signal; similar connection type parsing logic as in Send.tsx.
qs-gui/src/Pages/Main.tsx Replaced createEffect with onCleanup for file drop listener removal.
qs-gui/src/Pages/AcceptFiles.tsx Added currentSpeedBps prop for file transfer ETA display.
qs-gui/src/Components/FileTransferCard.tsx Added remaining time calculation using currentSpeedBps.
qs-gui/src-tauri/src/lib.rs Updated emission of connection type information.
qs-core/* Replaced QS_VERSION with QS_PROTO_VERSION and removed unused version helpers.
qs-cli/* Updated version constants and added command aliases.
Cargo.toml and .github workflows Updated dependency versions and revised release workflow triggers.
Comments suppressed due to low confidence (1)

.github/workflows/release-ui.yml:4

  • [nitpick] The trigger for the UI release workflow has changed from a push on 'master' to a release published event; please verify that this change aligns with the desired deployment process for the UI.
release:

(connType: Event<string>) => {
console.log("here")
setStore("currentState", SendState.WaitingForFileAccept)
if (connType.payload.startsWith("direct")) {
Copy link

Copilot AI May 16, 2025

Choose a reason for hiding this comment

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

[nitpick] The connection type parsing logic (checking for 'direct', 'mixed', 'relay') is duplicated here and in Receive.tsx; consider extracting it to a shared helper to improve maintainability.

Copilot uses AI. Check for mistakes.
Comment on lines +56 to +62
if (connType.payload.startsWith("direct")) {
setTransferMode("direct")
} else if (connType.payload.startsWith("mixed")) {
setTransferMode("mixed")
} else if (connType.payload.startsWith("relay")) {
setTransferMode("relay")
}
Copy link

Copilot AI May 16, 2025

Choose a reason for hiding this comment

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

[nitpick] This duplicate connection type parsing logic appears similar to that in Send.tsx; extracting it to a common helper function would reduce code repetition.

Suggested change
if (connType.payload.startsWith("direct")) {
setTransferMode("direct")
} else if (connType.payload.startsWith("mixed")) {
setTransferMode("mixed")
} else if (connType.payload.startsWith("relay")) {
setTransferMode("relay")
}
const parsedType = parseConnectionType(connType.payload)
setTransferMode(parsedType)

Copilot uses AI. Check for mistakes.
Copy link
Owner Author

Choose a reason for hiding this comment

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

can you create this parseConnectionType in utils.ts?

Copy link
Owner Author

@maxomatic458 maxomatic458 May 16, 2025

Choose a reason for hiding this comment

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

Copilot won't reply to this thread.

gg

})
setStore("currentState", null)
}}
transferMode={transferMode()!}
Copy link

Copilot AI May 16, 2025

Choose a reason for hiding this comment

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

[nitpick] The use of a non-null assertion for transferMode here differs from Send.tsx where it is passed without force unwrapping; consider handling nullable transferMode consistently in both components.

Copilot uses AI. Check for mistakes.
@maxomatic458 maxomatic458 marked this pull request as ready for review May 16, 2025 20:45
@maxomatic458 maxomatic458 merged commit a5b91fa into master May 16, 2025
1 check passed
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.

[BUG] Dragging connection code onto canvas is captured as drag and drop event [FEATURE] Add ETA to ui

2 participants