Skip to content

Web version pt.5 #1747

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

Merged
merged 5 commits into from
Apr 8, 2025
Merged

Web version pt.5 #1747

merged 5 commits into from
Apr 8, 2025

Conversation

Kitenite
Copy link
Contributor

@Kitenite Kitenite commented Apr 8, 2025

Description

Related Issues

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Release
  • Refactor
  • Other (please describe):

Testing

Screenshots (if applicable)

Additional Notes


Important

Add new UI components and update state management for enhanced web client functionality.

  • UI Components:
    • Add BottomBar, LeftPanel, RightPanel, and TopBar components in apps/web/client/src/app/project/[id]/_components/.
    • Integrate TooltipProvider in page.tsx for consistent tooltip styling.
  • State Management:
    • Update StateManager in state/index.ts to manage leftPanelTab, rightPanelTab, and editorMode.
    • Modify EditorEngine in engine/index.ts to use the updated StateManager.
  • Behavior Changes:
    • Add hotkey support for AI chat and editor modes in hotkeys/index.tsx.
    • Implement drag-and-drop functionality in bottom-bar/index.tsx (commented out).
    • Update right-click.tsx to handle AI chat actions.
  • Miscellaneous:
    • Remove TooltipProvider from top-bar/index.tsx and mode-toggle.tsx for cleaner code.
    • Fix fillRule and clipRule attributes in icons/index.tsx.

This description was created by Ellipsis for 2c2e29c. It will automatically update as commits are pushed.

@Kitenite Kitenite merged commit 3aa26c9 into main Apr 8, 2025
Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❌ Changes requested. Reviewed everything up to 2c2e29c in 3 minutes and 16 seconds

More details
  • Looked at 1036 lines of code in 19 files
  • Skipped 0 files when reviewing.
  • Skipped posting 19 drafted comments based on config settings.
1. apps/web/client/src/app/project/[id]/_components/right-panel/chat/panel-dropdown.tsx:117
  • Draft comment:
    setIsChatHistoryOpen is used but not defined. Introduce a state hook or remove this call.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.
2. apps/studio/src/lib/user/subscription.ts:15
  • Draft comment:
    Casting the cached plan to UsagePlanType without parsing may cause errors if the stored value is a string. Consider converting or validating the value.
  • Reason this comment was not posted:
    Comment was on unchanged code.
3. apps/web/client/src/app/project/[id]/_components/canvas/overlay/elements/chat.tsx:61
  • Draft comment:
    Using document.getElementById directly in functional components can lead to mismatches between the virtual DOM and the actual DOM. Consider using a ref for the element if possible.
  • Reason this comment was not posted:
    Confidence changes required: 50% <= threshold 50%
    None
4. apps/studio/src/lib/user/subscription.ts:14
  • Draft comment:
    Consider verifying that 'cachedPlan' (retrieved from localStorage) is valid before casting to UsagePlanType. If null or an unexpected value, a proper default or conversion method might be needed.
  • Reason this comment was not posted:
    Confidence changes required: 50% <= threshold 50%
    None
5. apps/web/client/src/app/layout.tsx:29
  • Draft comment:
    The element includes a hardcoded 'dark' class. Confirm if dark mode should be enabled by default or be user‐configurable.
  • Reason this comment was not posted:
    Confidence changes required: 30% <= threshold 50%
    None
6. apps/web/client/src/app/project/[id]/_components/bottom-bar/index.tsx:80
  • Draft comment:
    There is a large block of commented-out drag-and-drop code. Consider removing it if it’s not intended for current functionality.
  • Reason this comment was not posted:
    Confidence changes required: 20% <= threshold 50%
    None
7. apps/web/client/src/app/project/[id]/_components/canvas/frame/right-click.tsx:57
  • Draft comment:
    The right-click menu action now sets 'rightPanelTab' instead of 'editorPanelTab'. Confirm that this change—and the corresponding UI updates—are intentional and consistent across the codebase.
  • Reason this comment was not posted:
    Confidence changes required: 20% <= threshold 50%
    None
