GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(issues): add native tracker workflows and thread links by Bil0000 · Pull Request #19576 · pingdotgg/t3code

feat(issues): add native tracker workflows and thread links #19576

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.

Sign up for GitHub

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

Closed
Bil0000 wants to merge 367 commits into pingdotgg:main from Bil0000:t3/issues-independent-main-draft-20261014

Uh oh!

There was an error while loading. Please reload this page.

Closed

feat(issues): add native tracker workflows and thread links #19576

Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
367 commits
Select commit Hold shift + click to select a range
5d7347e
fix(web): retain projects across issue host filters
Bil0000 Oct 14, 2026
b0b14ef
fix(web): load selected issue template bodies on demand
Bil0000 Oct 14, 2026
9e6a2ec
test(web): expect standalone issues in their own panel
Bil0000 Oct 14, 2026
cd25b6f
fix(mobile): hide unchanged issue state actions
Bil0000 Oct 14, 2026
33134da
fix(forgejo): match native label names by case
Bil0000 Oct 14, 2026
2a8b568
test(web): move issue route tests out of routes
Bil0000 Oct 14, 2026
1e1d7ad
fix(mobile): scope older issue comments to the viewer
Bil0000 Oct 14, 2026
641f56c
fix(issues): match native thread keys across case
Bil0000 Oct 14, 2026
0ca372b
fix(issues): reject partial GitLab template catalogs
Bil0000 Oct 14, 2026
f373b05
fix(web): replace untouched text on template switch
Bil0000 Oct 14, 2026
4710c44
fix(mcp): keep issue milestones in read results
Bil0000 Oct 14, 2026
61e43c7
fix(web): handle issue panel toggle shortcut
Bil0000 Oct 14, 2026
2bc1865
fix(web): restore compact issue row labels
Bil0000 Oct 15, 2026
bbc8361
fix(client-runtime): reset issue pages when viewers change
Bil0000 Oct 15, 2026
6b72935
fix(issues): refresh scoped history after native writes
Bil0000 Oct 15, 2026
c38b00f
fix(web): gate issue panels on their own environment
Bil0000 Oct 15, 2026
58510f0
fix(client-runtime): accept unambiguous legacy issue viewers
Bil0000 Oct 15, 2026
d85c883
fix(web): deduplicate paged linked pull requests
Bil0000 Oct 15, 2026
2417458
fix(web): reset issue picker confirmation on viewer change
Bil0000 Oct 15, 2026
d7aa97b
fix(forgejo): accept canonical comment repo names
Bil0000 Oct 15, 2026
4abf029
fix(forgejo): retain native issue milestone titles
Bil0000 Oct 15, 2026
7da5456
fix(web): retain viewer context in issue link paging
Bil0000 Oct 15, 2026
60256e3
feat(contracts): support deferred issue templates
Bil0000 Oct 15, 2026
ca27ef8
fix(contracts): match native issue key case
Bil0000 Oct 15, 2026
d11da29
fix(client-runtime): reset viewer cursor aliases
Bil0000 Oct 15, 2026
0002475
feat(mobile): load issue template bodies on selection
Bil0000 Oct 15, 2026
75beb2b
fix(client): reset held issue lists when viewers change
Bil0000 Oct 15, 2026
45c9438
fix(mobile): reset issue picker state when viewers change
Bil0000 Oct 15, 2026
23b6dfe
fix(web): gate PR panels on their destination
Bil0000 Oct 15, 2026
4b8766e
fix(issues): read valid GitLab notes and awards
Bil0000 Oct 15, 2026
9ff2580
fix(issues): restore Linear project milestones
Bil0000 Oct 15, 2026
126eeec
fix(issues): restore Jira fix-version milestones
Bil0000 Oct 15, 2026
50aa489
fix(issues): retain Linear search key prefixes
Bil0000 Oct 15, 2026
b71ac65
fix(web): show saved issue rows without Git
Bil0000 Oct 15, 2026
ad33f68
fix(issues): preserve Forgejo mount case in shared keys
Bil0000 Oct 15, 2026
50432cd
fix(issues): bind Forgejo to resolved web scope
Bil0000 Oct 15, 2026
66a7e30
test(issues): cover native Forgejo thread mount identity
Bil0000 Oct 15, 2026
b2e4731
fix(web): show native issue link list errors
Bil0000 Oct 15, 2026
ddf446b
fix(mobile): restart issue pagination when viewers change
Bil0000 Oct 15, 2026
af73377
fix(web): refresh mounted issue related sections
Bil0000 Oct 15, 2026
2949ffa
feat(issues): scope candidates to an optional issue key
Bil0000 Oct 15, 2026
cc49718
fix(issues): restart pages after native viewer changes
Bil0000 Oct 15, 2026
1c9bc85
fix(mobile): show cached issue refresh failures
Bil0000 Oct 15, 2026
4c13ef6
fix(web): scope Jira state choices to the issue
Bil0000 Oct 15, 2026
b101ded
fix(issues): scope Jira state candidates to issues
Bil0000 Oct 15, 2026
11b1669
fix(issues): use native GitLab write permissions
Bil0000 Oct 15, 2026
7e141b6
fix(issues): respect GitHub archive and lock state
Bil0000 Oct 15, 2026
be807ed
fix(web): restore linked issue panel launchers
Bil0000 Oct 15, 2026
ec784b7
fix(mobile): reject invalid issue routes before hooks
Bil0000 Oct 15, 2026
78df960
fix(issues): forward issue-specific candidate keys
Bil0000 Oct 15, 2026
06ecfdc
fix(issues): restore GitLab list label colors
Bil0000 Oct 15, 2026
58a5f72
fix(web): restore project names in issue rows
Bil0000 Oct 15, 2026
5480740
fix(web): keep close reasons in issue glyph labels
Bil0000 Oct 15, 2026
72ca39b
fix(issues): preserve optional reactions on summaries
Bil0000 Oct 15, 2026
b24afea
fix(issues): preserve native Forgejo mount identity
Bil0000 Oct 15, 2026
5982672
fix(issues): restore Linear list reactions
Bil0000 Oct 15, 2026
393151e
fix(issues): inherit reaction types in tracker detail
Bil0000 Oct 15, 2026
0199d14
fix(web): carry issue pages through repeated refreshes
Bil0000 Oct 15, 2026
6c9754c
fix(issues): restore external source discovery
Bil0000 Oct 15, 2026
3986be1
fix(issues): track viewers per native Forgejo mount
Bil0000 Oct 15, 2026
e0b672d
fix(issues): isolate Forgejo viewers by native instance
Bil0000 Oct 15, 2026
39771ea
fix(mobile): match linked pull request providers
Bil0000 Oct 15, 2026
556d6fe
fix(mobile): discover standalone create scopes on older servers
Bil0000 Oct 15, 2026
27f95af
fix(issues): keep completed list pages terminal
Bil0000 Oct 15, 2026
a327300
fix(issues): warn when GitLab omits create assignees
Bil0000 Oct 15, 2026
1cb9f2a
fix(mobile): refresh ready issue environments independently
Bil0000 Oct 15, 2026
ca00d27
fix(issues): retain native metadata in MCP reads
Bil0000 Oct 15, 2026
c24983e
feat(mobile): wire native issue URL resolution
Bil0000 Oct 15, 2026
c863364
fix(mobile): keep completed issue pages terminal on refresh
Bil0000 Oct 15, 2026
5aab9c3
feat(mobile): open tracker issue links in the native workspace
Bil0000 Oct 15, 2026
92027fe
fix(web): respect issue link browser settings
Bil0000 Oct 15, 2026
fea3627
fix(issues): expose optional body edit safety
Bil0000 Oct 15, 2026
3ff64c6
fix(issues): protect rich Jira descriptions
Bil0000 Oct 15, 2026
b09676e
fix(issues): retain body safety and comment URLs in MCP
Bil0000 Oct 15, 2026
d16ba83
fix(issues): protect rich Jira comment edits
Bil0000 Oct 15, 2026
d80eb3c
fix(web): preserve linked PR mount identity
Bil0000 Oct 15, 2026
2c1981c
fix(forgejo): reject unsupported issue states
Bil0000 Oct 15, 2026
78e0315
fix(mobile): honor native issue workflow and body edit limits
Bil0000 Oct 15, 2026
7cdac17
fix(web): keep issue sort policy across partial reads
Bil0000 Oct 15, 2026
46ef4d0
fix(web): respect native issue body editability
Bil0000 Oct 15, 2026
fee5289
test(web): cover issue body scope changes
Bil0000 Oct 15, 2026
6509924
fix(issues): normalize Forgejo URLs before scope parsing
Bil0000 Oct 15, 2026
d639ae8
fix(issues): preserve explicit tracker account identity
Bil0000 Oct 15, 2026
f17db42
fix(issues): identify accounts when unbinding projects
Bil0000 Oct 15, 2026
933a223
fix(issues): reject account actions on legacy servers
Bil0000 Oct 15, 2026
38fe1cb
fix(issues): isolate saved tracker accounts
Bil0000 Oct 15, 2026
b96bc42
fix(issues): isolate held pages by tracker account
Bil0000 Oct 15, 2026
c2b4f68
feat(web): restore issue tracker account settings
Bil0000 Oct 15, 2026
bcee7b7
fix(web): preserve unavailable tracker selections
Bil0000 Oct 15, 2026
6ddf37c
fix(web): preserve issue account selection
Bil0000 Oct 15, 2026
4fc3def
fix(web): retain issue account through Solve handoff
Bil0000 Oct 15, 2026
3711b2e
fix(mobile): isolate native issue scopes and recover viewer restarts
Bil0000 Oct 15, 2026
67fae6a
fix(mobile): keep browser access for unreadable issue links
Bil0000 Oct 15, 2026
fd9099d
fix(web): consume Escape while editing issue titles
Bil0000 Oct 15, 2026
68ab5bc
fix(issues): clear Linear template assignees
Bil0000 Oct 15, 2026
5fd2dca
fix(forgejo): keep unknown comment access optional
Bil0000 Oct 15, 2026
9100d64
fix(mobile): preserve failed source restarts across refreshes
Bil0000 Oct 15, 2026
1b8a2cb
fix(mobile): parse legacy Azure issue project paths
Bil0000 Oct 15, 2026
6d98531
fix(web): use resolved Forgejo issue host
Bil0000 Oct 15, 2026
08295f9
fix(issues): reject account refs on legacy transports
Bil0000 Oct 15, 2026
f3e8f91
fix(issues): resolve URLs through project accounts
Bil0000 Oct 15, 2026
b2517d0
fix(issues): warn when GitLab omits create labels
Bil0000 Oct 15, 2026
fbef2ca
fix(issues): preserve GitLab comment permalinks
Bil0000 Oct 15, 2026
3ea923c
test(issues): prove account-safe RPC socket frames
Bil0000 Oct 15, 2026
1fdd5ed
fix(web): retain issue link account context
Bil0000 Oct 15, 2026
2ffa349
fix(mobile): clarify offline and candidate loading errors
Bil0000 Oct 15, 2026
8258603
fix(issues): preserve MCP account target refusal
Bil0000 Oct 15, 2026
02bedbd
fix(issues): retain account request constructor types
Bil0000 Oct 15, 2026
11f8adf
fix(web): keep comment drafts on Escape
Bil0000 Oct 15, 2026
d4e5842
fix(web): key issue rows and errors by native identity
Bil0000 Oct 15, 2026
7b4db2f
fix(web): restore closed issue URL selection
Bil0000 Oct 15, 2026
d034a24
fix(mobile): load issue media through its project context
Bil0000 Oct 15, 2026
049d607
fix(mobile): route issue links from questions and linked issues
Bil0000 Oct 15, 2026
2cf0798
fix(web): close issue tabs with the panel shortcut
Bil0000 Oct 15, 2026
e67d22e
fix(web): show native issue tab labels
Bil0000 Oct 15, 2026
9210c44
fix(web): replace issue filter history entries
Bil0000 Oct 15, 2026
9fdf161
fix(web): place non-Git issue rows in Workspace
Bil0000 Oct 15, 2026
c678d60
fix(web): isolate pull request panel surface state
Bil0000 Oct 15, 2026
15d7eb4
fix(mobile): fence refreshed issue state with unknown owners
Bil0000 Oct 15, 2026
8b59d73
fix(mobile): keep untouched issue fields current while editing
Bil0000 Oct 15, 2026
f9053b7
fix(web): clear stale issue state for unknown viewers
Bil0000 Oct 15, 2026
0c757b8
fix(mobile): explain offline issue picker access
Bil0000 Oct 15, 2026
81d363f
fix(mobile): use resolved Forgejo web hosts for issue links
Bil0000 Oct 15, 2026
ab28d6f
fix(server): wire the existing issue URL resolver RPC
Bil0000 Oct 15, 2026
eb4b7a2
fix(web): allow solving readable external issues
Bil0000 Oct 15, 2026
1280b1f
fix(forgejo): retain stable native label selections
Bil0000 Oct 15, 2026
39ae01f
feat(issues): restore scope continuation contracts
Bil0000 Oct 15, 2026
6e79bd2
feat(issues): continue Linear account scopes
Bil0000 Oct 15, 2026
b5869de
feat(issues): continue Jira account scopes
Bil0000 Oct 15, 2026
565d719
feat(issues): restore protected scope page reads
Bil0000 Oct 15, 2026
9db75f3
feat(issues): expose guarded account scope queries
Bil0000 Oct 15, 2026
5bcde42
feat(issues): restore scoped external issue listing
Bil0000 Oct 15, 2026
550803f
fix(issues): authorize scope page queries
Bil0000 Oct 15, 2026
f5ac8b9
feat(web): load more issue tracker scopes
Bil0000 Oct 15, 2026
10c8d2f
fix(issues): keep saved account targets fail closed
Bil0000 Oct 15, 2026
d919aaa
test(issues): align fixtures with account storage
Bil0000 Oct 15, 2026
e3f6460
fix(web): retain unavailable issue source picker
Bil0000 Oct 15, 2026
bd29848
fix(web): keep issue PR links on source environment
Bil0000 Oct 15, 2026
74d53b8
fix(issues): validate decoded provider child events
Bil0000 Oct 15, 2026
458b064
fix(web): scope issue link accounts to native host
Bil0000 Oct 15, 2026
3db4d84
chore: merge main into native issues
Bil0000 Oct 15, 2026
0ecd65b
fix(web): scope pasted issue URL accounts
Bil0000 Oct 15, 2026
fe2ff03
fix(server): compare canonical provider thread rows
Bil0000 Oct 15, 2026
ef18656
test(server): include account migrations in ledger fixtures
Bil0000 Oct 15, 2026
64d2b90
fix(server): return canonical events on append
Bil0000 Oct 15, 2026
5c72f4f
test(server): check collected planner row statistics
Bil0000 Oct 15, 2026
baca8d1
fix(web): use shared buttons for issue reactions
Bil0000 Oct 15, 2026
d196b20
fix(issues): normalize Linear GraphQL errors
Bil0000 Oct 15, 2026
17289e5
test(jira): preserve filtered assignee windows
Bil0000 Oct 15, 2026
40e9e1e
fix(issues): reject duplicate saved tracker accounts
Bil0000 Oct 15, 2026
33febe4
fix(linear): reject repeated page cursors
Bil0000 Oct 15, 2026
0398053
fix(web): wait for linked issue surface config
Bil0000 Oct 15, 2026
2b0d78f
fix(web): hide issue tracker search without environment
Bil0000 Oct 15, 2026
220c165
fix(web): reject invalid issue account route selectors
Bil0000 Oct 15, 2026
02d5be2
fix(issues): explain unsupported GitLab sort
Bil0000 Oct 15, 2026
e44281b
fix(issues): avoid repeated GitLab history events
Bil0000 Oct 15, 2026
9993f6b
fix(linear): classify native missing issue errors
Bil0000 Oct 15, 2026
bc52099
fix(web): bind issue deep links to their environment
Bil0000 Oct 15, 2026
132740e
feat(issues): carry native fields and dependency actions
Bil0000 Oct 15, 2026
2291401
feat(jira): add Data Center and native issue forms
Bil0000 Oct 15, 2026
9f88b95
feat(gitcafe): add native issue tracking
Bil0000 Oct 15, 2026
772459c
feat(gitlab): support native issue and task hierarchy
Bil0000 Oct 15, 2026
9cfd9ac
feat(forgejo): add directed issue dependencies
Bil0000 Oct 15, 2026
a912b4b
feat(web): expose native issue forms and rich edits
Bil0000 Oct 15, 2026
7ba85ce
fix(jira): keep native field helper private
Bil0000 Oct 15, 2026
22d1f72
fix(test): save ACP replay status before replies
Bil0000 Oct 15, 2026
85c24d0
fix(mcp): register issue dependency tool labels
Bil0000 Oct 15, 2026
72115c1
fix(test): adapt Forgejo discovery context fixtures
Bil0000 Oct 15, 2026
6ebba05
fix(gitcafe): include triage in open issue filters
Bil0000 Oct 15, 2026
a5a3b08
fix(jira): support large native issue forms
Bil0000 Oct 15, 2026
81459b1
fix(gitlab): keep tasks readable without parent metadata
Bil0000 Oct 15, 2026
2ab9d85
fix(web): retain and refresh issue dependency pages
Bil0000 Oct 15, 2026
f286916
feat(issues): load native GitCafe templates
Bil0000 Oct 15, 2026
b884341
feat(issues): read native GitLab group epics
Bil0000 Oct 15, 2026
afdcf28
feat(issues): move Jira Data Center issues between epics
Bil0000 Oct 15, 2026
01a2b04
feat(issues): add structured native field controls
Bil0000 Oct 15, 2026
deb3b51
fix(issues): accept empty plain text for rich comment edits
Bil0000 Oct 15, 2026
05f7511
fix(issues): preserve concurrent provider work when linking issues
Bil0000 Oct 15, 2026
c4777a6
fix(linear): honor native team access and parent scope
Bil0000 Oct 15, 2026
7a19787
fix(jira): allow supported cross-project parent links
Bil0000 Oct 15, 2026
2b190a7
fix(issues): refresh state choices after issue changes
Bil0000 Oct 15, 2026
4fb4ad5
fix(github): honor inherited issue templates and chooser config
Bil0000 Oct 15, 2026
8d3ccd7
feat(issues): support native GitHub dependency links
Bil0000 Oct 15, 2026
6a69c58
fix(azure): preserve native issue identity and text formats
Bil0000 Oct 15, 2026
e14d8c9
test(issues): update Linear team fixture metadata
Bil0000 Oct 15, 2026
e88dd2c
feat(linear): serve protected issue media through signed assets
Bil0000 Oct 15, 2026
dddb81d
fix(web): render protected Linear media from the issue source
Bil0000 Oct 15, 2026
38ca8a6
fix(web): keep standalone issue PR links in their panel
Bil0000 Oct 15, 2026
a1a160c
merge: align issues with native GitHub GraphQL
Bil0000 Oct 16, 2026
0814ef6
refactor(issues): share PR rate-limit bookkeeping
Bil0000 Oct 16, 2026
458df32
refactor(gitlab): share issue and PR API commands
Bil0000 Oct 16, 2026
20a3c99
refactor(azure): share native JSON commands
Bil0000 Oct 16, 2026
3c7ccf7
refactor(web): share issue and PR loading states
Bil0000 Oct 16, 2026
2909413
refactor(web): share issue and PR metadata controls
Bil0000 Oct 16, 2026
bb78a23
refactor(web): reuse issue detail actions
Bil0000 Oct 16, 2026
a109ae7
refactor(issues): pair built-in host adapters
Bil0000 Oct 16, 2026
ebbc170
refactor(issues): share source and page helpers
Bil0000 Oct 16, 2026
88e8d57
refactor(web): share issue tab references
Bil0000 Oct 16, 2026
e3d4c42
fix(web): retain protected issue media context
Bil0000 Oct 16, 2026
1cecb5a
refactor(web): share issue and PR list controls
Bil0000 Oct 16, 2026
40b78a2
fix(web): validate pasted numeric issue keys
Bil0000 Oct 16, 2026
63f389c
fix(web): reject malformed issue host selectors
Bil0000 Oct 16, 2026
dd9c110
merge: reconcile issue workflows with main
Bil0000 Oct 16, 2026
2009ec8
feat(issues): page native activity in either order
Bil0000 Oct 16, 2026
129f57b
feat(web): scroll issue activity and expand linked PRs
Bil0000 Oct 16, 2026
d23be87
feat(web): combine issue filters and scroll list pages
Bil0000 Oct 16, 2026
48ebdd5
fix(web): select an issue template by default
Bil0000 Oct 16, 2026
e960a9f
fix(settings): show issue accounts in Integrations
Bil0000 Oct 16, 2026
225e0e1
test(server): align Linear account fixture with native query
Bil0000 Oct 16, 2026
9e7fa2f
test(web): align metadata mock with comments query
Bil0000 Oct 16, 2026
16506c4
fix(issues): pass GitHub template body flag explicitly
Bil0000 Oct 16, 2026
226be70
merge(main): preserve issue workflows with current web
Bil0000 Oct 17, 2026
cf5c186
docs(issues): update setup and native tracker limits
Bil0000 Oct 17, 2026
bc74103
fix(issues): keep fields and settings compiler compatible
Bil0000 Oct 17, 2026
c2809e4
test(web): preserve imports and await menu unmount
Bil0000 Oct 17, 2026
17f050f
merge(main): preserve issue links with current web updates
Bil0000 Oct 17, 2026
f8b7d87
test(web): read source link derived config atoms
Bil0000 Oct 17, 2026
41bffbd
fix(web): keep editor errors with the current request
Bil0000 Oct 17, 2026
f8745b0
merge(main): align editor and picker fixes with upstream
Bil0000 Oct 17, 2026
6568594
merge: align Issues with current main
Bil0000 Oct 19, 2026
ffa5e39
perf(issues): skip streaming shell updates
Bil0000 Oct 19, 2026
85febec
fix(issues): refresh retained comment permissions
Bil0000 Oct 19, 2026
bacf8dd
merge: port mobile Issues onto shared core
Bil0000 Oct 19, 2026
e276ee8
merge: include verified Issues refresh fixes
Bil0000 Oct 19, 2026
586a9a4
fix(mobile): keep React internals out of header options
Bil0000 Oct 19, 2026
e7640a8
fix(mobile): compile Issues actions and refreshes
Bil0000 Oct 19, 2026
cc65542
fix(mobile): reuse the shared pull request glyph
Bil0000 Oct 19, 2026
c389e88
test(web): await workflow syntax highlighting
Bil0000 Oct 19, 2026
590a991
test(web): await attachment source preview module
Bil0000 Oct 19, 2026
f77daed
refactor(issues): resolve MCP targets in services
Bil0000 Oct 19, 2026
1e30701
refactor(issues): construct provider errors at boundaries
Bil0000 Oct 19, 2026
6fc3e0f
test(issues): update MCP source resolution fixture
Bil0000 Oct 19, 2026
dc15168
test(issues): trim repeated fixture setup
Bil0000 Oct 19, 2026
75f0669
test(issues): consolidate repeated fixture setup
Bil0000 Oct 19, 2026
43a7381
test(issues): share repeated native fixtures
Bil0000 Oct 19, 2026
cd3bd3f
chore(issues): merge current main
Bil0000 Oct 20, 2026
8bdddb7
test(issues): share GitHub template fixtures
Bil0000 Oct 20, 2026
f735324
test(issues): reuse native and service fixtures
Bil0000 Oct 20, 2026
9e87697
refactor(issues): share tracker request context
Bil0000 Oct 20, 2026
07eaa36
refactor(issues): use named Effect functions
Bil0000 Oct 20, 2026
c2c3252
test(issues): share setup across native browser suites
Bil0000 Oct 20, 2026
a4c43ea
test(mobile): share Issues fixtures and hook setup
Bil0000 Oct 20, 2026
cf7d9cb
fix(issues): keep merged RPC handlers within type limits
Bil0000 Oct 20, 2026
01328f6
chore(issues): sync latest main styles
Bil0000 Oct 20, 2026
c101e68
fix(mobile): pin patched Expo core resolution
Bil0000 Oct 20, 2026
c73e695
test(issues): use the local environment runtime helper
Bil0000 Oct 20, 2026
4a0eceb
test(issues): await native image rendering and loads
Bil0000 Oct 20, 2026
dad54de
chore(issues): sync main browser test cleanup
Bil0000 Oct 20, 2026
f3d8864
test(web): retain favicon fixture atoms until disposal
Bil0000 Oct 20, 2026
4b44b92
test(issues): wait for reaction picker focus restoration
Bil0000 Oct 20, 2026
File filter
Filter by extension

Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Diff view
Diff view
Prev Previous commit
Next Next commit
feat(mobile): load issue template bodies on selection
  • Loading branch information

