Skip to content

Conversation

XiaochenCui
Copy link
Contributor

fix #1377

jelveh and others added 30 commits July 11, 2025 16:27
…r workers (HeyPuter#1342)

* event.puter

* automatic opt out cors handling

* remove "starting puterjs initialization" log

* Set compatibility date

* remove body log
* Update Portuguese translation of README

* Update Portuguese and Spanish translation readme
…in main app list) (HeyPuter#1350)

* Update README.md

* Fixed issue:  HeyPuter#1033 (Added app category display in Dev Center in main app list)

* Fixed issue:  HeyPuter#1033  (Added app category display in Dev Center in main app list)

* test 1033

* Fixed issue: HeyPuter#1033 (Added app category display in Dev Center in main app list)

* Fixed issue: HeyPuter#1033 (Added app category display in Dev Center in main app list)

* Center the app checkbox

---------

Co-authored-by: jelveh <[email protected]>
…erviceworker) (HeyPuter#1364)

* xmlhttpreq partial support pt1

* XMLHTTPRequest shim cleanup

* fix check for x-ndjson

* change credit header at top of xhr shim
- Add new animation functionality to the taskbar; icons will enlarge when the mouse hovers over them
- Introduce new CSS properties and styles to support the animation effects
- Implement mouse move and leave event handling in UITaskbar
- Add UITaskBarCreateCurve and UITask components
* Allow multipage apps in puterjs

* Don't error on browsers which dont support sessionStorage
* feat(gui): Enhance taskbar functionality and positioning

- Implement dynamic taskbar position management with options for left, bottom, and right placements.
- Update desktop dimensions and window positioning based on taskbar position.
- Add context menu options for changing taskbar position on desktop devices.
- Ensure mobile devices always display the taskbar at the bottom.
- Introduce CSS styles for taskbar positioning and adjust desktop padding accordingly.

* feat(gui): Reinitialize tooltips based on taskbar position

- Implement dynamic tooltip positioning for taskbar items based on the current taskbar location (left, right, bottom).
- Ensure tooltips are destroyed and recreated when the taskbar position is updated, enhancing user experience and consistency.

* feat(gui): Improve taskbar and tooltip positioning

- Add support for dynamic tooltip positioning for the 'top' taskbar location.
- Adjust CSS styles for arrow tooltips to enhance visual alignment and positioning.
- Refine taskbar item positioning for left and right placements to ensure consistent appearance.

* Improve popover positioning based on taskbar location

- Improve `UIPopover` positioning logic to account for left and right taskbar placements.
- Adjust Y position of popovers to ensure they appear correctly below toolbars for left/right taskbars.
- Update CSS styles for arrow tooltips to enforce consistent positioning with !important declarations.

* Refactor context menu positioning logic in UITaskbarItem

- Introduce a helper function to dynamically calculate context menu position based on the taskbar's location (top, bottom, left, right).
- Ensure context menus are positioned correctly relative to the taskbar item, improving usability across different taskbar placements.

* Fix UITaskbar window height calculation for consistent positioning

- Adjust the height calculation for windows in the UITaskbar to remove an unnecessary offset, ensuring accurate window sizing relative to the toolbar height.
- This change improves the visual consistency of maximized windows across different taskbar placements.

* Enhance window snapping and positioning based on taskbar location

- Introduce a new function to calculate snap dimensions and positions dynamically based on the taskbar's location (left, right, bottom).
- Update window snapping logic to ensure windows are positioned correctly relative to the taskbar, improving usability and visual consistency.
- Adjust boundary checks for window placement to account for taskbar height and position, enhancing the overall user experience.

* Update default taskbar position to 'left' and adjust CSS padding for desktop layout

- Change the default taskbar position from 'bottom' to 'left' in UITaskbar.
- Modify CSS to increase left padding for desktop taskbar positioning, enhancing layout consistency.

* Improve CSS for desktop layout with height adjustments

- Update CSS styles for input fields and desktop taskbar to set height to 100vh, ensuring consistent full-page layout across different screen sizes.
- This change improves the visual consistency and usability of the interface.

* Improve desktop selectable interactivity and taskbar tooltip behavior

- Add functionality to mark the desktop as selectable active, improving user interaction with desktop elements.
- Update tooltip display logic to only show when the desktop is not in a selectable state, enhancing usability.
- Adjust CSS styles for desktop layout, ensuring consistent behavior and appearance when the desktop is active or inactive.

* Update default taskbar position logic for first-time and existing users

- Set the taskbar position to 'left' for first-time visitors and default to 'bottom' for returning users without a saved preference.
- This change improves the user experience by providing a more intuitive initial layout for new users while maintaining consistency for existing users.
@XiaochenCui XiaochenCui force-pushed the ai/llm-api-spec-1377 branch from c101a01 to f5bbdf9 Compare August 13, 2025 21:16
KernelDeimos and others added 19 commits August 13, 2025 16:42
- create new package
- copy streaming utilities to new package
CompletionWriter is a copy of AIChatStream with a more accurate name
that leaves room for stream writers for other AI formats (since
"completion" is just one of many)
The Messages library had overloaded concerns and has now been split into
UniversalPromptNormalizer (normalization for the "universal" input
format), and NormalizedPromptUtil (functions that can be used on
normalized prompt input for convenient inference).
I keep forgetting I can't do this and it only works the other way
around, but I want the new AI module to use ES imports syntax. Luckily
backend services have an async _construct lifecycle method that I can
use to import the module and assign members to the instance variable.
@XiaochenCui XiaochenCui force-pushed the ai/llm-api-spec-1377 branch from f5bbdf9 to 7583555 Compare August 14, 2025 00:01
@XiaochenCui XiaochenCui marked this pull request as draft August 29, 2025 17:33
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.