gitoria

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Branchw53-pulls-speed-pr80307ae2|||PR pulls page cache: live PR numbers, complete scans onlymrew53-pulls-speed-pr/components/settings.hl

21.9 KB

  1. // components/settings.hl — THE SETTINGS of a repo (gitoria#18): `/settings` on <slug>.<domain>. For now one section,
  2. // "Tickets": connect the repo to a tickets.worldapi.org project (the owner clicks "Tickets: connect", tickets asks which
  3. // project, and brings them back — lib/api.hl /settings/connect and /settings/connected; lib/tickets.hl). Anyone sees
  4. // whether the repo is connected; only the owner sees the buttons. Rendered on the server from the request's host.
  5. // "Apps" (gitoria#41, lib/apps.hl): the owner connects outside apps to the repo — the confirm card of connect flow A (an app sent the browser
  6. // here; lib/api.hl appConnectStart parked the request in the session), the list (Remove, Rotate secret) and Add (the manual way). Key and secret
  7. // are shown ONCE, in the page state of the click that made them.
  8. // (The main branch is switched on the code page.)
  9. parent './repo.hl'
  10. import { siteName } from '../project.hl'
  11. import { slugOfRequest } from '../lib/orgs.hl'
  12. import { userOfSession, userIdOfSession } from '../lib/users.hl'
  13. import { titleSlug, repoAt, repoBySlug, ownsRepo, setTicketsConnection, setRepoPriv, membersOf, changeMember, setProtectMain, isProtectedMain } from '../lib/repos.hl'
  14. import { px } from '../lib/util.hl'
  15. import { pageTitle } from '../lib/repos-helpers.hl'
  16. import { ticketsUrl } from '../lib/tickets-helpers.hl'
  17. import { appRows, addApp, removeApp, rotateSecret, sendPing } from '../lib/apps.hl'
  18. import { hostOfUrl } from '../lib/apps-helpers.hl'
  19. import { announceRequirements } from '../lib/prpage.hl'
  20. import { requiredList, requireContext, requirePerson, peopleOfRepo, dropRequired } from '../lib/statuses.hl'
  21. host = null
  22. orepo = ''
  23. session = null
  24. slug = slugOfRequest(host, orepo)
  25. repo = repoAt(slug, session)
  26. hasRepo = repo != null
  27. pre = px(slug)
  28. connectHref = pre + '/settings/connect'
  29. isOwner = repo != null && ownsRepo(slug, session)
  30. connected = repo != null && repo.ticketsOn
  31. notConnected = repo != null && !repo.ticketsOn
  32. projectTitle = repo != null ? repo.ticketsTitle : ''
  33. projectHref = repo != null && repo.ticketsOn ? ticketsUrl + '/projects/' + repo.ticketsProject : ''
  34. connectNote = session != null && session.data != null && session.data.connectNote != null ? session.data.connectNote : ''
  35. hasConnectNote = connectNote != ''
  36. notOwnerHint = repo != null && !isOwner
  37. settingsError = ''
  38. forgetClass = repo != null && repo.ticketsOn ? 'quiet' : 'nomerge'
  39. __title = pageTitle(siteName, titleSlug(host, orepo, session), 'Settings')
  40. // VISIBILITY AND MEMBERS (GO34): the owner makes the repo private / public and keeps the member list (people who see a private repo and may push)
  41. isPrivate = repo != null && repo.isPrivate
  42. ownPriv = repo != null && repo.isPrivate && !repo.inOrg
  43. privText = repo == null ? '' : (repo.isPrivate ? 'This repository is private: only its owner and its members can see it.' : 'This repository is public: everybody can read it.')
  44. privButton = repo != null && repo.isPrivate ? 'Make public' : 'Make private'
  45. // REFUSE DIRECT PUSHES TO THE MAIN BRANCH (gitoria#50): the owner's switch; off by default
  46. isProtected = repo != null && isProtectedMain(slug)
  47. protectText = isProtected ? 'Direct pushes to the main branch are refused: push a branch with a |||PR commit and merge it on the pulls page.' : 'Anybody who may push can push to the main branch.'
  48. protectButton = isProtected ? 'Allow direct pushes' : 'Refuse direct pushes to the main branch'
  49. listed = isOwner ? membersOf('r', slug, userIdOfSession(session)) : null
  50. members = listed != null && listed.members != null ? listed.members : []
  51. noMembers = isOwner && members.length == 0
  52. memberName = ''
  53. memberError = ''
  54. // APPS (gitoria#41): the owner's list; the connect request an app parked in this session (for this repo only); what was just made (shown once)
  55. apps = isOwner ? appRows(repo.id) : []
  56. noApps = isOwner && apps.length == 0
  57. parked = session != null && session.data != null && session.data.appConnect != null && repo != null && session.data.appConnect.slug == slug ? session.data.appConnect : null
  58. hasParked = parked != null
  59. parkedApp = parked != null ? parked.app : ''
  60. parkedHost = parked != null ? hostOfUrl(parked.ret) : ''
  61. parkedNonce = parked != null ? parked.nonce : ''
  62. confirmAction = pre + '/settings/apps/confirm'
  63. parkedSignedOut = hasParked && session != null && userIdOfSession(session) == null
  64. parkedNotOwner = hasParked && userIdOfSession(session) != null && !isOwner
  65. parkedOwner = hasParked && isOwner
  66. // the Apps section is the owner's; a signed-in non-owner who came to connect an app still gets its message (gitoria#45)
  67. showApps = isOwner || hasParked
  68. appName = ''
  69. appHook = ''
  70. appError = ''
  71. hasShown = false
  72. shownName = ''
  73. shownKey = ''
  74. hasShownKey = false
  75. shownSecret = ''
  76. shownText = ''
  77. // REQUIRED BEFORE MERGE (gitoria#46): the contexts the owner requires to be success on a pull request's head
  78. required = isOwner ? requiredList(repo.id) : []
  79. noRequired = isOwner && required.length == 0
  80. requiredApp = apps.length > 0 ? apps[0].id : ''
  81. requiredContext = ''
  82. requiredError = ''
  83. people = isOwner ? peopleOfRepo(slug) : []
  84. requiredPerson = people.length > 0 ? people[0].id : ''
  85. View {
  86. repoPage {
  87. if (hasRepo) {
  88. repoSettings { id = "settings"
  89. section { id = "visibility"
  90. h2 { "Visibility" }
  91. p { id = "privtext" privText }
  92. if (isOwner) { button { id = "togglepriv" type = "button" privButton on click(e) { emit togglePriv() } } }
  93. p { id = "protecttext" protectText }
  94. if (isOwner) { button { id = "toggleprotect" type = "button" protectButton on click(e) { emit toggleProtect() } } }
  95. if (isOwner) {
  96. h2 { "Members" }
  97. p { class = "muted" "Members see this repository even when it is private, and may push to it. Add somebody by the display name they chose." }
  98. if (noMembers) { p { id = "nomembers" class = "empty" "No members yet." } }
  99. ul { id = "members"
  100. for (m of members) {
  101. li { span { class = "slug" m.name } button { class = "quiet" type = "button" "Remove" on click(e) { emit removeMember(m.name) } } }
  102. }
  103. }
  104. form { id = "memberform"
  105. on submit(e) {
  106. e.preventDefault()
  107. emit addMember(e)
  108. }
  109. label { "Display name"
  110. input { id = "membername" name = "membername" required = "required" maxlength = "60" autocomplete = "off" value = memberName on input(e) { memberName = e.target.value } }
  111. }
  112. button { id = "memberadd" type = "submit" "Add member" }
  113. p { id = "membererror" memberError }
  114. }
  115. }
  116. }
  117. if (showApps) {
  118. section { id = "apps"
  119. h2 { "Apps" }
  120. if (parkedSignedOut) { p { id = "appsignin" "Sign in with the selector at the top to connect " + parkedApp + " to this repository." } }
  121. if (parkedNotOwner) { p { id = "appnotowner" "Only the owner of this repository can connect " + parkedApp + "." } }
  122. if (parkedOwner) {
  123. form { id = "connectapp" method = "post" action = confirmAction
  124. p { id = "connectask" "Connect " + parkedApp + " to " + slug + "?" }
  125. p { class = "muted" "It will get read access to this repository and may review its pull requests. When you say Yes you go back to " + parkedHost + "." }
  126. input { name = "nonce" type = "hidden" value = parkedNonce }
  127. button { id = "connectyes" type = "submit" name = "decision" value = "yes" "Yes, connect" }
  128. button { id = "connectno" class = "quiet" type = "submit" name = "decision" value = "no" "No" }
  129. }
  130. }
  131. if (hasShown) {
  132. div { id = "appshown"
  133. p { shownText }
  134. if (hasShownKey) { p { "Key: " code { id = "shownkey" shownKey } } }
  135. p { "Secret: " code { id = "shownsecret" shownSecret } }
  136. }
  137. }
  138. if (isOwner) {
  139. p { class = "muted" "An app is an outside program (for example a code reviewer) that works on this repository under its own name. Its key and secret are shown once." }
  140. if (noApps) { p { id = "noapps" class = "empty" "No apps connected." } }
  141. ul { id = "applist"
  142. for (a of apps) {
  143. li {
  144. span { class = "slug" a.name }
  145. span { class = "muted" a.host + " · added " + a.created + " · " + a.status }
  146. button { class = "quiet" type = "button" "Send ping" on click(e) { emit pingApp(a.id) } }
  147. button { class = "quiet" type = "button" "Rotate secret" on click(e) { emit rotateApp(a.id) } }
  148. button { class = "quiet" type = "button" "Remove" on click(e) { emit removeAppRow(a.id) } }
  149. }
  150. }
  151. }
  152. form { id = "appform"
  153. on submit(e) {
  154. e.preventDefault()
  155. emit addAppRow(e)
  156. }
  157. label { "App name"
  158. input { id = "appname" name = "appname" required = "required" maxlength = "60" autocomplete = "off" value = appName on input(e) { appName = e.target.value } }
  159. }
  160. label { "Receiver address"
  161. input { id = "apphook" name = "apphook" type = "url" required = "required" maxlength = "500" autocomplete = "off" placeholder = "https://…" value = appHook on input(e) { appHook = e.target.value } }
  162. }
  163. button { id = "appadd" type = "submit" "Add app" }
  164. p { id = "apperror" appError }
  165. }
  166. }
  167. }
  168. }
  169. section { id = "required"
  170. if (isOwner) {
  171. h2 { "Required before merge" }
  172. p { class = "muted" "Require app contexts, people, or both. All required app contexts must succeed, or any one listed person must approve the current head. With only people listed, a person’s approval is needed. A push makes earlier approvals stale." }
  173. if (noRequired) { p { id = "norequired" class = "empty" "Nothing is required: every pull request can be merged." } }
  174. ul { id = "requiredlist"
  175. for (r of required) {
  176. li {
  177. span { class = "slug" r.name }
  178. button { class = "quiet" type = "button" "Remove" on click(e) { emit dropRequiredRow(r.id) } }
  179. }
  180. }
  181. }
  182. form { id = "requiredPersonForm"
  183. on submit(Hybrid e) { emit addRequiredPerson() }
  184. label { "Person"
  185. select { id = "requiredPerson" name = "person" value = requiredPerson on change(Hybrid e) { requiredPerson = e.target.value }
  186. for (person of people) { option { value = person.id person.name } }
  187. }
  188. }
  189. button { id = "requirePerson" type = "submit" "Require approval" }
  190. }
  191. form { id = "requiredform"
  192. on submit(e) {
  193. e.preventDefault()
  194. emit addRequiredRow(e)
  195. }
  196. label { "App"
  197. select { id = "requiredapp" name = "requiredapp" value = requiredApp on change(e) { requiredApp = e.target.value }
  198. for (a of apps) { option { value = a.id a.name } }
  199. }
  200. }
  201. label { "Status context the app sets"
  202. input { id = "requiredcontext" name = "requiredcontext" required = "required" maxlength = "100" autocomplete = "off" value = requiredContext on input(e) { requiredContext = e.target.value } }
  203. }
  204. button { id = "requiredadd" type = "submit" "Require it" }
  205. p { id = "requirederror" requiredError }
  206. }
  207. }
  208. }
  209. section { id = "ticketsettings"
  210. h2 { "Tickets" }
  211. if (hasConnectNote) { p { id = "connectnote" connectNote } }
  212. if (connected) {
  213. p { id = "connectedto" "Connected to the tickets project " a { id = "projectlink" href = projectHref projectTitle } "." }
  214. }
  215. if (notConnected) { p { id = "notconnected" class = "muted" "This repository is not connected to a tickets project yet." } }
  216. if (isOwner) {
  217. p {
  218. a { id = "connecttickets" class = "button" href = connectHref "Tickets: connect" }
  219. }
  220. // Connection-state classes are computed and have no Style-rule selection form.
  221. button { id = "disconnecttickets" class = forgetClass type = "button" "Forget the connection" on click(e) { emit disconnect() } }
  222. p { class = "muted" "Connecting asks tickets which project (you must be its admin there). Tickets can also disconnect gitoria from its side." }
  223. }
  224. if (notOwnerHint) { p { id = "ownerhint" class = "muted" "Only the owner of this repository can connect it." } }
  225. p { id = "settingserror" settingsError }
  226. }
  227. }
  228. }
  229. }
  230. }
  231. on togglePriv() {
  232. memberError = ''
  233. r = emit server gitoriaSetPrivate(slug, !isPrivate)
  234. if (r == null || r.error != null) {
  235. memberError = r != null ? r.error : 'could not change the visibility'
  236. return null
  237. }
  238. isPrivate = r.repo.isPrivate
  239. privText = isPrivate ? 'This repository is private: only its owner and its members can see it.' : 'This repository is public: everybody can read it.'
  240. privButton = isPrivate ? 'Make public' : 'Make private'
  241. }
  242. on toggleProtect() {
  243. memberError = ''
  244. r = emit server gitoriaSetProtect(slug, !isProtected)
  245. if (r == null || r.error != null) {
  246. memberError = r != null ? r.error : 'could not change the setting'
  247. return null
  248. }
  249. isProtected = r.protect
  250. protectText = isProtected ? 'Direct pushes to the main branch are refused: push a branch with a |||PR commit and merge it on the pulls page.' : 'Anybody who may push can push to the main branch.'
  251. protectButton = isProtected ? 'Allow direct pushes' : 'Refuse direct pushes to the main branch'
  252. }
  253. on server gitoriaSetProtect(slugOf, wanted, session) {
  254. return setProtectMain(userIdOfSession(session), slugOf, wanted)
  255. }
  256. on addMember(e) {
  257. memberError = ''
  258. r = emit server gitoriaChangeMember(slug, memberName, true)
  259. if (r == null || r.error != null) {
  260. memberError = r != null ? r.error : 'could not add the member'
  261. return null
  262. }
  263. members = r.members
  264. noMembers = members.length == 0
  265. memberName = ''
  266. }
  267. on removeMember(name) {
  268. memberError = ''
  269. r = emit server gitoriaChangeMember(slug, name, false)
  270. if (r == null || r.error != null) {
  271. memberError = r != null ? r.error : 'could not remove the member'
  272. return null
  273. }
  274. members = r.members
  275. noMembers = members.length == 0
  276. }
  277. on server gitoriaSetPrivate(slugOf, priv, session) {
  278. return setRepoPriv(userIdOfSession(session), slugOf, priv)
  279. }
  280. on addAppRow(e) {
  281. appError = ''
  282. r = emit server gitoriaAppAdd(slug, appName, appHook)
  283. if (r == null || r.error != null) {
  284. appError = r != null ? r.error : 'could not add the app'
  285. return null
  286. }
  287. apps = r.rows
  288. noApps = apps.length == 0
  289. hasShown = true
  290. shownText = 'Connected ' + r.name + '. Copy the key and the secret now: they are not shown again.'
  291. shownKey = r.key
  292. hasShownKey = true
  293. shownSecret = r.secret
  294. appName = ''
  295. appHook = ''
  296. }
  297. on removeAppRow(id) {
  298. appError = ''
  299. r = emit server gitoriaAppRemove(slug, id)
  300. if (r == null || r.error != null) {
  301. appError = r != null ? r.error : 'could not remove the app'
  302. return null
  303. }
  304. apps = r.rows
  305. noApps = apps.length == 0
  306. hasShown = false
  307. }
  308. on pingApp(id) {
  309. appError = ''
  310. r = emit server gitoriaAppPing(slug, id)
  311. if (r == null || r.error != null) {
  312. appError = r != null ? r.error : 'could not send the ping'
  313. return null
  314. }
  315. appError = 'Ping to ' + r.name + ' is on its way. The status of the app shows the answer.'
  316. }
  317. on rotateApp(id) {
  318. appError = ''
  319. r = emit server gitoriaAppRotate(slug, id)
  320. if (r == null || r.error != null) {
  321. appError = r != null ? r.error : 'could not rotate the secret'
  322. return null
  323. }
  324. apps = r.rows
  325. hasShown = true
  326. shownText = 'New secret for ' + r.name + '. Copy it now: it is not shown again. The old secret no longer signs anything.'
  327. shownKey = ''
  328. hasShownKey = false
  329. shownSecret = r.secret
  330. }
  331. on client gitoriaRequiredChanged(String changedSlug) {
  332. if (changedSlug != slug || !isOwner) { return null }
  333. r = emit server gitoriaRequiredRead(slug)
  334. if (r == null) { return null }
  335. required = r.rows
  336. noRequired = required.length == 0
  337. }
  338. on server gitoriaRequiredRead(String slugOf, Hybrid session) {
  339. if (!ownsRepo(slugOf, session)) { return null }
  340. return { rows = requiredList(repoBySlug(slugOf).id) }
  341. }
  342. on addRequiredPerson() {
  343. requiredError = ''
  344. r = emit server gitoriaRequiredPersonAdd(slug, requiredPerson)
  345. if (r == null || r.error != null) {
  346. requiredError = r != null ? r.error : 'could not save the setting'
  347. return null
  348. }
  349. required = r.rows
  350. noRequired = required.length == 0
  351. }
  352. on server gitoriaRequiredPersonAdd(String slugOf, String personId, session) {
  353. r = requirePerson(userIdOfSession(session), session, slugOf, personId)
  354. if (r.error == null) { announceRequirements(slugOf) }
  355. return r
  356. }
  357. on addRequiredRow(e) {
  358. requiredError = ''
  359. r = emit server gitoriaRequiredAdd(slug, requiredApp, requiredContext)
  360. if (r == null || r.error != null) {
  361. requiredError = r != null ? r.error : 'could not save the setting'
  362. return null
  363. }
  364. required = r.rows
  365. noRequired = required.length == 0
  366. requiredContext = ''
  367. }
  368. on dropRequiredRow(id) {
  369. requiredError = ''
  370. r = emit server gitoriaRequiredRemove(slug, id)
  371. if (r == null || r.error != null) {
  372. requiredError = r != null ? r.error : 'could not save the setting'
  373. return null
  374. }
  375. required = r.rows
  376. noRequired = required.length == 0
  377. }
  378. on server gitoriaRequiredAdd(slugOf, appId, ctxName, session) {
  379. r = requireContext(userIdOfSession(session), session, slugOf, appId, ctxName)
  380. if (r.error == null) { announceRequirements(slugOf) }
  381. return r
  382. }
  383. on server gitoriaRequiredRemove(slugOf, id, session) {
  384. r = dropRequired(userIdOfSession(session), session, slugOf, id)
  385. if (r.error == null) { announceRequirements(slugOf) }
  386. return r
  387. }
  388. on server gitoriaAppAdd(slugOf, name, hook, session) {
  389. return addApp(userIdOfSession(session), session, slugOf, name, hook)
  390. }
  391. on server gitoriaAppRemove(slugOf, id, session) {
  392. return removeApp(userIdOfSession(session), session, slugOf, id)
  393. }
  394. on server gitoriaAppPing(slugOf, id, session) {
  395. return sendPing(userIdOfSession(session), session, slugOf, id)
  396. }
  397. on server gitoriaAppRotate(slugOf, id, session) {
  398. return rotateSecret(userIdOfSession(session), session, slugOf, id)
  399. }
  400. on server gitoriaChangeMember(slugOf, name, add, session) {
  401. return changeMember(userIdOfSession(session), 'r', slugOf, name, add)
  402. }
  403. on disconnect() {
  404. settingsError = ''
  405. r = emit server gitoriaDisconnectTickets(slug)
  406. if (r == null || r.error != null) {
  407. settingsError = r != null ? r.error : 'could not disconnect'
  408. return null
  409. }
  410. connected = false
  411. notConnected = true
  412. forgetClass = 'nomerge'
  413. projectTitle = ''
  414. projectHref = ''
  415. }
  416. on server gitoriaDisconnectTickets(slugOf, session) {
  417. if (session == null || repoAt(slugOf, session) == null) { return { error = 'could not disconnect' } }
  418. if (userOfSession(session) == null || !ownsRepo(slugOf, session)) { return { error = 'only the owner can change this' } }
  419. r = setTicketsConnection(slugOf, '', '', '', '')
  420. if (r.error != null) { return { error = r.error } }
  421. return { ok = true }
  422. }
  423. Style {
  424. #requiredPersonForm {
  425. display = 'grid'
  426. gap = '.75rem'
  427. maxWidth = '32rem'
  428. }
  429. repoSettings {
  430. display = 'grid'
  431. gap = '1rem'
  432. minWidth = '0'
  433. // Direct-child and sibling combinators have no bare language form.
  434. '> *' {
  435. margin = '0'
  436. }
  437. }
  438. #ticketsettings {
  439. display = 'grid'
  440. gap = '.75rem'
  441. justifyItems = 'start'
  442. // Direct-child and sibling combinators have no bare language form.
  443. '> *' {
  444. margin = '0'
  445. }
  446. }
  447. // Runtime and theme class predicates have no bare selector form.
  448. '#disconnecttickets.nomerge' {
  449. display = 'none'
  450. }
  451. #connecttickets {
  452. color = 'var(--color-accent-text)'
  453. background = 'var(--color-accent)'
  454. }
  455. #members {
  456. listStyle = 'none'
  457. margin = '0'
  458. padding = '0'
  459. display = 'grid'
  460. gap = '.25rem'
  461. maxWidth = '32rem'
  462. li {
  463. display = 'flex'
  464. alignItems = 'center'
  465. justifyContent = 'space-between'
  466. gap = '.75rem'
  467. minHeight = '2.75rem'
  468. padding = '0 .5rem 0 1rem'
  469. background = 'var(--color-surface)'
  470. borderRadius = 'var(--radius-large)'
  471. }
  472. }
  473. #memberform {
  474. display = 'grid'
  475. gap = '.75rem'
  476. margin = '.75rem 0 1.5rem'
  477. maxWidth = '32rem'
  478. }
  479. #apps {
  480. display = 'grid'
  481. gap = '.75rem'
  482. margin = '0 0 1.5rem'
  483. justifyItems = 'start'
  484. // Direct-child and sibling combinators have no bare language form.
  485. '> *' {
  486. margin = '0'
  487. }
  488. }
  489. #connectapp {
  490. display = 'grid'
  491. gap = '.75rem'
  492. maxWidth = '32rem'
  493. padding = '1rem'
  494. background = 'var(--color-surface)'
  495. borderRadius = 'var(--radius-large)'
  496. }
  497. #appshown {
  498. margin = '0'
  499. color = 'var(--color-danger)'
  500. empty { display = 'none' }
  501. display = 'grid'
  502. gap = '.5rem'
  503. maxWidth = '100%'
  504. code {
  505. overflowWrap = 'anywhere'
  506. }
  507. }
  508. #applist {
  509. listStyle = 'none'
  510. margin = '0'
  511. padding = '0'
  512. display = 'grid'
  513. gap = '.25rem'
  514. maxWidth = '40rem'
  515. width = '100%'
  516. li {
  517. display = 'flex'
  518. flexWrap = 'wrap'
  519. alignItems = 'center'
  520. gap = '.5rem .75rem'
  521. minHeight = '2.75rem'
  522. padding = '.25rem .5rem .25rem 1rem'
  523. background = 'var(--color-surface)'
  524. borderRadius = 'var(--radius-large)'
  525. }
  526. }
  527. #required {
  528. display = 'grid'
  529. gap = '.75rem'
  530. margin = '0 0 1.5rem'
  531. justifyItems = 'start'
  532. // Direct-child and sibling combinators have no bare language form.
  533. '> *' {
  534. margin = '0'
  535. }
  536. }
  537. #requiredlist {
  538. listStyle = 'none'
  539. margin = '0'
  540. padding = '0'
  541. display = 'grid'
  542. gap = '.25rem'
  543. maxWidth = '40rem'
  544. width = '100%'
  545. li {
  546. display = 'flex'
  547. flexWrap = 'wrap'
  548. alignItems = 'center'
  549. justifyContent = 'space-between'
  550. gap = '.5rem .75rem'
  551. minHeight = '2.75rem'
  552. padding = '.25rem .5rem .25rem 1rem'
  553. background = 'var(--color-surface)'
  554. borderRadius = 'var(--radius-large)'
  555. }
  556. }
  557. #requiredform {
  558. display = 'grid'
  559. gap = '.75rem'
  560. maxWidth = '32rem'
  561. }
  562. #appform {
  563. display = 'grid'
  564. gap = '.75rem'
  565. maxWidth = '32rem'
  566. }
  567. #toggleprotect {
  568. justifySelf = 'start'
  569. }
  570. #togglepriv {
  571. justifySelf = 'start'
  572. }
  573. #visibility {
  574. display = 'grid'
  575. gap = '.75rem'
  576. margin = '0 0 1.5rem'
  577. }
  578. #membererror {
  579. margin = '0'
  580. color = 'var(--color-danger)'
  581. empty { display = 'none' }
  582. }
  583. #appsignin {
  584. margin = '0'
  585. color = 'var(--color-danger)'
  586. empty { display = 'none' }
  587. }
  588. #appnotowner {
  589. margin = '0'
  590. color = 'var(--color-danger)'
  591. empty { display = 'none' }
  592. }
  593. #apperror {
  594. margin = '0'
  595. color = 'var(--color-danger)'
  596. empty { display = 'none' }
  597. }
  598. #requirederror {
  599. margin = '0'
  600. color = 'var(--color-danger)'
  601. empty { display = 'none' }
  602. }
  603. #connectnote {
  604. margin = '0'
  605. color = 'var(--color-danger)'
  606. empty { display = 'none' }
  607. }
  608. #settingserror {
  609. margin = '0'
  610. color = 'var(--color-danger)'
  611. empty { display = 'none' }
  612. }
  613. }

