fix: collection settings access, UI overflow fixes, and auto-focus URL bar (#7861)

* fix: collection settings access, UI overflow fixes, and auto-focus URL bar

- Move collection icon outside dropdown; clicking it opens collection
  settings/overview, clicking the name opens the switcher dropdown
- Auto-focus URL bar when creating a transient request (#2919)
- Fix long collection/folder name overflow with ellipsis truncation
- Reduce dropdown width and truncate large collection names
- Simplify breadcrumb collapse: show collection name and last folder,
  collapse middle items into a dropdown
- Fix modal width to prevent shrinking with short collection names
- Show "Create Collection" option when saving a draft with zero collections
- Use IconBox consistently for collection icons

* Replace Chevron component with IconChevronRight

---------

Co-authored-by: Chirag Chandrashekhar <cchirag85@gmail.com>
Co-authored-by: Sid <siddharth@usebruno.com>
This commit is contained in:
Chirag Chandrashekhar
2026-04-30 17:05:40 +05:30
committed by GitHub
parent 8269d51df4
commit 118ba801aa
10 changed files with 222 additions and 75 deletions

View File

@@ -38,6 +38,12 @@ const QueryUrl = ({ item, collection, handleRun }) => {
const [generateCodeItemModalOpen, setGenerateCodeItemModalOpen] = useState(false);
const hasChanges = useMemo(() => hasRequestChanges(item), [item]);
useEffect(() => {
if (item.isTransient && !url && editorRef.current?.editor) {
setTimeout(() => editorRef.current?.editor?.focus(), 0);
}
}, [item.uid]);
const onSave = () => {
dispatch(saveRequest(item.uid, collection.uid));
};