Commit Graph

603 Commits

Author SHA1 Message Date
Spicy_Marinara 4f0c366f04 Fix dice roll saving: only save when 'Save Roll' is clicked
- Add pendingDiceRoll variable to store temporary roll result
- Clicking X or overlay now discards the roll without saving
- Only save to settings when user explicitly clicks 'Save Roll' button
- Prevents unwanted rolls from being saved to the sidebar display
2025-10-15 13:17:25 +02:00
Spicy_Marinara a5d39f4245 Convert CSS to responsive units and fix button scaling
- Convert font-size from px to rem for better accessibility
- Convert padding/margin/gap from px to em for responsive scaling
- Convert width/height/position values to rem
- Convert letter-spacing and transforms to responsive units
- Keep shadows, small borders (1-3px), and media queries as px
- Fix buttons (Manual Update & Settings) to use 100% width and 2.5rem height
- Fix TypeScript error: add missing id property to regexScript object
2025-10-15 13:05:24 +02:00
Spicy_Marinara f21d6030aa Fix plot progression: use quiet_prompt instead of quietPrompt
- Changed property name from quietPrompt to quiet_prompt (underscore notation)
- Removed unnecessary context manipulation code
- Pass prompt via Generate() options with correct property naming
- This fixes custom prompts not appearing in continuation generation
2025-10-15 12:39:59 +02:00
Spicy_Marinara 0ad30f2489 Add delay before Continue click and console logs to debug quietPrompt 2025-10-15 09:50:41 +02:00
Spicy_Marinara 3f44a0116a Fix plot progression to use context.quietPrompt and click Continue button 2025-10-15 09:37:47 +02:00
Spicy_Marinara 63d180c0c9 Merge PR from GitHub - resolved conflicts 2025-10-15 09:21:59 +02:00
Spicy_Marinara 21e7ff85f9 Fix plot progression buttons to trigger continuation without RPG tracker prompts 2025-10-15 09:17:47 +02:00
Spicy Marinara 63039f0000 Merge pull request #4 from paperboygold/fix/panel-animation-and-imports
fix: resolve panel collapse animation and import errors
2025-10-15 09:13:04 +02:00
Spicy_Marinara 8e624a807d Fix Refresh RPG Info to treat placeholder data as first-time generation and remove cache clear popups 2025-10-15 08:44:24 +02:00
Spicy_Marinara 5a204df931 Fix panel to properly stretch from screen edge to chat border - use width calculation instead of left/right positioning 2025-10-15 08:34:06 +02:00
Spicy_Marinara 838e557371 Make panel fill available margin space instead of fixed width - panel now expands to use all available space in margins 2025-10-15 08:29:37 +02:00
Lucas 'Paperboy' Rose-Winters aca7478bcc fix: resolve panel collapse animation and import errors
- Fix chevron button positioning to move with collapsed panel edge
- Replace broken dynamic imports with static imports in ensureHtmlCleaningRegex
- Add smooth bidirectional expand/collapse animations
- Implement positioning-based layout for smooth transitions
- Add content opacity fade synchronized with panel width changes