Branches

Latest commits

  • 80307ae2|||PR pulls page cache: live PR numbers, complete scans onlymre
  • 69141f65|||PR pulls page: cache the git part per repo by branch tipsmre
  • 155861f6Merge branch 'w52-person-approval' into mainGitoria
  • b5435de8|||PR person approvals: second Kunibert round (#52)mre
  • 3a8b2fb8|||PR person approvals: Kunibert review fixes (#52)mre
  • 2a89d8d0|||PR person approvals: Approve button for people; merge needs the required checks or a listed person's approval (#52)mre
  • 83f0c953Report person approval verificationmre
  • 3ae94b86Record browser failures and verify owned tab cleanupmre
  • 54eec687Gate person approvals and merge alternativesmre
  • 12b08829Add person approvals for pull request headsmre
  • 55c84779Merge branch 'gp-gate-ports' into mainGitoria
  • 57af42bbREADME: point to deploy.sh for the port listmre
  • d63375d2README: gate commands with explicit portsmre
  • feeaa701|||PR gates: explicit ports only, deploy.sh passes themmre
  • 6cc1f943Merge branch 'records-1112' into mainGitoria
  • 9448c438|||PR records: LOG, missions and reports since 11-09mre
  • 6dc08a8eMerge branch 'p51-public-pr-reads' into mainGitoria
  • 7b88cfe0Type publicReaderOfRequest parameters (L10)Gitoria
  • 2a4b3dc1|||PR Anonymous reads of public repos' pulls and statusesmre
  • 21b2c141Merge branch 's25-no-session-on-login-error' into mainGitoria