Skip to content

merge: sync upstream main (471ea7ab) into fork - #58

Merged
1lck merged 21 commits into
mainfrom
sync/upstream-471ea7ab
Nov 23, 2026
Merged

1lck merged 21 commits into
mainfrom
sync/upstream-471ea7ab

Conversation

@1lck

@1lck 1lck commented Nov 23, 2026

Copy link
Copy Markdown

What this changes

Merges upstream/main (471ea7ab: refactor: move the phone backends to the mobile branch, including upstream v0.6.7 and ui/textview 7ea39847) into sync/upstream-471ea7ab (based on origin/main 3c6c4608), keeping merge-commit history (git merge-base --is-ancestor upstream/main HEAD).

  • Conflict resolution (upstream wins, 12 files):
    • ui/textview/{cells.go,paint.go,rows.go,selection.go,selection_test.go,view.go,view_test.go}: took upstream/main (ui/textview from upstream PR feat(ui): add textview, read-only text that selects, copies and colors vivaui/viva#337, which wraps un-scrolled/un-wrapped views in ui.Column(c) and removes c.Key("menu") from ui.ContextMenuAt on ui/textview/view.go:311). git diff upstream/main -- ui/textview/ is empty.
    • docs/maintaining-controls.md, docs/skills/building-with-viva/SKILL.md, website/content/guides/{en,zh}/components.md: took upstream/main textview guide sections.
    • cmd/viva/initfiles/AGENTS.md.txt: took upstream/main updates (textview, Italic, Strike) while retaining the fork-only ScrollBar.Bars / PageConfig.BarStyle and Theme.Tooltip entries required by base/guide_test.go.
  • Synced missing upstream tag v0.6.7 (22984e8b) to origin without creating any GitHub Releases.

Why

Pinned fork commit 3c6c4608 carries the older fork ui/textview/view.go:311 calling ui.ContextMenuAt(c.Key("menu"), ...) while base.ContextMenuAt returns early when !*open without consuming c.Key("menu"), causing -tags dev (base/attrcheck_dev.go) attribute checks in Lithe-IDEA to panic (Key "menu" was given to a Column) after any outputList. Upstream vivaui/viva already fixed this in 7ea39847.

How it was verified

On b7ac8d73 (macOS arm64):

  • test -z "$(gofmt -l $(git ls-files '*.go'))" (clean)
  • go vet ./... and go vet -tags dev ./... (passed)
  • GOOS=windows GOARCH=amd64 go build ./... and GOOS=windows GOARCH=arm64 go build ./... (passed)
  • go test ./base ./ui/... -count=1 and go test -tags dev ./base ./ui/... -count=1 (all packages including base and ui/textview passed)
  • GOTOOLCHAIN=go1.26.0 go test ./cmd/viva -count=1 (ok github.com/vivaui/viva/cmd/viva 59.612s; bare go1.27.3 on macOS 26 SDK raises minimum macOS version to 13.0 vs cmd/viva fixture [mac] min_system = "12.0")
  • Full go test ./... -count=1 passed all other non-base/non-cmd/viva packages on cc2531a4 before restoring Bars/Tooltip in AGENTS.md.txt
  • git merge-base --is-ancestor upstream/main HEAD and test -z "$(git diff upstream/main -- ui/textview/)" (passed)

Where the boundary sits

Pure upstream sync into Lithe-IDEA/Lithe-viva main; use Create a merge commit (do not squash) so common upstream history is preserved.

Cost

None beyond upstream changes.

Ezreal-byte and others added 21 commits November 23, 2026 16:01
The host draws a handle at each end of a selection with the theme's own
drawables, a Magnifier while one is dragged and a floating Cut, Copy, Paste and
Select all menu. The program owns the selection: a handle drag edits it, and the
menu's items edit through imebridge and the clipboard. Text fields give the
adapter their text geometry through platform.Config.TextGeometry.
The editor answers UITextInput geometry from the text geometry of the focused
field and carries a UITextInteraction, so a tap places the caret, a held finger
selects a word and the handles, magnifier and menu are UIKit's. The editor is no
longer hidden by alpha, which kept UIKit from offering it touches.
A key now ends what is composing before it types, and setComposingRegion no
longer drags the caret: a region that does not hold the caret is not marked, one
that does keeps the selection. With a keyboard that marks each typed letter as the
word it may correct, a fast typist lost letters or got them out of order.
app.Config.OnBack runs when an Android phone's back button or gesture, or an
iPhone's left-edge swipe, asks to go back. It returns whether the application
went back; when it did not, Android closes the window as before and iOS does
nothing. The touch example keeps a page stack to show it.
A second finger ends what the first was doing and the two become a pinch:
app.Config.OnPinch receives its begin, each change and its end as a gfx.PinchEvent
with the midpoint, the scale against the start and the factor since the last
event. Fingers that start closer than 24 px are no pinch, and a third is ignored.
Viva main stays a desktop framework. The Android and iOS backends, the
Android host and packaging tools, the iOS host, the `viva android` and
`viva ios` commands, and the phone-only contract (safe area, lifecycle,
back, platform text geometry) continue on the `mobile` branch (f56612f),
which may later become its own repository.

Desktop gains stay on main: the touch runtime, finger scrolling with
overscroll, the 44px touch reach, pinch, touch tooltips, tap-to-place
caret and long-press word selection, Windows and Linux touch input, and
the shared Vulkan renderer package.
# Conflicts:
#	cmd/viva/initfiles/AGENTS.md.txt
#	docs/maintaining-controls.md
#	docs/skills/building-with-viva/SKILL.md
#	ui/textview/cells.go
#	ui/textview/paint.go
#	ui/textview/rows.go
#	ui/textview/selection.go
#	ui/textview/selection_test.go
#	ui/textview/view.go
#	ui/textview/view_test.go
#	website/content/guides/en/components.md
#	website/content/guides/zh/components.md
@1lck
1lck merged commit bb85256 into main Nov 23, 2026
24 of 25 checks passed
@1lck
1lck deleted the sync/upstream-471ea7ab branch November 23, 2026 13:45
Mucheen added a commit to Mucheen/Lithe-IDEA that referenced this pull request Nov 23, 2026
Keep keys on the containers and controls that use them, and let context menus inherit their trigger identity. Start from the relevant changes in 1lck#2355 and cover the other failures found by the complete dev suite.

Pin the fork main revision from Lithe-IDEA/Lithe-viva#58 for the upstream textview menu fix.
Mucheen added a commit to 1lck/Lithe-IDEA that referenced this pull request Nov 23, 2026
* feat(plugins): add incremental marketplace updates

* fix(plugins): serialize package changes across processes

* test(desktop): cover new bundle checks in the gate fixture

* fix(desktop): resolve Viva dev identity check failures

Keep keys on the containers and controls that use them, and let context menus inherit their trigger identity. Start from the relevant changes in #2355 and cover the other failures found by the complete dev suite.

Pin the fork main revision from Lithe-IDEA/Lithe-viva#58 for the upstream textview menu fix.

* fix(marketplace): serialize shared plugin archive cache writes

Reuse the native file lock for pruning, temporary copy and atomic publish. Limit acquisition to one second because a completed download can install without caching.

Add a deterministic two-process regression for both limits and test update delivery when the cache lock is unavailable.
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.

6 participants