Repository navigation
Fit an 800×600 screen and start with the console closed (2.3.1) - #14
Merged
Merged
Conversation
AppImageHub runs the app on an 800x600 screen, where the 940x600 minimum size cut off the right side of the window. Electron shrinks a new window to its display's work area, so a minimum of 800x540 lets the window fit such a screen, even with a panel. At that width the job settings panel leaves the queue 460 px. Below 512 px the rows drop the drag handle and the time left and narrow the status column, and the toolbar's counters show only their numbers. The counters, "Scanning..." and the space saved now share one row whose items drop out whole, the least important first, when they do not fit; before, they could push the toolbar's buttons out of view even at the old minimum width. The header's gaps shrink below 1024 px so that the title is never cut. Co-authored-by: pwnedbygary <pwnedbygary@users.noreply.github.com>
On first run the console took a third of an 800x600 window, and its "Warnings" and "Errors" filters made AppImageHub's check of the screenshot warn that it may show an error message. It now starts closed; whether it is open is still remembered. Some warnings are only shown in the console, so while it is closed its button shows a dot, red for errors and amber for warnings, and says so in its label, until the console is opened. Stopping the queue and cancelling a job are the user's own doing and are now logged as info, so they do not set it off. An Info job opens the console, since its result, the CHD's header, is only shown there. Co-authored-by: pwnedbygary <pwnedbygary@users.noreply.github.com>
Co-authored-by: pwnedbygary <pwnedbygary@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
AppImageHub's test of AppImage/appimage.github.io#7753 warned: "The screenshot may show an error message." Its log shows why. The test OCRs a screenshot taken on an 800×600 screen and matched the console's Warnings and Errors filter buttons (
… Console All Warnings Errors Q Search the console O lines Nothing logged yet …). The console was open by default on first run. The window was also 940×600 on that 800-pixel screen, so its right side was cut off.What changes
NativeWindowViews::Center()), but not below the minimum size, so the window now fits an 800×600 screen, even with a panel. The default size (1280×840) is unchanged.How it was verified
code/worker.shdoes: Xvfb at 800×600, wait for the window, start icewm, thentake-screenshot.sh. Theircheck-screenshot.shthen reported no warning, and the window was 800×599 at the top left. The released 2.2.2 run the same way gave their exact result: a 940×600 window and the same warning text.npm run checkpasses with 258 tests, and each commit passes on its own. New tests cover the unseen-warnings logic, the Info job opening the console, and that stopping the queue no longer lights the dot.The screenshot AppImageHub's test took of 2.2.2:
AppImageHub test screenshot of 2.2.2
The same test run on this branch:
Simulated AppImageHub test of this branch
The queue at 800×600, with every status and the console's dot:
Queue at 800x600
The same queue at 1280×800, unchanged from before:
Queue at 1280x800
To show artifacts inline, enable in settings.