v4.0.26
feat(admin,layout): visual feedback and reduced delay when closing a tab
Closing a tab via the X had ~100ms of dead air with no visual signal — users
felt the UI was frozen.
- ArchbaseAdvancedTabs: new
closing?: booleanon the tab item / props.
When true, the close button renders a Mantine Loader (size 12) with
cursor: waitinstead of the X glyph, signalling the close is in progress. - ArchbaseAdminTabContainer: derives
closingTabKeyfrom
state.isClosing + state.userCloseLinkRequest and marks the matching tab as
closingin buildAdvancedTabs. Also calls startProgress() immediately on
the X click (was only called after the listener responded) so the top
progress bar appears instantly. - ArchbaseNavigation.context: fallback timeout to auto-close when no
navigation listener responds dropped from 100ms to 0ms. setTimeout(0)
still lets synchronous listener useEffects win the race (they run during
the React commit phase, before the macrotask), so behavior is preserved
for listening views while non-listening views close without perceptible
delay.
Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com
Packages
- @archbase/core
- @archbase/data
- @archbase/components
- @archbase/layout
- @archbase/admin
- @archbase/advanced
- @archbase/security
- @archbase/security-ui
- @archbase/template
- @archbase/tools
- @archbase/feature-flags
- @archbase/ssr
Installation
npm install @archbase/core@4.0.26Documentation
Visit https://react.archbase.dev for full documentation.