Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: offendingcommit/openconcho
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.15.0
Choose a base ref
...
head repository: offendingcommit/openconcho
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.16.0
Choose a head ref
  • 14 commits
  • 12 files changed
  • 2 contributors

Commits on Jun 2, 2026

  1. feat(web): merge Fleet into a server-filterable Dashboard

    Implements Phase 1 of the UI navigation rework (docs/superpowers/specs/
    2026-06-02-ui-navigation-rework.md): the Dashboard now lists every workspace
    across every configured server as <workspace> (<server>), filterable by server,
    with cross-server aggregate cards (reusing computeFleetAggregates). Opening a
    workspace activates its server then drills into the existing detail route.
    Per-server fan-out lives in a ServerWorkspaceRows child (rules-of-hooks safe,
    mirrors FleetRow). Fleet removed from the sidebar nav; the /fleet route is left
    intact for now (full removal deferred to avoid churning fleet.test.tsx while #54
    is open).
    offendingcommit committed Jun 2, 2026
    Configuration menu
    Copy the full SHA
    e66f927 View commit details
    Browse the repository at this point in the history

Commits on Jun 3, 2026

  1. fix(ci): replace userEvent.selectOptions with fireEvent.change; bump …

    …setup-node to v6
    
    userEvent.selectOptions hangs in jsdom when firing pointer + change event
    sequences — fireEvent.change fires the React-controlled onChange directly
    and is deterministic. Removes userEvent import (no longer used).
    
    Bump actions/setup-node from v4 to v6 to clear the Node.js 20 deprecation
    warning on GitHub Actions runners.
    offendingcommit committed Jun 3, 2026
    Configuration menu
    Copy the full SHA
    1c28cae View commit details
    Browse the repository at this point in the history
  2. fix(web): break metricsEqual lastSeen dep-loop; add staleTime to test

    Remove lastSeen from metricsEqual in ServerWorkspaceRows: computeFleetAggregates
    never reads lastSeen, so comparing it in metricsEqual causes background TanStack
    Query refetches (dataUpdatedAt changes) to trigger spurious onMetrics callbacks,
    cascading into a Dashboard → ServerWorkspaceRows render loop that hits React's
    100-render limit in CI.
    
    Add staleTime: Infinity to the test QueryClient to prevent background refetches
    from interfering with test assertions.
    offendingcommit committed Jun 3, 2026
    Configuration menu
    Copy the full SHA
    173f096 View commit details
    Browse the repository at this point in the history
  3. fix(web): reset serverFilter when the selected instance is removed

    If the user filters to a specific server and that instance is then deleted
    (e.g. from Settings), shownInstances becomes [] — empty table, no message.
    A useEffect resets the filter to ALL_SERVERS whenever the selected ID
    disappears from the instances list.
    offendingcommit committed Jun 3, 2026
    Configuration menu
    Copy the full SHA
    699ec38 View commit details
    Browse the repository at this point in the history
  4. feat(web): redirect /fleet to Dashboard; update fleet tests

    /fleet now redirects to / so bookmarks and muscle-memory links land on the
    unified Dashboard rather than a 404-style dead route. Fleet tests updated
    to assert the redirect and the per-instance rows the Dashboard renders.
    offendingcommit committed Jun 3, 2026
    Configuration menu
    Copy the full SHA
    da126b2 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    36fb6ee View commit details
    Browse the repository at this point in the history
  6. fix(dashboard): remove lastSeen from metrics useMemo deps to break re…

    …nder loop
    
    lastSeen tracked workspacesQ.dataUpdatedAt which updates on every background
    refetch, creating a new metrics object reference each cycle. The useEffect
    dep on metrics then fired unconditionally, calling onMetrics → setMetricsById
    → Dashboard re-render → another refetch → infinite loop.
    
    computeFleetAggregates never reads lastSeen, so reporting it upward was
    pointless. Hardcode null and drop it from the dep array entirely.
    offendingcommit committed Jun 3, 2026
    Configuration menu
    Copy the full SHA
    f79cdaf View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    3c99af7 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    e59bfd9 View commit details
    Browse the repository at this point in the history
  9. fix(dashboard): use primitive deps in onMetrics effect to break rende…

    …r loop
    
    Using a metrics object as a useEffect dep causes the loop:
      onMetrics → setMetricsById → Dashboard re-renders → ServerWorkspaceRows
      re-renders → useQueries runs → TanStack Query cache subscriber fires
      (Sidebar's setNow) → query result objects are new references → metrics
      useMemo returns new object → effect dep changed → onMetrics again → ∞
    
    Fix: depend on the five primitive values (workspaceCount, conclusionCount,
    queueActive, queuePending, health) directly. React compares primitives by
    value, so the effect only fires when actual data changes, not on reference
    churn from re-renders.
    
    Also adds server-workspace-rows.test.tsx with three focused unit tests:
    correct health:ok report, stability after load (no re-fire), and health
    transition coverage.
    offendingcommit committed Jun 3, 2026
    Configuration menu
    Copy the full SHA
    9cc8637 View commit details
    Browse the repository at this point in the history
  10. fix(dashboard): guard setMetricsById against same-value calls to end …

    …loop
    
    Even with primitive useEffect deps, TanStack Query or React concurrent
    rendering can cause onMetrics to fire with identical values mid-render-cycle.
    Add a ref-based equality check in Dashboard.onMetrics: if all five metric
    values are unchanged, skip setMetricsById entirely — no state update, no
    Dashboard re-render, loop terminates.
    
    Also fixes vi.fn<TFunction>() typing in server-workspace-rows.test.tsx to
    satisfy tsc (Vitest 4 single-type-arg signature).
    offendingcommit committed Jun 3, 2026
    Configuration menu
    Copy the full SHA
    3b88a41 View commit details
    Browse the repository at this point in the history
  11. fix(web): stop Sidebar re-render loop from cache-event subscriber

    setNow(Date.now()) was called on every query-cache event, including
    events dispatched synchronously during ServerWorkspaceRows' render.
    On CI, consecutive Date.now() calls cross millisecond boundaries so
    each call returns a new value — React always re-renders Sidebar, which
    re-renders the layout, which re-renders ServerWorkspaceRows, which
    fires more cache events. After ~25 cycles React throws "Maximum update
    depth exceeded."
    
    Fix: remove setNow from the cache subscriber. setNow now fires only
    from the 30s interval timer, where it correctly refreshes the "X ago"
    display text without triggering a render loop.
    
    Also adds a deterministic CI-repro test that mocks Date.now to return
    incrementing values and asserts the filter-change path completes without
    looping.
    offendingcommit committed Jun 3, 2026
    Configuration menu
    Copy the full SHA
    7e529c8 View commit details
    Browse the repository at this point in the history

Commits on Jun 10, 2026

  1. Configuration menu
    Copy the full SHA
    01371db View commit details
    Browse the repository at this point in the history
  2. chore(release): 0.16.0 [skip ci]

    # [0.16.0](v0.15.0...v0.16.0) (2026-06-10)
    
    ### Bug Fixes
    
    * **ci:** replace userEvent.selectOptions with fireEvent.change; bump setup-node to v6 ([1c28cae](1c28cae))
    * **dashboard:** guard setMetricsById against same-value calls to end loop ([3b88a41](3b88a41))
    * **dashboard:** remove lastSeen from metrics useMemo deps to break render loop ([f79cdaf](f79cdaf))
    * **dashboard:** use primitive deps in onMetrics effect to break render loop ([9cc8637](9cc8637))
    * **test:** remove unused within import from fleet.test.tsx ([36fb6ee](36fb6ee))
    * **web:** break metricsEqual lastSeen dep-loop; add staleTime to test ([173f096](173f096))
    * **web:** reset serverFilter when the selected instance is removed ([699ec38](699ec38))
    * **web:** stop Sidebar re-render loop from cache-event subscriber ([7e529c8](7e529c8))
    
    ### Features
    
    * **web:** merge Fleet into a server-filterable Dashboard ([e66f927](e66f927)), closes [#54](#54)
    * **web:** redirect /fleet to Dashboard; update fleet tests ([da126b2](da126b2))
    github-actions[bot] committed Jun 10, 2026
    Configuration menu
    Copy the full SHA
    b250492 View commit details
    Browse the repository at this point in the history
Loading