Uh oh!

There was an error while loading. Please reload this page.

@Bil0000
Bil0000 committed Oct 15, 2026
commit 0002475086e83ec1b85b98dacca7d170ed961e01

There are no files selected for viewing

163 changes: 163 additions & 0 deletions 163 apps/mobile/src/features/issues/IssueCreateSheet.test.tsx
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
// @vitest-environment jsdom
import { act, type ReactNode } from "react";
import { createRoot, type Root } from "react-dom/client";
import { beforeEach, describe, expect, it, vi } from "vite-plus/test";
import {
EnvironmentId,
IssueTrackerKind,
ProjectId,
type IssueTemplate,
type IssueTemplatesInput,
} from "@t3tools/contracts";

type Props = Record<string, unknown> & { readonly children?: ReactNode };

const harness = vi.hoisted(() => {
const controls = new Map<string, Record<string, unknown>>();
const template = (key: string) => ({
key,
name: key,
about: "",
title: `${key} title`,
body: `${key} body`,
labels: [`${key}-label`],
assignees: [],
});
return {
template,
catalog: [
template("A"),
{ ...template("B"), title: "", body: "", labels: [], contentDeferred: true },
],
bodies: new Map<string, IssueTemplate>(),
controls,
created: [] as unknown[],
capture:
(key: string) =>
({ children, ...props }: Props) => {
controls.set(String(props[key]), props);
return children ?? null;
},
};
});