This fixes the chevron button remaining stationary during collapse,
eliminates "Failed to fetch dynamically imported module" errors,
and provides smooth animations in both expand and collapse directions.
2025-10-15 15:47:13 +11:00
Spicy_Marinara 7adaedcb58 Make panel fill available margin space instead of fixed width - panel now expands to use all available space in margins 2025-10-15 02:52:20 +02:00
Spicy_Marinara 8f67decea3 Make User Stats and Present Characters always editable even when not generated - show placeholder cards with editable fields 2025-10-15 02:06:23 +02:00
Spicy_Marinara 09d2d62999 Make all Info Box fields editable even when not generated - always show widgets with placeholder values 2025-10-15 02:03:54 +02:00
Spicy_Marinara 94fa0f820c Fix date editing in Info Box - allow editing empty fields and properly handle all date components (weekday, month, year) 2025-10-15 02:02:08 +02:00
Spicy Marinara fdc14c84ab Update README with To-Do list
Added a To-Do section with future feature ideas.
2025-10-15 00:29:49 +02:00
Spicy_Marinara fe346c09d5 Fix HTML prompt duplication on swipes in together mode - inject separately instead of including in instructions 2025-10-15 00:16:22 +02:00
Spicy_Marinara 6f810f05a0 Fix time editing in Info Box - set both start and end time to edited value 2025-10-14 22:54:09 +02:00
Spicy_Marinara a4bdfd8f4c Fix regex module import paths - remove duplicate /scripts/ in path 2025-10-14 21:10:51 +02:00
Spicy_Marinara a2712e85d5 Force remove all margins from rpg-stats-header and rpg-mood with !important 2025-10-14 20:42:19 +02:00
Spicy_Marinara 9dcb5ceb53 Update style.css 2025-10-14 20:38:52 +02:00
Spicy_Marinara 0a03ac7f22 Restore smaller bottom margin (6px) to rpg-panel-header and force remove bottom margin from rpg-map-bg 2025-10-14 20:37:22 +02:00
Spicy_Marinara c5f119f301 Remove margins from rpg-panel-header, rpg-map-bg, and rpg-weather-forecast 2025-10-14 20:32:13 +02:00
Spicy_Marinara 1c82f06e81 Force remove ALL margins from Refresh RPG Info button 2025-10-14 19:51:45 +02:00
Spicy_Marinara dfbcb8125c Fix button sizes: Remove ALL margins and set both buttons to 353x33px
- Remove all margins from both Refresh RPG Info and Settings buttons
- Set exact dimensions: width 353px, height 33px for both buttons
- Remove padding and use box-sizing: border-box for precise sizing
- Both buttons now identical in size
2025-10-14 19:49:05 +02:00
Spicy_Marinara 1e9d7c3adc Remove top margin from Refresh RPG Info button and match Settings button size
- Add negative top margin to Refresh button to compensate for parent gap
- Match Settings button styling to Refresh button (border, radius, font-size, shadow)
2025-10-14 19:45:27 +02:00
Spicy_Marinara 50b5915400 Remove margins from UI elements and fix collapse button visibility
- Remove margins from rpg-stats-header, rpg-mood, rpg-panel-header, and rpg-manual-update-btn
- Fix collapse/expand button visibility by changing panel overflow to visible
- Increase collapse button z-index to 10001 for better layering
- Adjust collapse button positioning for better visual alignment
2025-10-14 19:39:36 +02:00
Spicy_Marinara 737b580be8 Support both global and user-specific extension installation paths
- Dynamically detect extension location using import.meta.url
- Support installation in public/extensions (install for all users)
- Support installation in data/default-user/extensions (install just for me)
- Automatically sets correct extensionFolderPath based on detected location
2025-10-14 19:24:25 +02:00
Spicy_Marinara ea10d1eaac Add collapsible panel, fix inventory scrolling, adjust toggle margins
- Add collapse/expand toggle button to side panels (left/right positions)
- Button shows on the outside edge of the panel with chevron icon
- Panel collapses to 40px vertical bar, button icon direction updates based on position
- Fix inventory box stretching issue by adding max/min height constraints
- Inventory items now scroll internally with flex layout
- Remove bottom margin from Enable Immersive HTML toggle
- Add top margin to Manual Update button to maintain spacing
2025-10-14 19:18:17 +02:00
Spicy Marinara b3a2e8c771 Remove active characters list from system message
Removed the introduction of the active characters list from the system message.
2025-10-14 18:12:11 +02:00
Spicy Marinara 93b8bc19a0 Fix spelling errors and enhance README clarity
Corrected spelling errors and improved clarity in the README.
2025-10-14 17:29:39 +02:00
Spicy_Marinara 158517c600 feat: auto-import HTML cleaning regex for prompts
- Adds ensureHtmlCleaningRegex() function that automatically imports a regex script
- Regex removes HTML tags from outgoing prompts to prevent formatting issues
- Only imports if not already present (checks existing scripts by name)
- Based on the regex-clean_html_(from_outgoing_prompt).json specification
- Runs on extension initialization
- Non-blocking: won't fail extension load if regex import fails
2025-10-14 15:00:19 +02:00
Spicy_Marinara c35606bb28 fix(mobile): respect topbar height and enable proper scrolling
- Changed top: auto to top: var(--topBarBlockSize) to prevent panel from covering SillyTavern topbar
- Removed fixed height: 70vh/80vh properties that prevented proper sizing
- Panel height now determined by top/bottom constraints for natural fit
- Changed overflow-y: auto to overflow-y: scroll for reliable scrolling
- Added -webkit-overflow-scrolling: touch for iOS smooth scrolling
- Fixes panel covering entire screen, content squishing, and scroll issues
2025-10-14 14:57:17 +02:00
Spicy Marinara 063ae7f72c Include job sponsorship request in README
Added a personal note about job sponsorship.
2025-10-14 14:43:41 +02:00
Spicy_Marinara 7440860402 feat: Add mobile-optimized FAB toggle button for panel
- Added floating action button (FAB) that appears only on mobile (≤768px)
- Panel becomes a bottom sheet modal on mobile instead of fixed sidebar
- Smooth slide-up animation with backdrop overlay
- Panel hidden by default on mobile, opens when FAB clicked
- Touch-friendly button sizes (44px minimum per Apple HIG)
- 70vh height on tablets, 80vh on phones for better usability
- Rounded top corners for modern mobile UI
- Desktop behavior unchanged
2025-10-14 14:39:45 +02:00
Spicy_Marinara 9609eef6ff fix: Update placeholder hints to clarify generation mode options 2025-10-14 14:31:16 +02:00
Spicy_Marinara 609a4b9e47 feat: Enable 'Show Thoughts in Chat' by default for new installs 2025-10-14 14:24:37 +02:00
Spicy_Marinara d98ecce5c3 fix: Append panel directly to body for proper flexbox layout
- Changed from $('#sheld').after/before() to $('body').append()
- Panel is now a direct child of body element
- Works better with SillyTavern's main flexbox layout
- CSS handles all positioning (no more DOM position logic)
2025-10-14 14:10:02 +02:00
Spicy_Marinara 0926390205 fix: Add margin auto to keep chat centered with panel open
- Forces #sheld to use margin: auto when panel is visible
- Prevents chat from being pushed to one side
- Applies to both left and right panel positions
2025-10-14 13:16:06 +02:00
Spicy_Marinara 685c7ae1c2 fix: Make panel responsive and remove forced chat margins
- Removed margin-left/right on #sheld that was pushing chat to center
- Panel now overlays instead of pushing content
- Added responsive breakpoints for different screen sizes
- Width: 380px default, max 30vw, scales down on smaller screens
- Mobile: Full width at bottom on very small screens
- Panel no longer breaks layout on different screen sizes
2025-10-14 13:14:46 +02:00
Spicy_Marinara d1e4d2d7df fix: Add third-party prefix to extensionName for template loading
- Changed to 'third-party/rpg-companion-sillytavern'
- User-installed extensions need the third-party prefix
- Template loader looks for scripts/extensions/third-party/[name]
2025-10-14 13:01:54 +02:00
Spicy_Marinara 5af6186c32 fix: Update extensionName to match repository folder name
- Changed from 'rpg-companion' to 'rpg-companion-sillytavern'
- Fixes 'Error rendering template' issue
- Template loader uses extensionName to find template files
2025-10-14 12:58:15 +02:00
Spicy_Marinara 73b76fee2f fix: Correct import paths for user-installed extensions
- Changed import paths from ../../ to ../../../
- User-installed extensions are in data/default-user/extensions/
- Paths need one more level up to reach script.js and other core files
2025-10-14 12:42:58 +02:00
Spicy_Marinara 2dd17eda84 fix: Remove Generate from imports for release branch compatibility
- Generate function may not exist in older SillyTavern versions
- Added fallback check for window.Generate before using it
- Should fix '[object Event]' loading error on release branch
2025-10-14 12:40:33 +02:00
Spicy_Marinara aede293116 fix: Add error handling to initialization for better debugging 2025-10-14 12:33:46 +02:00
Spicy_Marinara 217833dc6c fix: Update manifest homePage to correct repository URL 2025-10-14 12:32:40 +02:00
Spicy_Marinara e53f6675ea fix: Use more compatible emoji parsing without Unicode property escapes
- Replaced \p{Emoji} regex with line-by-line parsing
- Avoids compatibility issues with older JavaScript engines
- Skips percentage and inventory lines to find mood emoji
- Supports all emoji types including compound emojis
2025-10-14 12:17:57 +02:00
Spicy_Marinara d5e4010d4d fix: Support compound emojis in mood parsing
- Updated regex to handle compound emojis with zero-width joiners (ZWJ)
- Fixes mood display for emojis like 😶‍🌫️ (face in clouds)
- Now captures full emoji sequences including variation selectors
2025-10-14 11:39:32 +02:00
Spicy_Marinara a9b0b6fefe fix: Remove duplicate lines from README 2025-10-14 00:19:28 +02:00