Skip to content

Bugs #440

Closed
Closed

Description

@thinkclay

Everything to the right of the "Search Connections" text input on the /communities/connections route flows into next column on desktop viewport and out of bounds on mobile viewport.

Image

On community posts such as http://localhost:8081/communities/a0000000-0000-4000-8000-000000000002/post/baf29862-9905-40f3-b955-f19dd4828c26 the buttons are black on black.

Image

I get an error on /workers/map:

Error fetching jobs: {
  "code": "42704",
  "details": null,
  "hint": null,
  "message": "type \"geometry\" does not exist"
}

On /jobs/applications/2df52dee-0309-4cf8-b0ec-ef2f3a66defb/inquiry I'm seeing an error "unable to load inquery"

Activity

  1. added
    bug
    on Jul 30, 2026
  2. changed the title [-]UI Bug on Connections[/-] [+]UI Bugs[/+] on Jul 30, 2026
  3. changed the title [-]UI Bugs[/-] [+]Bugs[/+] on Jul 30, 2026
  4. thinkclay commented on Jul 30, 2026

    @thinkclay
    ContributorAuthor

    Triage

    All four reproduced or root-caused. One is considerably larger than reported, and one is not a bug but an unfinished migration. Splitting into four issues since they share no owner or fix.


    1. /workers/map — type "geometry" does not exist → P0

    Not a map bug. 308_function_search_path.sql blanket-runs ALTER FUNCTION ... SET search_path = <own schema> over every function it owns, discarding whatever search_path the function was written with. It clobbered 37 functions. PostGIS lives in public, so any function resolving geometry / ST_* / similarity() unqualified now fails.

    The 5 that genuinely break (verified individually against a local DB; the other 32 fully-qualify their references and are unaffected):

    Function Declared Now Impact
    core.get_jobs_with_coords core, public core the reported error
    core.get_organizations_with_coords core, public core map org layer
    core.check_site_overlaps core, public core project site geo validation
    core.validate_address_in_site core core project address validation
    onet.search_occupations — onet similarity(), career-assessment search
    ERROR:  type "geometry" does not exist
    LINE 9:     ST_X(j.geo::geometry) AS longitude,
    

    Two wrinkles for whoever fixes it: 309 tries to move PostGIS to extensions and silently no-op'd locally (extension ownership), so the repair must list public, extensions to survive both states. And 308 will re-clobber any fix if it ever re-runs, so 308 itself needs to append rather than overwrite.

    Prod status unverified — worth confirming whether 308 ran there before sizing the blast radius.

    2. /jobs/applications/.../inquiry — "Unable to load inquiry" → P1, unfinished tRPC→SDK migration

    getByApplication does not exist on the SDK. inquiries-sdk-hooks.ts:190 does (client.inquiries as unknown as InquiryCapabilityClient).getByApplication(...) — the cast suppresses the type error, so it fails at runtime and the route's error || !data branch renders the red message.

    Wider than one route. Of the 19 methods on InquiryCapabilityClient, the SDK implements 3 — 16 are missing, all reached through the same unsafe cast (16 occurrences). Server-side, api/routes/inquiries.ts exposes only GET /v1/inquiries and POST /v1/inquiries, so 7 of the SDK's own 9 paths (getById, respond, templates, bulk/*, history) 404 as well. The type file says as much: "tRPC migration - methods may not exist on SDK yet". Only the legacy tRPC router has the real implementation.

    Separately, the route conflates three states into one red error — fetch failure, no inquiry exists, and nonexistent application. There are zero rows in core.application_inquiries locally, so every application currently shows the error even once the method exists.

    A lint rule banning as unknown as on SDK clients would be worth it — that cast is what let this ship silently.

    3. Black-on-black buttons on community posts → P1

    Typography/Text.tsx is not theme-aware at all — no useThemeContext, and resolveColor(undefined) returns colors.text.light.primary (#16110d) unconditionally.

    Button correctly sets color: colors.white on its own wrapper Text, but UpvoteButton and BookmarkButton nest a bare <Text> inside it, which re-emits #16110d over the gray[900] filled background.

    Cheap fix at the two call sites; the systemic half is that ~1,860 of ~3,880 <Text> usages in scf-core/features carry a manual colors.text[t] override. That workaround density is the bug report.

    4. /communities/connections overflow → P2

    Input.styles.ts sets minWidth: '100%' and flexShrink: 0 on the input root. So in ConnectionsList.tsx:118 the style={{ flex: 1 }} is powerless — the input claims the full row width and refuses to shrink, shoving "Export CSV" past the edge. Affects 13 call sites authored with flex: 1, including OfficePageHeader (every office page header) and OccupationSearch.


    Logistics: #3 and #4 both live in packages/ui, which is a submodule — those need their own PR plus a pointer bump here.

  5. thinkclay commented on Jul 30, 2026

    @thinkclay
    ContributorAuthor

    All four triaged, fixed and merged. Details in the triage comment above.

    Bug Fix Status
    /workers/map type "geometry" does not exist #448 ✅ closed #442
    Community post buttons black-on-black Scaffald/ui#16 + #466 ✅ closed #444
    /communities/connections overflow Scaffald/ui#16 + #466 ✅ closed #445
    "Unable to load inquiry" Scaffald/sdk#11 + #475 ✅ symptom fixed; #443 stays open for the rest of the migration

    None of the four was what it looked like. The map error was a migration that clobbered search_path on 37 functions. The black-on-black buttons needed both a theme fix and an inherit fix, because filled/gray is gray[900] in light mode too. The overflow was a minWidth floor no caller could override. The inquiry page was calling an SDK method that never existed, hidden by an as unknown as cast.

    Fixing them surfaced 7 further problems, each filed with a reproduction:

    Two caveats on verification. CI on main was already red across all six workflows, so every claim above rests on targeted before/after baselines rather than green CI — 31 new tests, with pre-existing failure counts diffed by name. And none of the three UI-visible fixes was confirmed in a browser: the dev server and edge runtime both serve the primary working tree, which held an unrelated in-progress changeset throughout. The fixes are structural and unit-tested, but nobody has watched them render.

    Closing this in favour of the split issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions