Repository navigation
Apps and permissions polish - #2757
Conversation
…polish # Conflicts: # CHANGELOG.md
…polish # Conflicts: # CHANGELOG.md
…polish # Conflicts: # CHANGELOG.md
- Apps: one Add button with a menu, Browse apps and Custom app (MCP), in place of Add custom MCP. - Apps: GitHub's and Slack's rows show the vendor's logo where an added app of theirs has one. - GitHub's page: the logo tile beside its name, "GitHub account connected" with a check, a Copy webhook address button in place of the raw address, the steps behind How to set up, and Remove on each repository (Disconnect stays the account's). - Approvals: a select on every row. Extra vigilant and Auto-review were switches, and a locked organization rule was text.
davidmckayv
left a comment
There was a problem hiding this comment.
Reviewed the diff against #2646's head (7de85a5), ran the changed tests (all pass), and looked at Apps, GitHub and Approvals in the workbench at 390px and 1440px, light and dark, in Chromium and WebKit, next to main.
The Add menu, the Approvals selects and the GitHub header read well. Both Approvals options are reachable and named, the Add menu and Copy webhook address work from the keyboard, and the GitHub logo sits on its white tile in dark mode as it should. Two things to fix before merge, and a few smaller ones inline.
1. When the copy fails, the webhook address breaks the row. On a self-hosted OpenBot served over plain http there is no clipboard, so the copy fails every time. The address then appears squeezed into the actions column. At 390px it wraps to about 7 characters a line in Chromium and one character a line in WebKit. At 1440px it wraps under the icon, outside the text column. Nothing says the copy failed, and the button still says Copy webhook address. Before this PR, those installs could always see the address. Inline comment has a fix.
2. The GitHub and Slack marks are loaded from the directory's logo URL, not bundled. So the same row shows a color logo in one organization and a gray glyph in another, depending on whether someone added the directory's GitHub or Slack app. In WebKit (Safari, and OpenBot Desktop on macOS), Composio's Slack logo never finishes loading inside the app: after 10s complete is false and no error fires. So the Slack tile is blank and the new fallback never runs. The same SVG loads fine on its own page, and main already shows the blank tile on the directory Slack app, so the cause is older than this PR. But this PR moves the Slack account tile, which used a bundled glyph, onto that path. Notion already has a bundled mark (assets/brands/notion.svg via appVendorLogo). Bundling GitHub's and Slack's the same way would fix both problems and needs no API data.
Smaller:
- Extra vigilant and Auto-review are on/off settings that take effect at once.
openbot-screen-layoutProcedure 3 says those rows get a Switch, and onboarding's Welcome and the chat settings card still use a Switch for the same Extra vigilant setting. If one select on every row is the new rule, update the skill in this PR so the next screen doesn't switch back, and decide about the other two places. Also, "Extra vigilant: Risky changes only" reads as a contradiction. - No test covers the new value mapping (
everytoenabled: true,ontoautoReview: true). If it were inverted, every test here would still pass. - CI hasn't run on this head yet. Only the
changesjob is listed, still queued.
- A webhook address that can't be copied is said, as an alert, and shown on a full-width line, selected with one click. "Copied" is announced to screen readers. - Approvals: Auto-review is a switch again. Extra vigilant is "Ask before: Risky changes / Every change" there, and tests check what each answer saves. - Add is a plain "Add custom app" button where there's nothing to browse.
GitHub's account tile and page drew a logo taken from the directory app's address, so it showed only where someone had added that app, and Slack's never loaded in WebKit. GitHub's mark is now bundled in assets/brands, like Notion's, from GitHub's brand kit. Slack's official mark isn't public without a sign-in, so its tile keeps the icon it had. rows.ts is back to the base branch.
|
Thanks Dave. Both must-fixes and the smaller points are in, at a53e10b:
Also in: Auto-review is a switch again, Extra vigilant reads "Ask before: Risky changes / Every change" with tests for what each saves, Copied is announced, and the one-item Add is a plain button. Screenshots in the description are retaken. |
davidmckayv
left a comment
There was a problem hiding this comment.
Re-reviewed the changes since 287ea9f. Copy failed, Apps and Approvals ran again in the workbench, Chromium and WebKit, light and dark, 390px and 1440px. Every point from my review is fixed:
- Copy failed: the alert line shows, and the address sits on its own full-width, selectable line at both widths in both browsers. With the keyboard, Tab then Enter copies the address, the button's name becomes "Copied", and the live region says it.
- GitHub mark: the bundled file matches
GitHub_Invertocat_Black.svgfrom brand.github.com'sGitHub_Logos.zippath for path. Onlywidth/heightcame off, and a<title>and a source comment went on. GitHub's logo rules allow its mark to show an integration with GitHub, unmodified, in black on a contrasting ground, and here it sits beside the word GitHub on a white tile in dark mode. It weighs 1.7 KB and loads nothing from outside, and its source is noted the same way as Notion's. Slack's account tile is back to its own icon and draws in WebKit. - Approvals: Auto-review is a switch again. "Ask before: Risky changes / Every change" reads cleanly, and both options can be reached and are named.
- Tests: the new ones check the saved values both ways, and the Auto-review switch.
- Add: Add is one plain button where there's nothing to browse.
One small copy fix before you merge, outside the diff: the empty state in connections.index.tsx (around line 759) still says "Add one with Add custom MCP." That button no longer exists on this page. It now says "Add", or "Add custom app" where there is no directory. Saying "Add one with Add." would match.
Not this PR: the Slack app added from the directory still draws a blank tile in WebKit, as it does on main, because its logo loads from Composio's address. Worth an issue of its own.
CI was still running when I posted. No job had failed.
Slack's account tile and page draw the multicolor Slack mark, bundled in assets/brands from Wikimedia Commons (Slack_icon_2019.svg, four paths, verbatim), the same way GitHub's is.
davidmckayv
left a comment
There was a problem hiding this comment.
Reviewed 923a6ee and 4486738 on top of my approval at a53e10b. The empty-state line is good. Two things stop me approving this head.
1. The bundled Slack mark (blocking). The artwork is right: the paths match the Commons file exactly, the colours are Slack's current four, and the file records its source the way GitHub's and Notion's do. The licence is the problem.
- Commons marks the file public domain for copyright (simple shapes) but flags it as a trademark. It credits Slack Technologies and names brandfolder.com/slack/logos as its source. It is a copy, not Slack's own download, which sits behind a sign-in.
- Slack's brand terms (slack.com/terms-of-service/slack-brand) say "Most uses require a specific written license" and "Don't distribute or otherwise make available our logos, marks or assets." The only thing they grant outright is saying in words that an app is integrated with Slack. GitHub's rules, by contrast, explicitly allow its logo to show an integration.
- This repo is public and MIT-licensed, so committing the file makes the logo available to anyone, which those terms forbid.
docs/design-system.mdasks for a new picture to be agreed first. GitHub's was; Slack's wasn't.
Please take slack.svg out and go back to the built-in Slack icon, as at a53e10b, which I approved. If we want Slack's colour mark, written permission from Slack (feedback@slack.com) comes first, in its own PR.
2. Blank logo tiles in WebKit come from loading="lazy", not from Slack's file. I had this wrong in my first review. In WebKit, inside the workbench frame, some lazy logo images never start loading. They stay complete=false with no error, so the fallback never runs. Which tiles go blank changes from run to run: the bundled Slack mark, the directory Slack logo, sometimes Gmail. Setting loading="eager" on those images makes every tile draw at once, directory Slack included. The same files load fine in WebKit on a plain page, so I can't say whether Safari itself does this, but the workbench does. At this head that means the Slack account tile can go blank, where at a53e10b its built-in icon always drew. Dropping loading="lazy" in PluginLogo fixes all of these tiles: they're 24px, and a bundled image gains nothing from lazy loading. It's a one-line change, here or in a follow-up. Item 1 alone puts the account tile back to its icon.
3. Empty state: "Apps show up here once they're added." is a complete sentence and follows the copy skill. The layout skill says not to repeat "Add one with X" when the page's Add button is right there. Good.
CI at this head: everything that has finished has passed. WebKit, the desktop setup window and macOS startup were still running when I posted.
Slack's brand terms don't allow redistributing its mark, so slack.svg comes out of this public repository and Slack's tile keeps its built-in icon, as at a53e10b. GitHub's mark stays. App logos load eagerly. In WebKit a lazy logo sometimes never started loading and fired no error, so its tile stayed blank and the fallback never ran.
|
Thanks Dave. Both points are fixed at 7b354a5:
Against your approval at a53e10b, the diff is now three files: the eager line, the empty-state sentence, and the test. The PR description is back to the a53e10b screenshots, which match this state. |
davidmckayv
left a comment
There was a problem hiding this comment.
Approved at 7b354a5. Against my a53e10b approval, the PR's own changes are exactly three: PluginLogo loads eagerly (with the WebKit reason in a comment), the empty-state line now reads "Apps show up here once they're added.", and a test pins loading=eager. The Slack mark is gone, so Slack uses its built-in icon again. Merge when CI is green.
…ude/apps-polish # Conflicts: # CHANGELOG.md # app/src/components/connections/apps-toolbar.tsx # app/src/routes/_authed/_app/connections.index.tsx
Stacked on #2646.
Polish for Apps, an app's page and Approvals, from the design audit against Claude, ChatGPT and Grok Bot. Updated after Dave's review.
1. Apps: GitHub's own mark
GitHub's tile on Apps and its page now show GitHub's own mark, bundled in `app/src/assets/brands/github.svg` like Notion's. The file is the Invertocat from GitHub's brand kit, `GitHub_Logos.zip` at brand.github.com. The mark is the same in every organization and loads nothing from outside. In dark mode it sits on the white logo tile, as every vendor mark does.
Slack keeps its built-in icon. Slack's brand terms don't allow redistributing its mark, so it can't be committed to this public repository. Using Slack's color mark would need written permission from Slack first, in a PR of its own.
App logos now load eagerly. In WebKit, a lazy logo sometimes never started loading and fired no error, so its tile stayed blank and the fallback never ran. `PluginLogo` also takes a `fallback`, so a vendor's icon can stand in for the letter tile.
2. One "Add" button with a menu
The filled toolbar button said "Add custom MCP". It is now "Add", with Browse apps and Custom app (MCP) in its menu. It shows to the same people as before. Where there is nothing to browse, on Browse apps itself or with no directory, it is one plain Add custom app button.
3. GitHub's page
PageShellgets an optionalmediaslot for this.4. Approvals
ask-first-copy.ts. Onboarding keeps its Extra vigilant switch, where the setting is offered as one on/off choice.openbot-screen-layoutsays.{ enabled: true }, Risky changes saves{ enabled: false }, and turning Auto-review off saves{ autoReview: false }.Screenshots
Workbench, OpenBot Desktop on Windows, fake data. Before and after use the same 1100 x 900 window at 100% zoom, with the same fixture. The fixture adds a GitHub app from the directory that isn't connected. GitHub's tile reads "Not connected · Connect" in both: an existing rule makes that tile speak for GitHub's tools too, not this change.
Checks
bun run typecheckinapp/: passes.bun teston the related test files (connections, apps, approvals, GitHub, identity, directory, layout, logos, look guards): 557 pass, 0 fail.team-connections-directory-layout.test.tsx, a browser test, and did not run it locally. Only the button name changed.Changelog
Apps.
Approvals.