Skip to content

Commit cac42ba

Browse files
committed
removed mermaid prompt - it has been moved to project_scrum_ai
1 parent c55e8cb commit cac42ba

File tree

4 files changed

+0
-45
lines changed

4 files changed

+0
-45
lines changed

project_scrum/models/project_scrum_us.p.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -170,19 +170,3 @@ def _read_group_sprint_id(self, present_ids, domain):
170170
'sprint_ids': _read_group_sprint_id,
171171
}
172172

173-
def _mermaid_prompt(self):
174-
mermaid_prompt = super()._mermaid_prompt()
175-
176-
if self.actor_ids:
177-
actors = "\nActors:\n"
178-
actor_lines = [
179-
f"- Name: {actor.name}" +
180-
(f"\n Role: {actor.role}" if hasattr(actor, 'role') and actor.role else "") +
181-
(f"\n Goal: {actor.goal}" if hasattr(actor, 'goal') and actor.goal else "")
182-
for actor in self.actor_ids
183-
]
184-
actors += "\n".join(actor_lines)
185-
mermaid_prompt += actors
186-
187-
return mermaid_prompt
188-

project_scrum/models/project_scrum_us.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -158,18 +158,3 @@ def _read_group_sprint_id(self, present_ids, domain):
158158
'sprint_ids': _read_group_sprint_id,
159159
}
160160

161-
def _mermaid_prompt(self):
162-
mermaid_prompt = super()._mermaid_prompt()
163-
164-
if self.actor_ids:
165-
actors = "\nActors:\n"
166-
actor_lines = [
167-
f"- Name: {actor.name}" +
168-
(f"\n Role: {actor.role}" if hasattr(actor, 'role') and actor.role else "") +
169-
(f"\n Goal: {actor.goal}" if hasattr(actor, 'goal') and actor.goal else "")
170-
for actor in self.actor_ids
171-
]
172-
actors += "\n".join(actor_lines)
173-
mermaid_prompt += actors
174-
175-
return mermaid_prompt

project_scrum/views/project_scrum_view.p.xml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -387,13 +387,6 @@
387387
</page>
388388

389389
<page string="Mermaid Editor" name="scrum_mermaid">
390-
<group>
391-
<field name="diagram_type"/>
392-
<field name="prompt"/>
393-
<div style="text-align:end;">
394-
<button name="action_process_mermaid_syntax" class="btn btn-primary" type="object" string="Build Syntax" />
395-
</div>
396-
</group>
397390
<field name="mermaid_editor"/>
398391
</page>
399392

project_scrum/views/project_scrum_view.xml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -298,13 +298,6 @@
298298
</page>
299299

300300
<page string="Mermaid Editor" name="scrum_mermaid">
301-
<group>
302-
<field name="diagram_type"/>
303-
<field name="prompt"/>
304-
<div style="text-align:end;">
305-
<button name="action_process_mermaid_syntax" class="btn btn-primary" type="object" string="Build Syntax" />
306-
</div>
307-
</group>
308301
<field name="mermaid_editor"/>
309302
</page>
310303

0 commit comments

Comments
 (0)