aab-prompts 1.1.2__py3-none-any.whl → 1.1.4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aab-prompts
3
- Version: 1.1.2
3
+ Version: 1.1.4
4
4
  Summary: AAB Prompts - Application Builder prompt management library
5
5
  Author: AAB Prompts
6
6
  License: MIT
@@ -3,18 +3,18 @@ prompts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  prompts/breadcrumbs.py,sha256=GrcI7w_6VbOG7vo3F5afHMJQKTpClePllEW1OMdHcps,5621
4
4
  prompts/constants.py,sha256=3QtDlHG1jr5KRK1kfX5F_1CEtc2QEB0JWl0Cir-bbp4,53274
5
5
  prompts/expressions.py,sha256=O7MGKCFNrDn5Wm8V_JvP5Q-3NVKdREkgFwVnlL0CYac,22740
6
- prompts/menu_navigations.py,sha256=O0lmryj-GWUzAzbUo3EB_Sc0GH4iBNQixnuO9U0mc5I,13833
7
- prompts/objects_fields.py,sha256=t4E9JBsPxfUJB3AdPowirwDUVUf_KbAbz_k6dzDRbrM,35442
6
+ prompts/menu_navigations.py,sha256=dQRs2nQR18oTUqykJ4AJNyGlg79IuuaZ5gc0MDfiWgw,14005
7
+ prompts/objects_fields.py,sha256=1-BA4Tm7UOxJxtIyfSQ0xZLotkHe6uiFey8uoAXdOJE,35926
8
8
  prompts/page_planner.py,sha256=C1DXktj-O2LvJpapHgv1X2AL8zrLY5LtDaRl1fxOwX8,6686
9
- prompts/pages.py,sha256=Fu8kZX1Q1Vp3mcq3M4xho9ORVuPcKa_V9vacotrsrW8,6822
9
+ prompts/pages.py,sha256=j_hg7waPG81wB5ZMyEdCaCj3iLrBr24y6EjbP6U2rEc,7177
10
10
  prompts/planner.py,sha256=LHZE7b3diJXQOETVfoZb2Ok1FFzvUiRE-2MyBQjurog,32168
11
11
  prompts/router.py,sha256=IZqoiBmCYabR2iXFoZZdJonF3p-xg3ESP5b3_ibp3Cc,14535
12
- prompts/solutions_applications.py,sha256=uEZDDja6Skuw2vhGL7LfAF2H1aAdCG_79WDzQ6AZbG0,6024
12
+ prompts/solutions_applications.py,sha256=mDlFM04p2q173zCsH_Ykrp6f37kiwPXUvlPYgEVuodM,6198
13
13
  prompts/view_filter_planner.py,sha256=DtYZQ7qfFZiXMYosjSGPiPmUu8cSFYAjcAgpCbZf9LA,3466
14
14
  prompts/view_links_planner.py,sha256=Bb7UUO15LIDmNjzkFZyzT3eAWCWnzcrm4vvyc8NsJJA,2341
15
15
  prompts/view_planner.py,sha256=Og1bOeDqcMIGLAKzYiJAJLgPLaxQ9Wf7nydfFAzivRY,3803
16
- prompts/views.py,sha256=LNHLllKBh9cBx1LLtraHR9r2y9uTAXuvfNBunXX-I_A,21150
17
- aab_prompts-1.1.2.dist-info/METADATA,sha256=tL33jF2JL7SNsNPzAUbgcvih2f2y95WK88_QWg1Vr2U,712
18
- aab_prompts-1.1.2.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
19
- aab_prompts-1.1.2.dist-info/top_level.txt,sha256=bvREqxmC7tnWTsG-q-oA5Qzkt1SLk0sK3aD5wlHjhII,20
20
- aab_prompts-1.1.2.dist-info/RECORD,,
16
+ prompts/views.py,sha256=4curDW2U_gMnQsTkoDQy193MvF_EAEMPpnZxIiNsp0A,21617
17
+ aab_prompts-1.1.4.dist-info/METADATA,sha256=rsz4RfUHbUi0elE6ZqTt_re7Sl8HyAenEKj5opG2YgU,712
18
+ aab_prompts-1.1.4.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
19
+ aab_prompts-1.1.4.dist-info/top_level.txt,sha256=bvREqxmC7tnWTsG-q-oA5Qzkt1SLk0sK3aD5wlHjhII,20
20
+ aab_prompts-1.1.4.dist-info/RECORD,,
@@ -33,6 +33,7 @@ SnapApp has 4 menu types (locations):
33
33
  Within an application, there can only be one menu for each type.
34
34
 
35
35
  When to create a menu:
36
+ - Always add a Menu if it is defined in the plan generated in save_generated_plan"
36
37
  - When user intent indicates a new navigation area is needed.
37
38
  - When an app section needs a dedicated placement (e.g., a new sidebar layout).
38
39
  - When organizing large features requires isolated navigation groups.
@@ -92,6 +93,7 @@ Footer menus only require the common metadata attributes.
92
93
  - **Translations Switcher (`efdef1fa-fc39-4210-a800-04de50a4e3e5`)**: The Translations Switcher lets users switch between different languages within the application. This is typically in the default top menu, but when a custom top menu is created, it will be added to the custom top menu.
93
94
 
94
95
  When navigations are used:
96
+ - Always add a navigation if it is defined in the plan generated in save_generated_plan"
95
97
  - When adding links to objects:
96
98
  e.g., “All Orders”, “Create Task”, “My Clients”.
97
99
  - When linking pages or dashboards.
prompts/objects_fields.py CHANGED
@@ -144,7 +144,8 @@ Create an Object only when:
144
144
  - The entity must have multiple records (not a single global value)
145
145
 
146
146
  Do NOT create an Object when:
147
- - Something is only a field of another object
147
+ - Something is only a field
148
+ - Something is already another object
148
149
  - Something is only a UI element
149
150
  - Something is only a workflow, rule, action, or settings item
150
151
 
@@ -162,6 +163,7 @@ that you CAN'T use, which are listed below:
162
163
 
163
164
  ---
164
165
  # Required Output
166
+ You must have an object for every object defined in the plan generated in `save_generated_plan`
165
167
  You must always have the Objects in this specific schema. Each Object must follow this exact structure.
166
168
  For each key, read and follow its meaning and usage rules:
167
169
 
@@ -204,6 +206,17 @@ Key points
204
206
  - Ref fields define relationships via *_id.
205
207
  - Display/calc fields like Show, List, ProgressBar help present data.
206
208
 
209
+ # When to Create a Field
210
+ Create a Field when:
211
+ - The user mentions a real property that must be saved with the object
212
+ - The field is defined in the plan generated in `save_generated_plan`
213
+
214
+ Do NOT create an Field when:
215
+ - Something is already another field on this object
216
+ - Something is only a UI element
217
+ - Something is only a workflow, rule, action, or settings item
218
+
219
+
207
220
  Example
208
221
  scholarship_name (Text), due_date (Date), assignee_id (Ref to Users), scholarship_type (Enum), status (Enum)
209
222
 
prompts/pages.py CHANGED
@@ -41,6 +41,13 @@ You are a specialized HTML Page Planner and Creator Agent for **Snapapp**, a Low
41
41
 
42
42
  ## ⚡ Dynamic Data & Object Association
43
43
 
44
+ ### When to Create a page
45
+ Always add a Page if it is defined in the plan generated in save_generated_plan"
46
+ Create a page for home pages
47
+ Create a page when you need to view more than one type of object at the same time
48
+ Create a page when you want to summarize data from records in the view
49
+ Replace a detail view with a page when it needs a custom layout
50
+
44
51
  ### When to Associate an Object
45
52
  Associate a page with an Object only when you need to display details or perform actions related to a **specific record** (e.g., a "Student Profile" page). Do not associate for generic "Home" or "Dashboard" pages.
46
53
 
@@ -199,4 +206,4 @@ Return ONLY the updated HTML and CSS.
199
206
  - No markdown.
200
207
  - No JSON.
201
208
 
202
- """
209
+ """
@@ -36,6 +36,7 @@ You can create new solutions as per the users' requirements.
36
36
 
37
37
 
38
38
  # When to Create a Solution
39
+ Always add a Solution if it is defined in the plan generated in save_generated_plan"
39
40
  Create a Solution when:
40
41
  - The user explicitly asks for one.
41
42
  - The use-case clearly belongs to a new vertical/industry/domain.
@@ -78,6 +79,7 @@ Given a solution, there can be multiple applications within it.
78
79
  ---
79
80
 
80
81
  # When to Create an Application
82
+ Always add an Application if it is defined in the plan generated in save_generated_plan"
81
83
  Create an Application when:
82
84
  - The user explicitly asks for one.
83
85
  - The user’s use-case requires a separate product experience.
prompts/views.py CHANGED
@@ -155,9 +155,18 @@ Views do not store data.
155
155
  Views do not define fields.
156
156
  They only define how fields appear.
157
157
 
158
- ## View Types
158
+ # When to Create a View
159
+ Always add a View if it is defined in the plan generated in save_generated_plan"
160
+ Create a View when:
161
+ - The user explicitly asks for one.
162
+ - You want a unique set of fields, filter conditions, field show logic (SHOWIF), field edit logic (EDITIF), field validity logic (VALIDIF) for a particular role or function.
163
+
164
+ Do NOT create a View when:
165
+ - it is satisfied with a custom page
159
166
 
160
- {VIEW_TYPE_DETAILS}
167
+
168
+ ## View Types
169
+ {VIEW_TYPE_DETAILS} provides the defintion for each view type and when to use them.
161
170
 
162
171
 
163
172
  STEP BY STEP INSTRUCTION FOR HOW TO USE THE TOOLS IN ORDER TO CREATE SATISFATORY VIEWS: