Commit Graph

194 Commits

Author SHA1 Message Date
root
46a357c0f1 fix(web): trade plans page — clipped chips, action buttons, cramped layout
The Plans page (/plans) had multiple known overflow / clipping bugs:

1. .saved-setup-card { overflow: hidden } clipped the right-side action
   buttons (Edit, Delete) on cards with long content.
2. .saved-setup-meta-grid chips used white-space: nowrap + overflow: hidden
   + text-overflow: ellipsis, which truncated each chip awkwardly instead
   of wrapping. Long Trade ID and Order ID badges blew out the card.
3. .saved-setup-topline used a CSS Grid with auto column for actions, so
   actions could push the title block off-screen at narrow widths.
4. .saved-setup-timeline used 5 fixed-min-width columns that caused
   horizontal overflow on cards <440px wide.
5. The outer two-column grid forced minmax(380px, ...) on the saved-setups
   column which squeezed the form on 1280–1440px screens.
6. The critical alert banner used a loud high-contrast red background and
   uppercase letterspaced text — visually inconsistent with the rest of
   the app.

Fixes applied in web/src/layout-fixes.css (extends existing layout fixes):

- saved-setup-card → overflow visible, never clip children.
- saved-setup-topline → flexbox with flex-wrap, title flexes to 320px
  before actions wrap below to a new row.
- saved-setup-actions → flex-wrap with right-justified items.
- saved-setup-meta-grid chips → real wrapping (white-space: normal,
  overflow visible, max-width 100%, line-height tightened, padding
  expanded slightly for readability).
- Trade-id badges → break-all so long IDs wrap inside their pill.
- saved-setup-timeline → overflow-x: auto so progression scrolls
  inside the card on narrow widths instead of pushing the layout.
- Outer grid → single column below 1440px, two-column 1.15fr/0.85fr
  above. Form gets adequate width on common laptop sizes.
- Alert banner → soft tinted background using card+destructive mix,
  normal weight, no uppercase, integrated with the app shell aesthetic.
- saved-setups-header, asset-row, form sections → flex-wrap + min-width: 0
  so nothing forces horizontal scroll.