8. apps/web/client/src/app/project/[id]/_components/canvas/hotkeys/index.tsx:75
  • Draft comment:
    AI chat hotkeys have been updated to set rightPanelTab. Ensure this change is consistently reflected throughout related components.
  • Reason this comment was not posted:
    Confidence changes required: 20% <= threshold 50%
    None
9. apps/web/client/src/app/project/[id]/_components/canvas/index.tsx:22
  • Draft comment:
    The Canvas component no longer accepts 'children' and now renders directly. Confirm that removing the children prop is intentional and that downstream usage is adjusted accordingly.
  • Reason this comment was not posted:
    Confidence changes required: 30% <= threshold 50%
    None
10. apps/web/client/src/app/project/[id]/_components/canvas/overlay/elements/chat.tsx:90
  • Draft comment:
    OverlayChat now sets 'rightPanelTab' on submit. Verify that this change correctly triggers the intended UI update for the chat panel.
  • Reason this comment was not posted:
    Confidence changes required: 20% <= threshold 50%
    None
11. apps/web/client/src/app/project/[id]/_components/left-panel/index.tsx:84
  • Draft comment:
    LeftPanel implements mouse hover and lock functionality. Ensure that the mouse leave logic (using isMouseInContentPanel) is robust across edge cases.
  • Reason this comment was not posted:
    Confidence changes required: 10% <= threshold 50%
    None
12. apps/web/client/src/app/project/[id]/_components/right-panel/chat/panel-dropdown.tsx:21
  • Draft comment:
    PanelDropdown uses updateChatSettings with a Partial object but the ChatSettings type isn’t imported. Consider importing or defining ChatSettings for clarity.
  • Reason this comment was not posted:
    Confidence changes required: 40% <= threshold 50%
    None
13. apps/web/client/src/app/project/[id]/page.tsx:23
  • Draft comment:
    The overall page layout has been restructured to include Canvas, TopBar, EditorBar, StagingToggle, LeftPanel, RightPanel, and BottomBar. Verify that the layering and absolute positioning match the design requirements.
  • Reason this comment was not posted:
    Confidence changes required: 20% <= threshold 50%
    None
14. apps/web/client/src/components/store/editor/engine/index.ts:43
  • Draft comment:
    StateManager is now instantiated without an engine parameter. Ensure that removing the engine dependency here won’t affect any functionalities that previously relied on it.
  • Reason this comment was not posted:
    Confidence changes required: 20% <= threshold 50%
    None
15. packages/models/src/editor/index.ts:30
  • Draft comment:
    New enums 'LeftPanelTabValue' and 'BrandTabValue' have been added. Make sure that all references across the project are updated accordingly.
  • Reason this comment was not posted:
    Confidence changes required: 10% <= threshold 50%
    None
16. packages/ui-v4/src/components/icons/index.tsx:1650
  • Draft comment:
    SVG attribute names have been updated to camelCase (e.g. fillRule, clipRule) which is correct for JSX.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50%
    None
17. apps/web/client/src/app/layout.tsx:38
  • Draft comment:
    There is an extra space in the closing tag (line 38). Consider removing the extra whitespace so it becomes '' for consistency.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.
18. apps/web/client/src/app/project/[id]/_components/canvas/index.tsx:48
  • Draft comment:
    Typo Alert: The variable name 'lintedScale' appears to be a typo. Consider renaming it to 'clampedScale' (or another accurate term) for clarity.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.
19. apps/web/client/src/app/project/[id]/_components/right-panel/chat/panel-dropdown.tsx:75
  • Draft comment:
    Typo detected: Instead of "Auto - apply results", consider using "Auto-apply results". This will make the text more consistent and looks cleaner.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.

Workflow ID: wflow_NsqjmcpaUroBN23j


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@Kitenite Kitenite deleted the feat/web-5 branch April 8, 2025 05:26
ml-delaurier pushed a commit to ml-delaurier/nolook that referenced this pull request Apr 23, 2025
* add left panel

* update ui

* add bottom bar

* Switch to dark mode
t1c1 pushed a commit to t1c1/onlookbotcodes that referenced this pull request Jun 5, 2025
* add left panel

* update ui

* add bottom bar

* Switch to dark mode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant