Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI updates #54

Merged
merged 40 commits into from
Jul 2, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
4a10428
gradient animation + logo + close button
deepak-akkil Jun 18, 2024
928ee16
interim commit
deepak-akkil Jun 19, 2024
8b1bb82
working version
deepak-akkil Jun 19, 2024
3b07f00
Merge branch 'dev' into UI-updates
deepak-akkil Jun 19, 2024
4fe424e
First version
deepak-akkil Jun 19, 2024
34c8443
Gradient Update
deepak-akkil Jun 20, 2024
c5e454e
Stable version
deepak-akkil Jun 20, 2024
460848d
First stable version
deepak-akkil Jun 20, 2024
eb8004d
remove redundancy
deepak-akkil Jun 20, 2024
5fa8116
minor version
deepak-akkil Jun 20, 2024
2b1f778
Commit UI updates
deepak-akkil Jun 20, 2024
45bb1a5
Convert messaget_type to enum
deepak-akkil Jun 21, 2024
829d8b9
Clean up
deepak-akkil Jun 21, 2024
d4b8ab5
changes to address review comments
deepak-akkil Jun 21, 2024
2223db4
seeme like an extra character
Jun 21, 2024
375ab90
remove extra characters
Jun 21, 2024
e58a16b
small ruff adjustments
Jun 21, 2024
0ad6ced
remove unneeded vars/imports
Jun 21, 2024
a81aceb
Merge branch 'dev' into UI-updates
Jun 21, 2024
ba3ffb0
Enable button if text available in input field
deepak-akkil Jun 24, 2024
827634a
Minor bug fix to UI
deepak-akkil Jul 2, 2024
43e798a
Make UI refresh on Show_Details toggle change
deepak-akkil Jul 2, 2024
658e029
Priortize UI operation
deepak-akkil Jul 2, 2024
9bf44d0
Make slightly more responsive when minimized
deepak-akkil Jul 2, 2024
276f189
Add agente- prefix to all styles and ids to avoid style leak
deepak-akkil Jul 2, 2024
47fd92a
Merge branch 'dev' into UI-updates
deepak-akkil Jul 2, 2024
0749f29
bug fix
deepak-akkil Jul 2, 2024
8f62911
bug fix
deepak-akkil Jul 2, 2024
35db242
Add !important so styles do not get overridden
deepak-akkil Jul 2, 2024
2631b51
Merge branch 'dev' into UI-updates
Jul 2, 2024
1ad5c5a
linting to make ruff happy
Jul 2, 2024
6bfea14
more ruff stuff
Jul 2, 2024
36fc8a7
print the error clearly
Jul 2, 2024
3516c28
message type can only be one value, no reason to run all the checks
Jul 2, 2024
2d9e813
cleanup
Jul 2, 2024
4035083
fix typos in planner prompt
Jul 2, 2024
15390f7
this should be a debug level message
Jul 2, 2024
a7a765e
JS tripple equal for literal comparison
Jul 2, 2024
5b5750e
typos and logic tightening
Jul 2, 2024
c2ca27b
use logger
Jul 2, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
changes to address review comments
  • Loading branch information
deepak-akkil committed Jun 21, 2024
commit d4b8ab500533b2ed29e9ca6ba343a268ca090d63
5 changes: 0 additions & 5 deletions ae/core/autogen_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,11 +257,6 @@ def is_planner_termination_message(x: dict[str, str])->bool: # type: ignore
is_termination_msg=is_planner_termination_message, # type: ignore
human_input_mode="NEVER",
max_consecutive_auto_reply=self.number_of_rounds,
code_execution_config={
"last_n_messages": 1,
"work_dir": "tasks",
"use_docker": False,
},
)
return task_delegate_agent

Expand Down
8 changes: 4 additions & 4 deletions ae/core/playwright_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,11 +279,11 @@ async def notify_user(self, message: str, message_type: MessageType = MessageTyp
"""

if self.ui_manager.overlay_show_details == False:
if not (message_type == MessageType.PLAN or message_type == MessageType.QUESTION or message_type == MessageType.ANSWER or message_type == MessageType.INFO):
if message_type not in (MessageType.PLAN, MessageType.QUESTION, MessageType.ANSWER, MessageType.INFO):
return

if self.ui_manager.overlay_show_details == True:
if not (message_type == MessageType.PLAN or message_type == MessageType.QUESTION or message_type == MessageType.ANSWER or message_type == MessageType.INFO or message_type == MessageType.STEP):
if message_type not in (MessageType.PLAN, MessageType.QUESTION , MessageType.ANSWER, MessageType.INFO, MessageType.STEP):
return

if message_type == MessageType.PLAN:
Expand All @@ -307,7 +307,7 @@ async def notify_user(self, message: str, message_type: MessageType = MessageTyp
page = await self.get_current_page()
await page.evaluate(js_code)
except Exception as e:
logger.debug(f"Failed to notify user with message \"{message}\". However, most likey this will work itself out after the page loads: {e}")
logger.error(f"Failed to notify user with message \"{message}\". However, most likey this will work itself out after the page loads: {e}")

async def highlight_element(self, selector: str, add_highlight: bool):
try:
Expand Down Expand Up @@ -424,7 +424,7 @@ async def update_processing_state(self, processing_state: str):
Update the processing state of the overlay.

Args:
is_processing (str): "init", "processing", "done"
is_processing (str): "init", "processing", "done" TODO: Convert to Enum
"""
page = await self.get_current_page()

Expand Down