mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-21 18:55:16 +02:00
feat: implement PDF viewer for resume previews and integrate with report panel
This commit is contained in:
parent
07bd076317
commit
06c344d66e
5 changed files with 174 additions and 2 deletions
|
|
@ -362,9 +362,10 @@ def create_generate_resume_tool(
|
|||
{"phase": "saving", "message": "Saving your resume"},
|
||||
)
|
||||
|
||||
# Extract a title from the Typst source (the = heading)
|
||||
# Extract a title from the Typst source (the = heading is the person's name)
|
||||
title_match = re.search(r"^=\s+(.+)$", typst_source, re.MULTILINE)
|
||||
resume_title = title_match.group(1).strip() if title_match else "Resume"
|
||||
name = title_match.group(1).strip() if title_match else None
|
||||
resume_title = f"{name} - Resume" if name else "Resume"
|
||||
|
||||
metadata: dict[str, Any] = {
|
||||
"status": "ready",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue