22 Commits
Author SHA1 Message Date
creamlike1024 803db7572b fix: name the refresh shortcut only on desktop, as ⌘R or Ctrl+R 2026-11-26 23:04:22 +08:00
creamlike1024 a399883859 build: leave go-ccid out of desktop builds 2026-11-25 21:30:22 +08:00
creamlike1024 e32fe16567 feat(android): show a CI's certificate in a page of its own, and chevrons on Settings' rows 2026-11-25 21:30:22 +08:00
creamlike1024 97944ce6c5 fix(android): fit the certificate and Add eSIM dialogs' buttons on phones 2026-11-25 21:30:22 +08:00
creamlike1024 1627475ce9 perf(android): redraw only the windows on screen 2026-11-25 21:30:22 +08:00
creamlike1024 61366f2f26 fix(android): keep a dialog on the tab it opened on 2026-11-25 21:30:22 +08:00
creamlike1024 80b9528608 fix: draw the Settings icon as a gear, not a sun 2026-11-25 00:28:37 +08:00
creamlike1024 614dcfc97b fix(android): say the windows' titles in the language chosen 2026-11-24 15:22:49 +08:00
creamlike1024 0e7b949ad6 feat(android): show only the stage under way while an eSIM downloads 2026-11-24 14:45:55 +08:00
creamlike1024 49c6627a23 fix(android): fit the About page and download stages on a phone, and keep floating controls clear of the bars 2026-11-24 14:27:24 +08:00
creamlike1024 caad0df80e fix(android): fit long inputs on a phone: activation code, IMEI, ISD-R AID 2026-11-24 12:47:31 +08:00
creamlike1024 651ec2b04b fix(android): keep the add button off the eSIM rows, and room for their names 2026-11-24 12:47:31 +08:00
creamlike1024 e812fbc57d feat(android): scan an activation code's QR code with the camera
On phones the download offers the system's camera and photo picker
(mygo's imagepicker plugin, which needs no permission) in place of
opening an image file. The photo is read off the main thread and
removed once read, as it holds the activation code.

On a phone, an error of taking the code (no QR code, an empty
clipboard) shows in a toast: the form's end, where desktops show it, is
out of sight below the buttons.

Choosing a photo works on a Redmi 7A (Android 16). The camera does not
open there yet: imagepicker.Capture reports no camera app on Android 11
and later, as the plugin's resolveActivity cannot see the camera app
without a <queries> entry, an issue of mygo's.
2026-11-23 15:49:09 +08:00
creamlike1024 8f75423a1b feat(android): explain reader errors, and a phone's way to a QR code
The USB CCID backend now tells four failures apart by kind
(transport.ErrAccessDenied, ErrDeviceGone, ErrNoCard, ErrCardMute):
USB access the user denied, the reader unplugged before or during an
operation, no card in the reader, and a card that does not answer. The
interface explains them in words rather than showing usbfs's or
go-ccid's error, which the log keeps. libeuicc already passes the
transport's error on, which a test now holds it to.

On phones the download's hint offers to open a picture of the QR code
instead of dropping one, and the copy the system's picker gives the app
is removed once read, as it holds the activation code.
2026-11-23 14:57:46 +08:00
creamlike1024 8e03683f5b fix: list go-ccid among the licenses on the About page
go-ccid (MIT) is linked into every build, the USB CCID backend's or not,
and releases ship its license, but the About page did not name it.
2026-11-23 14:57:46 +08:00
creamlike1024 ba2816ad9d feat(android): lay the pages out for phones
On phones the pages fit a narrow window:

- The card's tiles go two by two, labels go above their values, and the
  buttons of EUICCInfo2 under its title.
- Notifications are a list of rows a tap checks, which a long press
  offers to send or remove, rather than a table chosen with modifier
  keys.
- Settings offer no choice of PC/SC or modem, name USB readers by their
  product rather than their device path, and turn PPS on or off.
- Dialogs fit the window, the download one scrolling where it is taller,
  and none brings the keyboard up as it opens.
- Deleting the eSIM in use says why it can't, as phones' menus show
  neither tooltips nor which items are disabled.
- The log is exported through the system's picker (Dialog.SaveCopy).
- The floating button hides while a dialog is open.

The tabs' refresh buttons are set once the tabs exist: before, the bar
they go in was not there yet and they did not show.

Reader settings now follow the backend in use rather than PC/SC's alone.
Desktop windows draw the same: 256 frames compared pixel for pixel.
Tested on a Redmi 7A with the demo card, a download included.
2026-11-23 14:19:14 +08:00
creamlike1024 3f26bec249 feat(android): a phone frame with tabs
Phones show the system's bar of tabs: eSIMs, notifications, card and
settings, a window each. The log and About are pushed over the settings
tab, which the system's back takes away. The tabs that show the card
refresh from a button in their bar and by pulling their content down;
the eSIMs tab adds one from a floating button, and the notifications
tab counts them on its badge. The pages are still the desktop's.

The app's dispatch now redraws every window, and only the window in
front shows toasts and dialogs, so that a tab behind takes none. The
demo uses the phone frame too, and the read-only reader test it
replaces is gone.

Desktop windows draw the same: 256 frames compared pixel for pixel. The
phone frame builds on desktops with -tags phone, for its tests at
360x720. Tested on a Redmi 7A with the demo card.
2026-11-23 13:55:47 +08:00
creamlike1024 1965fc6ed4 refactor: move the desktop frame out of gui.go
desktop.go holds the frame of desktop windows: the sidebar, the floating
header, the task pill and the shortcuts. gui.go keeps what an interface
for phones shares with it, with the page body, the dialogs, the notices,
the device's state and a task's text as functions of their own.

Desktop windows draw the same: 256 frames of 32 states, light and dark,
with and without vibrancy, at two sizes, are identical pixel for pixel.
2026-11-22 23:30:39 +08:00
creamlike1024 d0402318dc feat(android): read cards through USB CCID readers
internal/usbhost is a native module in Kotlin that lists the CCID
readers, asks for permission and hands over the connection's file
descriptor; go-ccid speaks to the reader on it through usbfs.

Android offers the ccid backend alone, and until it has an interface
of its own shows a screen that only reads the card, with the
identifiers obscured. Desktops keep their backends and interface.

Read on a Redmi 7A (Android 16) with an ACR38U-CCID: the results match
PC/SC's, and a PPS takes a refresh from 3.04 to 1.32 seconds. Writing
to a card is untested.
2026-11-22 21:03:48 +08:00
creamlike1024 ca3b2add25 feat: add theme and i18n setting 2026-11-10 19:17:03 +08:00
creamlike1024 d2368adbed feat: improve log obscure, add modem icon 2026-11-10 13:42:57 +08:00
creamlike1024 45ebb54ce6 refactor: libeuicc LPA with a native mygo GUI 2026-11-09 21:18:57 +08:00