Repository navigation
Add affiliate catalog for education resources - #11
Conversation
There was a problem hiding this comment.
Codex Review: Here are some suggestions.
Reply with @codex fix comments to fix any unresolved comments.
About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you open a pull request for review, mark a draft as ready, or comment "@codex review". If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex fix this CI failure" or "@codex address that feedback".
| {resource.href ? ( | ||
| <Button | ||
| size="$2" | ||
| onPress={() => { | ||
| redirect(resource.href!) |
There was a problem hiding this comment.
[P1] Use web-only redirect API in cross-platform CTA
The resource card now renders a button that invokes redirect(resource.href) on press, but redirect assigns to location.href, which only exists on the web. These dashboard components are shared with the Expo/native app, so tapping an affiliate CTA on mobile will throw ReferenceError: Can't find variable: location instead of opening the link. Mobile users therefore cannot visit the affiliate resources. Consider delegating to Linking.openURL (or a platform-aware helper) for native builds while keeping location.href for web.
Useful? React with 👍 / 👎.
- Create Cursor rule file (ui-package-hybrid.mdc) for AI agents - Add architecture decision #11 for hybrid maintenance - Update project overview and guardrails with hybrid setup info - Create AI_AGENTS_README.md for quick reference - Update package.json description with hybrid setup note - Add prominent warnings in UI package README - Cross-reference all documentation This ensures Cursor, Cline, Claude, and other AI agents are always aware of the unique dual-repository maintenance approach for @unicornlove/ui. REQ-311: UI Package Separation
Points packages/ui at Scaffald/ui main c58769a (PR #11) — Button md touch target 40→44. Browser-verified md buttons render 44px. Co-authored-by: Claude Opus 4.8 <[email protected]>
…loading/error (#623) * feat(ats): wire the candidate detail header — four dead surfaces Phase 3, screen 2 (#622). Closes §12 items #1, #2, #3 and #15 from #539. #1 THREE BUTTONS THAT DID NOTHING. "Advance to Interview", "Reject" and "Send Message" rendered, pressed, and had no handlers at all. Advance now names the ACTUAL next stage instead of always claiming "Interview" — which was wrong for most of the pipeline and from `new` would have skipped Screening entirely. It hides on terminal stages, where there is nothing to advance to. Reject routes through ApplicationStatusChangeModal rather than firing at the API, because rejection is a critical change and the one action a candidate experiences as final. It hides once a candidate has already withdrawn: collapsing withdrawn into rejected is what breaks funnel conversion and EEO adverse-impact counts (#533). Send Message opens the Messages tab, where the composer already lives. #2 NO NAME IN THE HEADER. The identity row showed title and location only — the name existed solely in the modal chrome, so the route version at /office/applications/[id] had no name anywhere on the page. #3 A 24PX AVATAR, smaller than the body text beside it. Now 48, with two initials rather than one lonely letter. #15 TABS WITH NO COUNTS. An employer could not tell there were twelve unread messages without opening the tab. Notes and Messages carry counts now, read from the SAME query keys the tabs themselves use — react-query serves both from one cache entry, so this costs no extra request. Zero and loading both render nothing: a tab reading "Notes · 0" is noise, and a tab that flashes "· 0" before "· 12" is worse than one that simply gains a count. The rules live in candidate-actions.ts rather than inline, so they can be tested without mounting a component that needs six SDK hooks and a tab system. All four debts were logic *absent* rather than logic wrong, which is exactly the kind of thing that comes back without a test. Also fixes a shape error caught by typecheck: GetMessagesResponse nests its array under `.data`, not `.messages`. Verified: typecheck clean on scf-core and scaffald-app; lint clean; 16 new tests passing. Not verified: the screen has not been seen rendering — behind auth and the office role. Co-Authored-By: Claude Opus 5 <[email protected]> * fix(ats): keep the header mounted through loading and error, and add a retry Phase 3 continued (#622). Closes §12 items #10 and #11 from #539. #10 LOADING REPLACED THE WHOLE SCREEN. Both loading and error were early returns, so a refresh blanked the header, the view switch and the filters and left one centred spinner. The page appeared to vanish, and an employer lost the controls they were part-way through using — including the filters that caused the refetch in the first place. Both states now render inside the content region, below a header that stays put. #11 THE ERROR STATE HAD NO WAY OUT. No retry, so the only recovery was a full page reload — which also discarded the filters. There is a Try again button wired to the query's `refetch`, which the hook has always returned and nothing has ever called. One consequence of keeping the header mounted: the toolbar's result count now renders during states where the count is not yet known. It takes `undefined` rather than `0` while loading or errored, because a literal "0 applications" above a spinner asserts an empty pipeline before anything is known. Verified: typecheck clean on scf-core and scaffald-app; lint clean; Lanes tests still 11/11. Co-Authored-By: Claude Opus 5 <[email protected]> --------- Co-authored-by: Claude Opus 5 <[email protected]>
Summary
affiliatestable, enum, and seed data for OSHA- and NCCER-style partnersTesting
https://chatgpt.com/codex/tasks/task_b_68d1bb6aea348331b78406ce9206ec3f