Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: keep non-PM2 repository paths readable on Apps cards at phone width (#6931)

[._.]/ Adam Eivy08d0659fa029
diff --git a/client/src/pages/Apps.jsx b/client/src/pages/Apps.jsx
index b38056c44a..efb107d6d6 100644
--- a/client/src/pages/Apps.jsx
+++ b/client/src/pages/Apps.jsx
@@ -352,7 +352,7 @@ export default function Apps() {
<AppQuality app={app} />
<div className="text-xs text-gray-500 flex flex-wrap gap-x-2 mt-1">
{isNonPm2 ? (
- <span className="text-gray-500">{app.repoPath}</span>
+ <span className="break-all">{app.repoPath}</span>
) : (
(app.pm2ProcessNames || []).map((procName, i) => {
const procInfo = app.processes?.find(p => p.name === procName);
diff --git a/client/src/pages/Apps.test.jsx b/client/src/pages/Apps.test.jsx
index fe46b504bb..3cd7933ffe 100644
--- a/client/src/pages/Apps.test.jsx
+++ b/client/src/pages/Apps.test.jsx
@@ -171,6 +171,27 @@ describe('Apps row action hierarchy', () => {
await waitFor(() => expect(api.openAppInXcode).toHaveBeenCalledWith('app-ios'));
});
+ it('keeps a long non-PM2 repository path wrapping within its column instead of overflowing', async () => {
+ // A single unbroken directory segment can't rely on slash-based line
+ // breaking, so the fix must allow mid-word wrapping (break-all) — which
+ // also drops the flex item's min-content width enough for it to shrink
+ // to the available column instead of forcing the row wider.
+ api.getApps.mockResolvedValue([{
+ ...APPS[0],
+ id: 'app-longpath',
+ name: 'Example Long Path App',
+ type: 'ios-native',
+ repoPath: '/srv/thisisaverylongsingledirectorysegmentwithnobreakpoints/example-ios',
+ pm2ProcessNames: [],
+ processes: [],
+ }]);
+ render(<MemoryRouter><Apps /></MemoryRouter>);
+ await screen.findByRole('link', { name: 'Example Long Path App' });
+
+ const repoPathSpan = screen.getByText('/srv/thisisaverylongsingledirectorysegmentwithnobreakpoints/example-ios');
+ expect(repoPathSpan.className).toEqual(expect.stringContaining('break-all'));
+ });
+
it('withholds the overflow menu for the PortOS baseline app', async () => {
api.getApps.mockResolvedValue([{ ...APPS[0], id: 'portos-default', name: 'PortOS' }]);
render(<MemoryRouter><Apps /></MemoryRouter>);