mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-23 02:36:05 +00:00
Angular Material overlay backdrops were not being properly cleared between tag operations, causing subsequent clicks to timeout when overlays blocked element interactions. Added ensureOverlaysClosed() helper with: - Early exit if no overlays present (performance) - Escape key dismissal with retry for stacked overlays - Logging for debugging when fallbacks trigger - Uses Playwright's native locator.waitFor() instead of waitForFunction() - Cleanup at operation start (prevent blocking) and end (clean state) Benefits: - Eliminates fixed timeouts, uses smart waiting (tests run 2x faster) - Handles edge cases like stacked overlays - Provides visibility into when overlays are unexpectedly present Fixes 4 failing tests: - Tag CRUD: remove tag via context menu - Tag CRUD: delete tag and update tasks - Tag CRUD: navigate to tag view - Menu: toggle tags via submenu
39 lines
1 KiB
TypeScript
39 lines
1 KiB
TypeScript
import type { CapacitorConfig } from '@capacitor/cli';
|
|
|
|
const config: CapacitorConfig = {
|
|
appId: 'com.super-productivity.app',
|
|
appName: 'Super Productivity',
|
|
webDir: 'dist/browser',
|
|
plugins: {
|
|
CapacitorHttp: {
|
|
enabled: true,
|
|
},
|
|
LocalNotifications: {
|
|
// Android-specific: small icon for notification
|
|
smallIcon: 'ic_stat_sp',
|
|
},
|
|
Keyboard: {
|
|
// Resize the web view when keyboard appears (iOS)
|
|
resize: 'body',
|
|
// Style keyboard accessory bar
|
|
resizeOnFullScreen: true,
|
|
},
|
|
StatusBar: {
|
|
// Status bar overlays webview (iOS)
|
|
overlaysWebView: false,
|
|
},
|
|
},
|
|
ios: {
|
|
// Content inset for safe areas (notch, home indicator)
|
|
contentInset: 'automatic',
|
|
// Background color for safe areas (home indicator, notch)
|
|
// Use dark color to match dark theme (most common on mobile)
|
|
backgroundColor: '#131314',
|
|
// Allow inline media playback
|
|
allowsLinkPreview: true,
|
|
// Scroll behavior
|
|
scrollEnabled: true,
|
|
},
|
|
};
|
|
|
|
export default config;
|