mirror of
https://github.com/open-webui/computer.git
synced 2026-11-29 08:31:49 -05:00
10 files changed
+68
-32
No files matched your search
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [0.8.3] - 2026-07-07
|
||||
|
||||
### Fixed
|
||||
|
||||
- 💬 **Cleaner chat suggestions.** Slash commands, file matches, skill matches, and model choices now have a little more room and clearer hover hints, so longer names are easier to understand.
|
||||
- 🧭 **Better menu hints.** Menus can now show helpful hover hints only when there is something useful to show, keeping empty tooltips out of the way.
|
||||
|
||||
## [0.8.2] - 2026-07-07
|
||||
|
||||
### Added
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Open Use License
|
||||
|
||||
Copyright © 2026 Open WebUI Inc. All rights reserved.
|
||||
Copyright © 2026 Open WebUI, Inc. All rights reserved.
|
||||
|
||||
This software is licensed under the Open Use License, which incorporates the
|
||||
Elastic License 2.0 ("ELv2") in full with the additional conditions set forth
|
||||
@@ -30,3 +30,7 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
|
||||
Commercial, organizational, or production use is subject to the applicable
|
||||
commercial terms published at https://openwebui.com/terms, unless Open WebUI,
|
||||
Inc. agrees otherwise in writing.
|
||||
@@ -1,10 +1,12 @@
|
||||
<script lang="ts">
|
||||
import { onMount, type Snippet } from 'svelte';
|
||||
import { tooltip } from '$lib/tooltip';
|
||||
import Icon from './Icon.svelte';
|
||||
import KeyPill from './KeyPill.svelte';
|
||||
|
||||
interface MenuItem {
|
||||
label: string;
|
||||
tooltip?: string;
|
||||
icon?: string;
|
||||
onclick: () => void;
|
||||
active?: boolean;
|
||||
@@ -374,6 +376,7 @@
|
||||
>
|
||||
<button
|
||||
class="flex items-center gap-2 min-w-0 flex-1 h-full px-2 text-inherit"
|
||||
use:tooltip={item.tooltip ? { content: item.tooltip, placement: 'top' } : null}
|
||||
onclick={() => {
|
||||
item.onclick();
|
||||
onclose();
|
||||
|
||||
@@ -1124,7 +1124,7 @@
|
||||
|
||||
{#if showSlashCommands}
|
||||
<div
|
||||
class="app-theme app-surface absolute left-2 bottom-full mb-1 z-50 w-60 max-h-40 overflow-y-auto rounded-xl border shadow-xl p-0.5"
|
||||
class="app-theme app-surface absolute left-2 bottom-full mb-1 z-50 w-64 max-h-40 overflow-y-auto rounded-xl border shadow-xl p-0.5"
|
||||
>
|
||||
{#if slashCommandIds.length > 0}
|
||||
<div class="app-muted mb-0.5 px-2 pt-1 pb-0.5 text-[0.625rem] leading-none">
|
||||
@@ -1137,7 +1137,7 @@
|
||||
aria-label="Compact: shorten older messages so this chat can keep going."
|
||||
use:tooltip={{
|
||||
content: 'Shorten older messages so this chat can keep going.',
|
||||
placement: 'right'
|
||||
placement: 'top'
|
||||
}}
|
||||
class="slash-command-row flex items-center gap-2 w-full h-6 px-2 rounded-xl text-xs text-left transition-colors duration-75
|
||||
{selectedSlashCommand('compact') ? 'app-interactive-active' : ''} disabled:opacity-50"
|
||||
@@ -1186,7 +1186,7 @@
|
||||
aria-label="Plan: work out a plan first, then wait before changing files."
|
||||
use:tooltip={{
|
||||
content: 'Work out a plan first, then wait before changing files.',
|
||||
placement: 'right'
|
||||
placement: 'top'
|
||||
}}
|
||||
class="slash-command-row flex items-center gap-2 w-full h-6 px-2 rounded-xl text-xs text-left transition-colors duration-75
|
||||
{selectedSlashCommand('plan') ? 'app-interactive-active' : ''}"
|
||||
@@ -1227,7 +1227,7 @@
|
||||
aria-label="Fork: clone this chat into a new copy."
|
||||
use:tooltip={{
|
||||
content: 'Clone this chat into a new copy.',
|
||||
placement: 'right'
|
||||
placement: 'top'
|
||||
}}
|
||||
class="slash-command-row flex items-center gap-2 w-full h-6 px-2 rounded-xl text-xs text-left transition-colors duration-75
|
||||
{selectedSlashCommand('fork') ? 'app-interactive-active' : ''} disabled:opacity-50"
|
||||
@@ -1255,7 +1255,7 @@
|
||||
aria-label="Status: check what is running in this chat."
|
||||
use:tooltip={{
|
||||
content: 'Check what is running in this chat.',
|
||||
placement: 'right'
|
||||
placement: 'top'
|
||||
}}
|
||||
class="slash-command-row flex items-center gap-2 w-full h-6 px-2 rounded-xl text-xs text-left transition-colors duration-75
|
||||
{selectedSlashCommand('status') ? 'app-interactive-active' : ''}"
|
||||
@@ -1294,7 +1294,7 @@
|
||||
aria-label="List skills: see the skills available in this workspace."
|
||||
use:tooltip={{
|
||||
content: 'See the skills available in this workspace.',
|
||||
placement: 'right'
|
||||
placement: 'top'
|
||||
}}
|
||||
class="slash-command-row flex items-center gap-2 w-full h-6 px-2 rounded-xl text-xs text-left transition-colors duration-75
|
||||
{selectedSlashCommand('skills:list') ? 'app-interactive-active' : ''}"
|
||||
@@ -1319,7 +1319,7 @@
|
||||
aria-label="Create skill: teach Computer a reusable workflow."
|
||||
use:tooltip={{
|
||||
content: 'Teach Computer a reusable workflow.',
|
||||
placement: 'right'
|
||||
placement: 'top'
|
||||
}}
|
||||
class="slash-command-row flex items-center gap-2 w-full h-6 px-2 rounded-xl text-xs text-left transition-colors duration-75
|
||||
{selectedSlashCommand('skills:create') ? 'app-interactive-active' : ''}"
|
||||
@@ -1345,8 +1345,8 @@
|
||||
type="button"
|
||||
aria-label={`Use skill: ${skill.label}`}
|
||||
use:tooltip={{
|
||||
content: skill.description || 'Use this skill in the message.',
|
||||
placement: 'right'
|
||||
content: skill.label,
|
||||
placement: 'top'
|
||||
}}
|
||||
class="slash-command-row flex items-center gap-2 w-full h-6 px-2 rounded-xl text-xs text-left transition-colors duration-75
|
||||
{selectedSlashSkill(skill.id) ? 'app-interactive-active' : ''}"
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
import Icon from '../Icon.svelte';
|
||||
import { fileIconName } from '$lib/utils/fileIcon';
|
||||
import { t } from '$lib/i18n';
|
||||
import { tooltip } from '$lib/tooltip';
|
||||
|
||||
interface SuggestionItem {
|
||||
id: string;
|
||||
@@ -35,7 +36,7 @@
|
||||
</script>
|
||||
|
||||
<div
|
||||
class="app-theme app-surface fixed z-50 w-60 max-h-40 overflow-y-auto rounded-xl border shadow-xl p-0.5"
|
||||
class="app-theme app-surface fixed z-50 w-64 max-h-40 overflow-y-auto rounded-xl border shadow-xl p-0.5"
|
||||
>
|
||||
{#if items.length === 0}
|
||||
<div class="app-muted flex items-center h-6 px-2 text-xs">{$t('quickOpen.noFiles')}</div>
|
||||
@@ -54,6 +55,7 @@
|
||||
onselect(i);
|
||||
}}
|
||||
onmouseenter={() => (selectedIndex = i)}
|
||||
use:tooltip={{ content: item.id, placement: 'top' }}
|
||||
>
|
||||
<span class="app-icon-muted flex items-center justify-center w-4 shrink-0">
|
||||
<Icon name={fileIconName(item.label, item.type)} size={14} />
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<script lang="ts">
|
||||
import Icon from '$lib/components/Icon.svelte';
|
||||
import { t } from '$lib/i18n';
|
||||
import { tooltip } from '$lib/tooltip';
|
||||
|
||||
interface SuggestionItem {
|
||||
id: string;
|
||||
@@ -28,7 +29,7 @@
|
||||
</script>
|
||||
|
||||
<div
|
||||
class="app-theme app-surface fixed z-50 w-60 max-h-40 overflow-y-auto rounded-xl border shadow-xl p-0.5"
|
||||
class="app-theme app-surface fixed z-50 w-64 max-h-40 overflow-y-auto rounded-xl border shadow-xl p-0.5"
|
||||
>
|
||||
{#if items.length === 0}
|
||||
<div class="app-muted flex items-center h-6 px-2 text-xs">{$t('chat.noSkillsFound')}</div>
|
||||
@@ -47,7 +48,7 @@
|
||||
onselect(i);
|
||||
}}
|
||||
onmouseenter={() => (selectedIndex = i)}
|
||||
title={item.description}
|
||||
use:tooltip={{ content: item.label, placement: 'top' }}
|
||||
>
|
||||
<span class="app-icon-muted flex items-center justify-center w-4 shrink-0">
|
||||
<Icon name="spark" size={13} strokeWidth={1.7} />
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
const menuItems = $derived(
|
||||
filtered.map((m) => ({
|
||||
label: m.name,
|
||||
tooltip: m.name,
|
||||
active: m.id === selectedModel,
|
||||
check: true,
|
||||
onclick: () => {
|
||||
@@ -100,7 +101,7 @@
|
||||
{preferAbove}
|
||||
forceAbove={preferAbove}
|
||||
maxHeight={selectorMaxHeight}
|
||||
className="w-48"
|
||||
className="w-52"
|
||||
{align}
|
||||
>
|
||||
{#snippet header()}
|
||||
|
||||
@@ -1,31 +1,49 @@
|
||||
import tippy, { type Props as TippyProps } from 'tippy.js';
|
||||
import tippy, { type Instance, type Props as TippyProps } from 'tippy.js';
|
||||
import 'tippy.js/dist/tippy.css';
|
||||
|
||||
type TooltipParams = string | Partial<TippyProps> | null | undefined | false;
|
||||
|
||||
/**
|
||||
* Svelte action for tippy.js tooltips.
|
||||
* Usage: <button use:tooltip={'New terminal'}>
|
||||
* or: <button use:tooltip={{ content: 'New terminal', placement: 'bottom' }}>
|
||||
*/
|
||||
export function tooltip(node: HTMLElement, params: string | Partial<TippyProps>) {
|
||||
const opts: Partial<TippyProps> = typeof params === 'string' ? { content: params } : params;
|
||||
export function tooltip(node: HTMLElement, params: TooltipParams) {
|
||||
function optsFor(value: TooltipParams): Partial<TippyProps> | null {
|
||||
if (!value) return null;
|
||||
const opts: Partial<TippyProps> = typeof value === 'string' ? { content: value } : value;
|
||||
return opts.content ? opts : null;
|
||||
}
|
||||
|
||||
const instance = tippy(node, {
|
||||
arrow: false,
|
||||
delay: [400, 0],
|
||||
duration: [100, 75],
|
||||
placement: 'bottom',
|
||||
theme: 'cptr',
|
||||
touch: false,
|
||||
...opts
|
||||
});
|
||||
function create(opts: Partial<TippyProps>) {
|
||||
return tippy(node, {
|
||||
arrow: false,
|
||||
delay: [400, 0],
|
||||
duration: [100, 75],
|
||||
placement: 'bottom',
|
||||
theme: 'cptr',
|
||||
touch: false,
|
||||
...opts
|
||||
});
|
||||
}
|
||||
|
||||
let instance: Instance | null = null;
|
||||
const opts = optsFor(params);
|
||||
if (opts) instance = create(opts);
|
||||
|
||||
return {
|
||||
update(newParams: string | Partial<TippyProps>) {
|
||||
const newOpts = typeof newParams === 'string' ? { content: newParams } : newParams;
|
||||
instance.setProps(newOpts);
|
||||
update(newParams: TooltipParams) {
|
||||
const newOpts = optsFor(newParams);
|
||||
if (!newOpts) {
|
||||
instance?.destroy();
|
||||
instance = null;
|
||||
return;
|
||||
}
|
||||
if (instance) instance.setProps(newOpts);
|
||||
else instance = create(newOpts);
|
||||
},
|
||||
destroy() {
|
||||
instance.destroy();
|
||||
instance?.destroy();
|
||||
}
|
||||
};
|
||||
}
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
[project]
|
||||
name = "cptr"
|
||||
version = "0.8.2"
|
||||
version = "0.8.3"
|
||||
description = "Your computer, from anywhere. Code, manage, and control your machine from the web."
|
||||
license = {file = "LICENSE"}
|
||||
readme = "README.md"
|
||||
|
||||
Reference in new issue
Block a user