vi.mock("@effect/atom-react", async () => ({
RegistryContext: (await import("react")).createContext({}),
useAtomValue: () => true,
}));
vi.mock("react-native", () => ({
Alert: { alert: vi.fn() },
Linking: { openURL: vi.fn() },
Platform: { OS: "ios" },
Pressable: ({ children }: Props) => children,
View: ({ children }: Props) => children,
}));
vi.mock("../../components/AppText", () => ({
AppText: ({ children }: Props) => children,
AppTextInput: harness.capture("accessibilityLabel"),
}));
vi.mock("../../components/AppSymbol", () => ({ SymbolView: () => null }));
vi.mock("../../components/MaterialButton", () => ({ MaterialButton: harness.capture("label") }));
vi.mock("../workspace/ListFilterMenu", () => ({
ListFilterMenu: harness.capture("accessibilityLabel"),
}));
vi.mock("../pull-requests/PullRequestSheetContent", () => ({
PullRequestSheetContent: ({ children, footer }: Props & { footer: ReactNode }) => (
<>
{footer}
{children}
</>
),
}));
vi.mock("./useOpenIssue", () => ({ useOpenIssue: () => () => {} }));
vi.mock("./issueList", () => ({ markIssueWritten: () => {} }));
vi.mock("../../state/issues", () => ({
issueEnvironment: {
templates: (target: unknown) => target,
create: { permissionAtom: () => null },
},
}));
vi.mock("../../state/use-atom-command", () => ({
useAtomCommand: () => async (input: unknown) => {
harness.created.push(input);
return { _tag: "Success", value: { key: "1", displayKey: "#1" } };
},
}));
vi.mock("../../state/query", () => ({
useEnvironmentQuery: (target: { input: IssueTemplatesInput } | null) => {
const body = target?.input.templateKey && harness.bodies.get(target.input.templateKey);
const data = target?.input.metadataOnly
? { templates: harness.catalog, blankIssuesEnabled: true }
: body
? { templates: [body], blankIssuesEnabled: true }
: null;
return { data, error: null, isPending: target !== null && data === null, refresh: () => {} };
},
}));

