diff --git a/app/globals.css b/app/globals.css index 976b5193..4005365b 100644 --- a/app/globals.css +++ b/app/globals.css @@ -124,6 +124,20 @@ /* justify-content: space-between; */ } + .mobile-icons-bar-content > * { + flex-shrink: 0; + } + + /* Tablet overrides (spaced-out) */ + @media (min-width: 768px) { + .mobile-icons-bar-content { + min-width: 0; + width: 100%; + justify-content: space-between; + gap: 0; /* Remove gap if using space-between */ + } + } + /* .mobile-chat-section { flex: 1; diff --git a/jules-scratch/dev.log b/jules-scratch/dev.log deleted file mode 100644 index e69de29b..00000000 diff --git a/jules-scratch/verification/error.png b/jules-scratch/verification/error.png deleted file mode 100644 index a0201a74..00000000 Binary files a/jules-scratch/verification/error.png and /dev/null differ diff --git a/jules-scratch/verification/verify_attachment_icon.py b/jules-scratch/verification/verify_attachment_icon.py deleted file mode 100644 index d26b271d..00000000 --- a/jules-scratch/verification/verify_attachment_icon.py +++ /dev/null @@ -1,21 +0,0 @@ -from playwright.sync_api import sync_playwright - -def run(playwright): - browser = playwright.chromium.launch() - context = browser.new_context() - page = context.new_page() - - page.goto("http://localhost:3000") - - # Mobile view - page.set_viewport_size({"width": 375, "height": 812}) - page.screenshot(path="jules-scratch/verification/mobile_view.png") - - # Desktop view - page.set_viewport_size({"width": 1920, "height": 1080}) - page.screenshot(path="jules-scratch/verification/desktop_view.png") - - browser.close() - -with sync_playwright() as playwright: - run(playwright) diff --git a/jules-scratch/verification/verify_chat.py b/jules-scratch/verification/verify_chat.py deleted file mode 100644 index b568e8cb..00000000 --- a/jules-scratch/verification/verify_chat.py +++ /dev/null @@ -1,37 +0,0 @@ -from playwright.sync_api import sync_playwright, Page, expect - -def run(playwright): - browser = playwright.chromium.launch(headless=True) - context = browser.new_context() - page = context.new_page() - - try: - # 1. Navigate to the application - page.goto("http://localhost:3000") - - # 2. Find the chat input and type a message - chat_input = page.get_by_placeholder("Explore") - expect(chat_input).to_be_visible() - chat_input.fill("Hello, this is a test.") - - # 3. Click the submit button using JavaScript to bypass overlay issues - page.evaluate('document.querySelector(\'button[type="submit"]\').click()') - - # 4. Wait for the AI response to appear - # We can wait for the 'AI is typing...' message to appear - expect(page.locator('text="AI is typing..."')).to_be_visible(timeout=20000) - - # Wait for the response to be streamed and the "AI is typing..." message to disappear - expect(page.locator('text="AI is typing..."')).to_be_hidden(timeout=20000) - - # 5. Take a screenshot - page.screenshot(path="jules-scratch/verification/chat_verification.png") - - except Exception as e: - print(f"An error occurred: {e}") - page.screenshot(path="jules-scratch/verification/error.png") - finally: - browser.close() - -with sync_playwright() as playwright: - run(playwright) diff --git a/jules-scratch/verification/verify_icons.py b/jules-scratch/verification/verify_icons.py deleted file mode 100644 index 57e6f167..00000000 --- a/jules-scratch/verification/verify_icons.py +++ /dev/null @@ -1,27 +0,0 @@ -from playwright.sync_api import sync_playwright - -def run(): - with sync_playwright() as p: - browser = p.chromium.launch(headless=True) - # Use a mobile viewport - context = browser.new_context(**p.devices['iPhone 11']) - page = context.new_page() - - try: - # Go to the page - page.goto("http://localhost:3000") - - # Wait for the icon bar to be visible - page.wait_for_selector('.mobile-icons-bar', timeout=10000) # 10 seconds - - # Take a screenshot - page.screenshot(path="jules-scratch/verification/verification.png") - - print("Screenshot taken successfully.") - except Exception as e: - print(f"An error occurred: {e}") - finally: - browser.close() - -if __name__ == "__main__": - run()