Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
f8be8bd
Device apps (portal): every app drawn from what the API says — no con…
Nov 15, 2026
fa39713
Device apps (portal): contract 1 — labelled choices, the owner's port…
evanrbowers Nov 17, 2026
8d51f9d
Root consent names what the release it is given to asks, not the runn…
evanrbowers Nov 17, 2026
3633673
Merge pull request #1340 from remoteit/ac1/portal-contract-1
evanrbowers Nov 17, 2026
5c78f17
Device apps (portal): a setting its administrator holds is said so; a…
evanrbowers Nov 17, 2026
bd1087d
Merge pull request #1341 from remoteit/ac1/admin-lock-udp
evanrbowers Nov 17, 2026
45d8f2c
Device apps (portal): every service of an app, each with its ports, o…
evanrbowers Nov 17, 2026
ae76a23
Device apps (portal): a port setting reads the app's services again; …
evanrbowers Nov 17, 2026
09fde4b
Merge pull request #1342 from remoteit/ac1/app-services
evanrbowers Nov 17, 2026
dcc9c00
Device apps (portal): an app change reads its device again; a service…
evanrbowers Nov 17, 2026
d96c1ea
Add an app: what the chosen channel's releases ask, and a yes given o…
evanrbowers Nov 17, 2026
01831f0
Merge pull request #1345 from remoteit/ac1/codex-fixes
evanrbowers Nov 17, 2026
46aaae1
Device apps (portal): consent asked as graphql asks it, under the acc…
evanrbowers Nov 17, 2026
e0f9237
Device apps (portal): a channel's consent names every release it may …
evanrbowers Nov 17, 2026
8d626df
Device apps (portal): the fleet's Update names what the release it mo…
evanrbowers Nov 17, 2026
24ff748
Device apps (portal): a release whose asks are not known is said so, …
evanrbowers Nov 17, 2026
6c23c18
Merge pull request #1346 from remoteit/ac1/consent-rule
evanrbowers Nov 17, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 17 additions & 7 deletions frontend/src/buttons/ServiceConnectButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ import { ErrorButton } from '../buttons/ErrorButton'
import { DesktopUI } from '../components/DesktopUI'
import { Gutters } from '../components/Gutters'
import { LocalSubnetConnect } from '../components/LocalSubnetConnect'
import { isConsoleService } from '../helpers/sshHelper'
import { opensTerminal } from '../helpers/sshHelper'
import { useLocalSignIn, useSubnetReach } from '../hooks/useLocalSubnetName'
import { LocalSignInNotice } from '../components/LocalSignInNotice'
import { BrowserGatewayConnect } from '../components/BrowserGatewayConnect'
import { ConsoleTerminalOption } from '../components/ConsoleTerminal'
import { AppTerminalOption } from '../components/AppTerminal'
import { useServiceApp } from '../hooks/useDeviceApps'
import { useApplication } from '../hooks/useApplication'
import { Link } from '../components/Link'
import { LocalPortConnect } from '../components/LocalPortConnect'
Expand All @@ -35,6 +36,10 @@ export const ServiceConnectButton: React.FC = () => {
// (services/browserGateway), the proxy one step away as for a local name.
const web = useApplication(service, connection).urlForm
const ssh = service?.typeID === 28
// The app the service belongs to, where it does: one whose service is ssh and that signs people in by certificate
// opens in our web SSH as well, with the person's own account (components/AppTerminal).
const serving = useServiceApp(device, service)
const byCertificate = opensTerminal(serving.app, serving.appService)
const gateway = !local && reach.checked && !!reach.name && (!!web || ssh) && !proxy
// A local port of this machine (services/localPorts), where it runs our daemon: asked for here, or open already —
// then it is what the panel shows, until it is disconnected.
Expand Down Expand Up @@ -125,7 +130,12 @@ export const ServiceConnectButton: React.FC = () => {
) : named ? (
<Box sx={{ width: '100%' }}>
{local ? (
<LocalSubnetConnect local={local} service={service} connection={connection} />
<LocalSubnetConnect
local={local}
service={service}
connection={connection}
byCertificate={byCertificate}
/>
) : (
<BrowserGatewayConnect
name={reach.name!}
Expand All @@ -135,7 +145,7 @@ export const ServiceConnectButton: React.FC = () => {
port: service.port || 22,
title: service.name,
service: service.id,
console: isConsoleService(service),
byCertificate,
}
: undefined
}
Expand Down Expand Up @@ -167,10 +177,10 @@ export const ServiceConnectButton: React.FC = () => {
{portLink}
</Gutters>
)}
{/* The console: our web SSH, an option beside the ways above. */}
{isConsoleService(service) && (
{/* An app's ssh service that signs people in by certificate: our web SSH, an option beside the ways above. */}
{byCertificate && (
<Gutters size="md" top={null} bottom={null}>
<ConsoleTerminalOption device={device} service={service} />
<AppTerminalOption device={device} service={service} serving={serving} />
</Gutters>
)}
{/* The service's other ports here that this machine's daemon lists: the machine's, opened by someone else. */}
Expand Down
16 changes: 13 additions & 3 deletions frontend/src/components/AppCatalogRow.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import React from 'react'
import { useTranslation } from 'react-i18next'
import { Box, ListItem, ListItemButton, ListItemIcon, ListItemText, Typography } from '@mui/material'
import { firstPartyApp } from './firstPartyApps'
import { appIcon, capabilitiesLine } from '../helpers/appsHelper'
import { Icon } from './Icon'

/* One app in the catalogue (presence-server docs/device-apps-design.md, "The Apps pages"): its name, its publisher with
Verified: <domain> and Yours for the account's own, Runs as root or Restricted, its description, its platforms and
Verified: <domain> and Yours for the account's own, Runs as root or Restricted and what else it asks of remote.it
(its capabilities, in words), its icon from how its service opens, its description, its platforms and
what is said beside them (how many devices have it, or why this device cannot take it). The row opens the app;
its action (Add…) sits at its end. */
export type AppCatalogRowProps = {
Expand All @@ -15,6 +16,8 @@ export type AppCatalogRowProps = {
verifiedDomain?: string | null
own?: boolean // the account's own publisher
root: boolean
capabilities?: string[]
protocol?: string | null // how its service opens: its icon
description?: string | null
platforms?: string | null // as families
aside?: React.ReactNode // beside the platforms: how many devices have it
Expand All @@ -30,6 +33,8 @@ export const AppCatalogRow: React.FC<AppCatalogRowProps> = ({
verifiedDomain,
own,
root,
capabilities,
protocol,
description,
platforms,
aside,
Expand All @@ -41,7 +46,7 @@ export const AppCatalogRow: React.FC<AppCatalogRowProps> = ({
const body = (
<>
<ListItemIcon sx={{ alignSelf: 'flex-start', marginTop: 0.5 }}>
<Icon name={firstPartyApp(id)?.icon ?? 'cube'} size="md" fixedWidth />
<Icon name={appIcon(protocol)} size="md" fixedWidth />
</ListItemIcon>
<ListItemText
primary={
Expand All @@ -61,6 +66,11 @@ export const AppCatalogRow: React.FC<AppCatalogRowProps> = ({
? t('apps.runsAsRootFull', 'Runs as root: full control of the device')
: t('apps.restricted', 'Restricted')}
</Typography>
{!!capabilities?.length && (
<Typography variant="caption" color="textSecondary" data-catalog-capabilities>
{capabilitiesLine(t, capabilities)}
</Typography>
)}
</Box>
}
secondaryTypographyProps={{ component: 'div' }}
Expand Down
Loading
Loading