You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Introduced a new 'geo' field in the onboarding schema and related components to capture data location preferences.
- Updated onboarding forms and hooks to handle the new 'geo' field, ensuring consistent data collection across the application.
Task: Edit the provided TipTap JSON template to produce the final policy TipTap JSON. Apply ONLY the rules below.
45
48
46
49
Required rules (keep this simple):
47
-
1) Framework sections
48
-
- The template may contain framework-specific sections titled like "SOC 2 Specific" or "HIPAA Specific".
49
-
- Keep only the sections for the selected frameworks. Remove the sections for unselected frameworks.
50
-
- For the kept sections, remove the "<Framework> Specific" label and keep their bullets under the appropriate place.
51
-
- Consolidate bullets if redundant; do not add new sections.
52
-
53
-
2) Company details
54
-
- If the template asks to insert company info, replace placeholders (e.g., {{COMPANY_NAME}}, {{COMPANY_WEBSITE}}) with: ${companyName}, ${companyWebsite}.
55
-
- Only add details where the template asks; do not invent new fields.
56
50
57
-
3) Vendors (keep focused)
58
-
- Mention only vendors/tools that are critical or high-impact for this policy.
59
-
- Do not invent vendors.
60
-
${
61
-
hasHIPAA
62
-
? ` - If HIPAA is selected, inline-tag vendors when relevant: (criticality: high|medium|low; data: PHI|PII when applicable). No separate Vendors table.`
63
-
: ''
64
-
}
51
+
1) Company details
52
+
- If the template contains placeholders like {{...}}, replace ANY placeholder with information you actually have (from the knowledge base, company name, company website, frameworks context).
53
+
- If a specific placeholder cannot be resolved, set it to "N/A" (do not invent values).
54
+
- Only fill placeholders where the template asks; do not add new fields beyond the placeholders.
55
+
- Placeholder legend (map values from the knowledge base Q&A where available):
56
+
- {{COMPANY}} ⇐ Company Name
57
+
- {{COMPANYINFO}} ⇐ Describe your company in a few sentences
58
+
- {{INDUSTRY}} ⇐ What Industry is your company in?
59
+
- {{EMPLOYEES}} ⇐ How many employees do you have
60
+
- {{DEVICES}} ⇐ What Devices do your team members use
61
+
- {{SOFTWARE}} ⇐ What software do you use
62
+
- {{LOCATION}} ⇐ How does your team work
63
+
- {{CRITICAL}} ⇐ Where do you host your application and data
64
+
- {{DATA}} ⇐ What type of data do you handle
65
+
- {{GEO}} ⇐ Where is your data located
66
+
- If multiple answers exist, choose the most specific/concise form. If no answer is found for a placeholder, set it to "N/A".
65
67
66
-
4) Structure & style
68
+
2) Structure & style
67
69
- Keep the same section order and general layout as the template (headings or bold titles as-is).
68
-
- No Table of Contents. No control/criteria mapping section unless it already exists in the template.
69
-
- Use concise, mandatory language (must/shall) with clear owners/cadences when appropriate.
70
70
- Do NOT copy instruction cue lines (e.g., "Add a HIPAA checklist...", "State that...", "Clarify that..."). Convert such cues into real policy language, and then remove the cue line entirely. If a cue precedes bullet points, keep the bullets but delete the cue line.
71
71
72
+
3) Handlebars-style conditionals
73
+
- The template may contain conditional blocks using {{#if var}}...{{/if}} syntax (e.g., {{#if soc2}}, {{#if hipaa}}).
74
+
- Evaluate these using the selected frameworks:
75
+
- soc2 is ${hasSOC2 ? 'true' : 'false'}
76
+
- hipaa is ${hasHIPAA ? 'true' : 'false'}
77
+
- If the condition is true: keep only the inner content and remove the {{#if}}/{{/if}} markers.
78
+
- If the condition is false: remove the entire block including its content.
79
+
- For any other unknown {{#if X}} variables: assume false and remove the block.
80
+
72
81
Output: Return ONLY the final TipTap JSON document.
0 commit comments