Skip to content

One career page preview, drawn from what publishes - #229

Merged
SoryAK merged 13 commits into
feat/my-tools-3from
feat/one-preview
Dec 5, 2026
Merged

SoryAK merged 13 commits into
feat/my-tools-3from
feat/one-preview

Conversation

@SoryAK

@SoryAK SoryAK commented Nov 28, 2026

Copy link
Copy Markdown
Owner

Closes #227. Stacked on #223.

What changes

One preview. The top-bar Preview now reads the publish copy (/api/work-map/preview), the same copy the relay receives, instead of the owner's records. Anything not published can't appear. The separate dark page (WorkMapPreviewPage, #/preview) is deleted; that address now opens Home.

  • Moved over from the dark page:
    • the Your preview / Recruiter switch;
    • Miles traveled and Cities stat cards;
    • a read-only job view: Story, Achievements with sources, Evidence, tools, Milestones, Media, and Back;
    • Skills and Tools sections;
    • the note naming photos that couldn't be added;
    • "Local preview. Nothing has been published."
  • Kept: the profile card (Contact, Get to know me, Request location), timeline, highlights and map.
  • Profile card: shows only links that are set. "Get to know me" and the location pin show the page's bio and city, never the owner's private bio or street address.
  • Stays current: the preview refreshes when page settings change. A search result leaves the preview to open the owner's record.

Profile photo on the career page.

  • Shown when the owner has one, Profile is on, and the page isn't anonymous or stealth.
  • Prepared in the browser like other photos (profile:photo), never sent as a local address.
  • Named when left off ("Your profile photo couldn't be added").
  • Left off on links that don't open Profile, and drawn beside the name on the relay.

Tools on older pages. Settings saved before Tools existed count it as on. Each tool still has its own switch. Any later save keeps the owner's choice (toolsOffered).

Dates.

  • Each published role carries startDate, endDate and isCurrent.
  • A lone date keeps its dash ("— 2017-01", "2017-01 —"), so it reads as an end or a start.
  • The preview reads pages published before this with the old rule: a school's lone date is its end, a job's is its start.
  • pageFormat: 2 in the page fingerprint marks every earlier page changed once.

Core: core/career-preview.ts (previewDates, previewHistory, previewRoles, previewChips), and publishesProfilePhoto in core/career-page.ts.

Tests

  • core: career-preview.test.ts, plus career-page.test.ts for the photo, dates and link limits.
  • server: career-page.test.ts, for older settings showing Tools and the photo publishing prepared.
  • relay: app.test.ts, for the photo beside the name, only as image data.
  • web:
    • CareerPreviewData, CareerPreviewList and CareerPreviewCenter tests;
    • HomePreview.test.tsx: no private bio or address, follows settings changes, search leaves the preview, shows the published photo, exiting returns to the owner's view.
  • A fresh reviewer checked the branch. The critical finding (private bio and address in the profile card dialogs) and three important ones are fixed, each with a test that failed first.
  • Full suite (997) and typecheck pass.
  • Checked in the browser on real data: list, stats, timeline, highlights, map, job view, Recruiter switch, profile photo, Tools section, and that #/preview opens Home.

Left for later

  • A stale error or photo note after a failed load.
  • An open job id isn't cleared when a refresh removes the job.
  • Escape doesn't close a job.
  • The map card is empty when no job has a place.
  • Dead CSS left from the deleted page.
  • RoleSettings.test.tsx "a part that saved before another failed…" is flaky under full-suite load. That was true before this branch.

🤖 Generated with Claude Code

@coderabbitai

coderabbitai Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: fb058d35-2f5e-4fb2-bcde-41ab6eaa265e

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

SoryAK and others added 10 commits December 3, 2026 23:32
…e date as when it ended.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… only while previewing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…recruiter's view, skills and tools.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s and map, and opens a job to read with nothing private.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ate preview page is gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rd, the audience switch looks like one, and no stand-in name shows while it loads.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…private bio or address; it follows settings changes; a search result leaves the preview; a current role with no start stays current.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… like every other photo, and a page saved before Tools existed shows the chosen tools.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… showing only that job's tools.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… a lone date keeps its dash, and pages published before are marked changed once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
SoryAK and others added 3 commits December 5, 2026 00:03
…earch, category, kit, job and drafts filters, which "pick All" never did.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	web/src/WorkMapPreview.test.tsx
Base automatically changed from feat/role-tools-career to feat/my-tools-3 December 5, 2026 05:10
@SoryAK
SoryAK merged commit b46af0e into feat/my-tools-3 Dec 5, 2026
3 checks passed
@SoryAK
SoryAK deleted the feat/one-preview branch December 5, 2026 05:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant