Repository navigation
feat(atlas): Fill from PD — per-field suggestions in the project editor - #363
Merged
Merged
Conversation
The editor's PD fetch now offers a preview (current → from PD) with its own "Use this" for the description, tech tags, tech note and repo URL, instead of overwriting fields on fetch. Only fields the PD actually has are offered; syncHolds problems show as a warning with no "Use"; repo only when it is an http(s) GitHub repo URL; tags only as parsePd extracted them. "Use" sets the form field; nothing saves until the admin saves. PdBlurbFetch gains an optional `fill` prop; the new-project page keeps the old Fetch blurb behaviour. Pure helper lib/pd-fill.ts with tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0152aazG7AAEF6rWPWCedVgY
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The project editor's PD fetch (
/admin/projects/[id]) becomes Fill from PD: one fetch of the PD, then a per-field preview (current → from PD) with its own Use this for:parsePd, i.e.parseTechStack, with no extra guessing)Rules
syncHoldsproblems show as a warning and Use is not offered. A held tech note also holds the tags, since both come from the same cell.How
lib/pd-fill.ts(pure)pdFillSuggestions(current, pd)+lib/pd-fill.test.ts.components/PdBlurbFetch.tsxgains an optionalfillprop. In fill mode it exports the doc as HTML (for the blurb) and as plain text (forparsePd, which is tuned on the plain-text export). Both requests run in parallel on the same GIS token. Withoutfill, it behaves as before, so/admin/newstill uses "Fetch blurb" unchanged.Verify
npx tsc --noEmitclean;npx vitest run227/227. Not yet tried against a real PD in a browser (needs a BU Google session).🤖 Generated with Claude Code
https://claude.ai/code/session_0152aazG7AAEF6rWPWCedVgY