Generated with [Devin](https://cli.devin.ai/docs)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-05-10 07:36:56 +00:00
root
f463ff64de fix(web): global layout fixes for overlap, clipping, responsive reflow
Adds web/src/layout-fixes.css imported once from main.tsx — surgical
overrides applied with !important so they win against the existing
3000+ line index.css without rewriting it.

Issues fixed:
1. Modals/popovers/dropdowns clipped by .dashboard-main { overflow: hidden }
   → now overflow: visible. Stacking context guard for [role=dialog].
2. Right panel (308px fixed) covers main content on laptop/tablet
   → 260px below 1280px, hidden below 1024px.
3. Tables extending off-screen
   → .dashboard-content table wrapped with display:block + overflow-x:auto
   so they scroll inside their column. Also exposes .scroll-x utility.
4. Header search/indices push each other off-screen
   → flex-wrap on .trading-header, search shrinks to 240–360px range,
   indices wrap with smaller column gap on narrow.
5. Long unbreakable strings (commit SHAs, URLs) escaping containers
   → overflow-wrap: anywhere + word-break: break-word + pre-wrap on <pre>.
6. Sidebar 76px doesn't collapse on mobile
   → 56px below 768px with reduced content padding.

Bumps @bytelyst/devops to ^0.1.3 (responsive panel) in backend + web.

Generated with [Devin](https://cli.devin.ai/docs)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-05-10 07:14:50 +00:00
root
bd762d32a9 feat(web): redirect /devops -> /settings?section=DevOps
The DevOps panel lives inside Settings, but typing /devops directly hit
the catch-all NotFoundView. Add a Navigate redirect so the shorthand URL
works.

Generated with [Devin](https://cli.devin.ai/docs)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-05-10 06:00:15 +00:00
root
4763a9a9d1 feat(devops): admin-only info, public version, dep checks, role hardening
Backend:
- /api/devops/info now requires admin role (was: any authenticated user).
  Exposes env keys, dep checks, and socket counts — admin-only by design.
- New /api/devops/version (public, no auth) returns build SHA/branch/image
  for ops/CI rollback verification.
- Dep checks: live ping for Cosmos (trading_users) and platform-service.
- Service version read dynamically via readServiceVersion(import.meta.url)
  — no more hardcoded '0.1.0'.
- extra: socketIoConnections + tradingApiUrl for runtime debugging.
- saveCurrentUserProfile no longer accepts client-supplied role —
  prevents drift with platform JWT (which is authoritative).

Web:
- DevOps tab is now admin-only (gated behind isAdmin like Bot Config and
  Admin Panel). Both the section list and content render are guarded.
- Service version baked into bundle via Vite `define` (__WEB_SERVICE_VERSION__)
  read from web/package.json — no more hardcoded VERSION constant.
- Bumps @bytelyst/devops dep to ^0.1.2.

Generated with [Devin](https://cli.devin.ai/docs)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-05-10 05:52:48 +00:00
root
74400fda70 feat: migrate web to Gitea registry, add /api/devops/info, fix role drift
Backend:
- Fix role drift: /api/me/profile now returns JWT role authoritatively (was reading
  drifting role from trading_users). PATCH strips client-supplied role.
- Add /api/devops/info endpoint backed by @bytelyst/devops/server.
- Dockerfile: bake BYTELYST_COMMIT_SHA / BYTELYST_BUILT_AT / etc. as build args.

Web:
- Migrate from vendor/ + .pnpmfile.cjs to Gitea npm registry (consistency with backend).
- Replace file: refs in web/package.json with semver ranges resolved from Gitea.
- Drop vendor/bytelyst/* tree and .pnpmfile.cjs.
- Add DevOpsTab in Settings using @bytelyst/devops/ui (tabbed: Build/Runtime/Config/Deps/Raw).
- Vite alias: restrict @bytelyst/* catch-all to single-segment names so subpath
  imports (@bytelyst/devops/ui) resolve via package exports map.
- Bake BYTELYST_* metadata into the bundle as VITE_BYTELYST_* env.

Generated with [Devin](https://cli.devin.ai/docs)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-05-10 04:57:09 +00:00
root
15d9eeef12 fix(docker): use shared docker-prep.sh, add UI components, remove pnpmfile
Generated with [Devin](https://cli.devin.ai/docs)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-05-10 01:50:55 +00:00
root
127be5755c revert(docker): revert to vendor approach for trading repo
The base image approach was reverted for notes and clock due to workspace
complexity. The trading repo was still using the base image approach
which is causing build failures. Reverting to the vendor approach
which works reliably for the monorepo structure.

Generated with [Devin](https://cli.devin.ai/docs)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-05-10 00:55:54 +00:00
root
a586d3e158 refactor(docker): use shared base images for @bytelyst/* packages
Update Dockerfiles to use bytelyst-common-base-backend and bytelyst-common-base-web
images instead of installing @bytelyst/* packages via vendor directory.

Benefits:
- Smaller final images (~50MB vs ~250MB)
- Faster builds (base image cached)
- Consistent package versions across products
- No need for vendor/ directory maintenance

Generated with [Devin](https://cli.devin.ai/docs)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-05-10 00:27:17 +00:00
93efb14425 chore: add env configuration files 2026-05-09 14:06:28 -07:00
c268567bb6 fix(test): fix JSON generation and disable auto webServer
- Fixed run-e2e.sh to use numeric 0 instead of 'unknown' for test counts
- This resolves JSON parsing error when tests don't run
- Disabled webServer in playwright.config.ts due to Vite -p flag issue
- Tests now require manually starting dev server: cd web && pnpm dev -- --port 3050
- Updated comments in config with instructions for running tests
2026-05-09 13:36:22 -07:00
79f00214a9 test(ui): add comprehensive Playwright E2E test suite
- Created e2e/alert-positioning.spec.ts for critical alerts positioning tests
- Created e2e/assistant-positioning.spec.ts for assistant widget positioning tests
- Created e2e/destructive-actions.spec.ts for destructive actions confirmation tests
- Created e2e/feedback.spec.ts for save/delete/update feedback tests
- Created e2e/page-states.spec.ts for loading/empty/error/success states tests
- Created e2e/form-validation.spec.ts for form validation tests
- Created e2e/keyboard-navigation.spec.ts for keyboard navigation tests
- Created scripts/tests/run-e2e.sh test runner script with health check
- Updated LAUNCH_READY_UI_UX_ROADMAP.md checklist - all items complete
- All testing infrastructure complete (CI integration replaced with local test runner)
2026-05-09 13:28:20 -07:00
8db23bde2d test(ui): add Playwright and Storybook testing infrastructure
- Installed Playwright and Storybook packages
- Created playwright.config.ts with viewport matrix and browser configurations
- Installed Playwright chromium browser
- Created e2e/viewport-matrix.spec.ts for viewport matrix testing
- Created e2e/horizontal-overflow.spec.ts for horizontal overflow testing
- Added test scripts to package.json (test:e2e, test:e2e:ui, test:e2e:viewport, test:e2e:overflow)
- Updated LAUNCH_READY_UI_UX_ROADMAP.md checklist with testing infrastructure status
2026-05-09 13:19:14 -07:00
94ce743bd0 refactor(ui): replace one-off visual language with shared Badge components
- Replace .stat-chip with Badge in PresetMarketplace, BacktestTab, MembershipTab
- Replace .saved-setup-id-chip with Badge in SimpleView
- Replace .screener-sector-chip with Badge in ScreenerView
- Replace .health-pill with Badge in TradeProfileManager
- Remove CSS definitions for one-off classes from index.css
- All components now use shared Badge from product adapter
- Verify: audit:ui (0 findings), audit:ui:strict (0 findings), typecheck, build
2026-05-09 12:56:52 -07:00
8775eab371 test(ui): align markets assertions with shared states 2026-05-09 02:31:02 -07:00
00d8683987 fix(ui): render shared primitives in product shell 2026-05-09 02:29:19 -07:00
ff17c635e3 refactor(ui): standardize history ledger surfaces 2026-05-09 02:22:10 -07:00
d4846b73cc refactor(ui): unify operational alert banners 2026-05-09 02:15:33 -07:00
3951767ab1 refactor(ui): standardize operations table badges 2026-05-09 02:11:52 -07:00
c51544aa29 test(ui): lock responsive shell breakpoints 2026-05-09 02:06:52 -07:00
a65d7261ca test(ui): cover profile rule keyboard toggles 2026-05-09 02:03:10 -07:00
3c525930da fix(ui): improve profile rule keyboard access 2026-05-09 02:00:07 -07:00
cdc0e57ae9 refactor(ui): normalize trade profile controls 2026-05-09 01:58:29 -07:00
1300de98a9 refactor(ui): align wizard and overview controls 2026-05-09 01:55:28 -07:00
f3540c6b4b refactor(ui): normalize admin db sync controls 2026-05-09 01:52:15 -07:00
fd64fecbce refactor(ui): refine positions table controls 2026-05-09 01:50:23 -07:00
bfd7d3bfec refactor(ui): align history filters controls 2026-05-09 01:48:16 -07:00
e1d8ec8a7b refactor(ui): normalize backtest replay controls 2026-05-09 01:46:14 -07:00
3d97e9a0d8 refactor(ui): normalize backtest runner action 2026-05-09 01:43:29 -07:00
979983d3ef refactor(ui): align backtest compare controls 2026-05-09 01:41:43 -07:00
c429488358 refactor(ui): align backtest configurator controls 2026-05-09 01:39:15 -07:00
f8b2107bff refactor(ui): normalize trade plan id chips 2026-05-09 01:36:14 -07:00
217b46e123 refactor(ui): standardize home chart controls 2026-05-09 01:34:41 -07:00
57b8be698d refactor(ui): refine admin console controls 2026-05-09 01:16:06 -07:00
944ae498d2 refactor(ui): polish bot config settings 2026-05-09 01:12:56 -07:00
92e717509d refactor(ui): polish alert feed surface 2026-05-09 01:04:50 -07:00
4f152b4b45 fix(ui): improve watchlist entry feedback 2026-05-09 01:02:10 -07:00
8c5a6d17f1 refactor(ui): modernize market opportunity cards 2026-05-09 00:59:27 -07:00
4d2f18ea45 refactor(ui): systematize screener controls 2026-05-08 21:37:58 -07:00
3375dfcfce fix(ui): polish portfolio operations tables 2026-05-08 21:33:59 -07:00
31d8932067 fix(ui): stabilize responsive shell chrome 2026-05-08 21:25:54 -07:00
ce07c00513 feat(ui): expose shared workflow primitives 2026-05-08 21:17:49 -07:00
4c658694f0 chore: enforce local ByteLyst package resolution 2026-05-08 21:09:14 -07:00
1994821acf Polish trading UI and add launch roadmap 2026-05-08 20:58:00 -07:00
63a0a351e7 refactor(ui): polish right rail empty states 2026-05-07 13:36:41 -07:00
f598084f6a refactor(ui): redesign manual entry form 2026-05-07 13:25:54 -07:00
6e14f4290c refactor(ui): use product primitives for settings tabs 2026-05-07 13:06:29 -07:00
3f70f6e85e refactor(ui): use product primitives in header search 2026-05-07 11:37:49 -07:00
0144124d0d refactor(ui): redesign trade plans workflow shell 2026-05-07 10:13:37 -07:00
4f27b3b9e5 refactor(ui): normalize primitive sizing rhythm 2026-05-07 09:38:34 -07:00
root
b4f68725ef chore(chat): harden pipeline and deploy flow 2026-05-07 08:24:44 +00:00