import { IssueCreateSheet } from "./IssueCreateSheet";

(globalThis as { IS_REACT_ACT_ENVIRONMENT?: boolean }).IS_REACT_ACT_ENVIRONMENT = true;
let root: Root;
const scopes = [
{
environmentId: EnvironmentId.make("environment"),
projectTitle: "Project",
templates: true,
scope: {
projectId: ProjectId.make("project"),
tracker: IssueTrackerKind.make("gitlab"),
host: "gitlab.example",
scope: "group/app",
},
},
];
const render = () => act(() => root.render(<IssueCreateSheet route={{ params: { scopes } }} />));
const control = (key: string) => harness.controls.get(key)!;
const value = (key: string) => control(key).value;
const choose = (key: string) =>
act(() =>
(control("Template").onSelect as (id: string) => void)(JSON.stringify(["template", key])),
);
const type = (key: string, text: string) =>
act(() => (control(key).onChangeText as (text: string) => void)(text));

beforeEach(() => {
root = createRoot(document.createElement("div"));
harness.bodies.clear();
harness.created.length = 0;
});

describe("IssueCreateSheet templates", () => {
it("replaces an untouched template's text with the next one, but keeps typed and cleared text", async () => {
await render();
await choose("A");
expect([value("Title"), value("Description")]).toEqual(["A title", "A body"]);

await choose("B");
expect(control("Create issue").disabled).toBe(true);
expect(value("Title")).toBe("A title");
harness.bodies.set("B", harness.template("B"));
await render();
expect([value("Title"), value("Description")]).toEqual(["B title", "B body"]);

await type("Title", "Mine");
await type("Description", "");
await choose("A");
expect([value("Title"), value("Description")]).toEqual(["Mine", ""]);

await act(() => (control("Create issue").onPress as () => void)());
expect(harness.created).toMatchObject([
{ input: { title: "Mine", body: "", labels: ["A-label"] } },
]);
});

it("keeps text typed while a chosen template's body is still loading", async () => {
await render();
await choose("B");
await type("Title", "Typed first");
harness.bodies.set("B", harness.template("B"));
await render();
expect([value("Title"), value("Description")]).toEqual(["Typed first", "B body"]);
});
});
111 changes: 78 additions & 33 deletions 111 apps/mobile/src/features/issues/IssueCreateSheet.tsx
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ import { useAtomCommand } from "../../state/use-atom-command";
import { ListFilterMenu } from "../workspace/ListFilterMenu";
import { PullRequestSheetContent as SheetContent } from "../pull-requests/PullRequestSheetContent";
import { issueCreateBlocked, resolveIssueType } from "./issueDetail";
import {
fillIssueTemplate,
issueTemplateBodyRead,
issueTemplateCatalogRead,
selectedIssueTemplate,
} from "./issueTemplate";
import type { IssueCreateScope } from "./issueList";
import { useOpenIssue } from "./useOpenIssue";
import { markIssueWritten } from "./issueList";
Expand All @@ -29,6 +35,14 @@ export function IssueCreateSheet({
const [templateKey, setTemplateKey] = useState(BLANK);
const [title, setTitle] = useState("");
const [body, setBody] = useState("");
const [titleEdited, setTitleEdited] = useState(false);
const [bodyEdited, setBodyEdited] = useState(false);
const [templateDraft, setTemplateDraft] = useState<{
scopeIndex: number;
key: string;
title: boolean;
body: boolean;
} | null>(null);
const [extras, setExtras] = useState<{
labels: ReadonlyArray<string>;
assignees: ReadonlyArray<string>;
Expand All @@ -41,11 +55,26 @@ export function IssueCreateSheet({
const canWrite = useAtomValue(
issueEnvironment.create.permissionAtom(scope?.environmentId ?? null),
);
const catalogRead = issueTemplateCatalogRead(scope);
const templatesQuery = useEnvironmentQuery(
scope?.templates
? issueEnvironment.templates({ environmentId: scope.environmentId, input: scope.scope })
: null,
catalogRead ? issueEnvironment.templates(catalogRead) : null,
);
const bodyRead = issueTemplateBodyRead(scope, templatesQuery.data, templateKey);
const selectedQuery = useEnvironmentQuery(bodyRead ? issueEnvironment.templates(bodyRead) : null);
const chosenTemplate = selectedIssueTemplate(templateKey, templatesQuery, selectedQuery);
if (
templateDraft &&
templateDraft.scopeIndex === scopeIndex &&
templateDraft.key === templateKey &&
chosenTemplate.template
) {
const filled = fillIssueTemplate(templateDraft, chosenTemplate.template, { title, body });
setTitle(filled.title);
setBody(filled.body);
setExtras({ labels: filled.labels, assignees: filled.assignees });
setTemplateDraft(null);
}
const templateRead = templatesQuery.error ? templatesQuery : selectedQuery;
const templates = templatesQuery.data?.templates ?? [];
const externalTemplates = templatesQuery.data?.externalTemplates ?? [];
const blankAllowed = templatesQuery.data?.blankIssuesEnabled ?? true;
Expand All @@ -56,23 +85,24 @@ export function IssueCreateSheet({
);
const issueTypes = candidatesQuery.data?.issueTypes ?? [];
const chosenIssueType = resolveIssueType(issueTypes, issueType);
const blocked = issueCreateBlocked({
hasScope: scope !== null,
canWrite,
templates: scope?.templates
? { pending: templatesQuery.isPending, list: templatesQuery.data }
: null,
blankChosen: templateKey === BLANK,
issueTypes:
scope?.createIssueTypes === true
? {
pending: candidatesQuery.isPending,
error: candidatesQuery.error,
count: issueTypes.length,
chosen: chosenIssueType,
}
const blocked =
issueCreateBlocked({
hasScope: scope !== null,
canWrite,
templates: scope?.templates
? { pending: templatesQuery.isPending, list: templatesQuery.data }
: null,
});
blankChosen: templateKey === BLANK,
issueTypes:
scope?.createIssueTypes === true
? {
pending: candidatesQuery.isPending,
error: candidatesQuery.error,
count: issueTypes.length,
chosen: chosenIssueType,
}
: null,
}) ?? chosenTemplate.blocked;
const select = (event: string) => {
let selection: unknown;
try {
Expand All @@ -87,18 +117,23 @@ export function IssueCreateSheet({
if (!Number.isInteger(index) || !scopes[index]) return;
setScopeIndex(index);
setTemplateKey(BLANK);
setTemplateDraft(null);
setExtras({ labels: [], assignees: [] });
setIssueType(null);
} else if (field === "template") {
const template = templates.find((entry) => entry.key === value);
setTemplateKey(template ? template.key : BLANK);
if (!template) {
setExtras({ labels: [], assignees: [] });
return;
}
if (title.trim().length === 0) setTitle(template.title);
if (body.trim().length === 0) setBody(template.body);
setExtras({ labels: template.labels, assignees: template.assignees });
setExtras({ labels: [], assignees: [] });
setTemplateDraft(
template
? {
scopeIndex,
key: template.key,
title: !titleEdited,
body: !bodyEdited,
}
: null,
);
} else if (field === "type" && issueTypes.some((type) => type.id === value)) {
setIssueType(value);
}
Expand Down Expand Up @@ -230,7 +265,11 @@ export function IssueCreateSheet({
editable={!busy}
value={title}
maxLength={1024}
onChangeText={setTitle}
onChangeText={(next) => {
setTitleEdited(true);
setTemplateDraft((held) => (held ? { ...held, title: false } : null));
setTitle(next);
}}
className="min-h-12 rounded-[20px] bg-grouped-card px-4 text-base text-foreground"
/>
<TextInput
Expand All @@ -241,7 +280,11 @@ export function IssueCreateSheet({
editable={!busy}
value={body}
maxLength={65536}
onChangeText={setBody}
onChangeText={(next) => {
setBodyEdited(true);
setTemplateDraft((held) => (held ? { ...held, body: false } : null));
setBody(next);
}}
className="min-h-36 rounded-[20px] bg-grouped-card p-4 text-base text-foreground"
style={{ textAlignVertical: "top" }}
/>
Expand All @@ -256,12 +299,14 @@ export function IssueCreateSheet({
</Text>
) : null}
{blocked ? <Text className="text-xs text-foreground-muted">{blocked}</Text> : null}
{scope?.templates && templatesQuery.error ? (
{scope?.templates && (templatesQuery.error || chosenTemplate.retry) ? (
<View className="gap-2">
<Text selectable className="text-sm text-danger-foreground">
{templatesQuery.error}
</Text>
<MaterialButton label="Retry templates" tone="text" onPress={templatesQuery.refresh} />
{templateRead.error ? (
<Text selectable className="text-sm text-danger-foreground">
{templateRead.error}
</Text>
) : null}
<MaterialButton label="Retry templates" tone="text" onPress={templateRead.refresh} />
</View>
) : null}
{scope?.createIssueTypes === true && candidatesQuery.error ? (
Expand Down
Loading
Oops, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

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.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.