Commit abba969
authored
* Enhance magic URL setup with expiration control features
- Added functionality to manage expiration settings for magic URLs, including enabling/disabling expiration controls based on user input.
- Implemented logic to clear expiration data when links are reset, ensuring accurate link management.
- Introduced initialization for expiration controls on page load to improve user experience.
- Refactored app link reset logic to accommodate new expiration handling.
* Refactor whitespace and formatting in magic URL setup for improved readability
- Cleaned up unnecessary whitespace and adjusted formatting for consistency throughout the magic URL setup file.
- Enhanced clarity in the code structure, ensuring better alignment of comments with the corresponding code sections.
* Fix whitespace inconsistency in magic URL setup file
* Refactor expiration control logic in magic URL setup
- Removed outdated expiration control functions and initialization code to streamline the handling of expiration settings.
- Updated validation logic to require both expiration amount and time unit, enhancing user input requirements.
- Improved expiration display updates and data attribute management for better clarity and functionality.
- Ensured consistent handling of expiration data when links are reset, enhancing overall user experience.
* Enhance reset link functionality in magic URL setup
- Updated reset link label to reflect its action of clearing expiration, improving user clarity.
- Added logic to reset label text when expiration is cleared, ensuring consistent user feedback.
- Refactored badge display logic for better handling of expiration states, enhancing overall user experience.
* Update endpoint URLs in magic URL setup for consistency
- Changed endpoint URLs to use the root property instead of site_url, ensuring uniformity in API calls.
- This adjustment enhances the reliability of the API interactions within the magic URL setup functionality.
* Enhance magic URL setup to support expiration helpers
- Added logic to check if the active magic link plugin version supports expiration helpers, improving compatibility and functionality.
- Updated conditions for displaying expiration-related UI elements based on the new support check, enhancing user experience and clarity.
* Refactor magic URL setup to optimize link object fetching and expiration formatting
- Cached link objects to improve performance and reduce redundant API calls.
- Simplified expiration date formatting logic for better readability and maintainability.
- Removed unused variable for link object ID, streamlining the code.
- Enhanced data attributes for expiration display, ensuring accurate and user-friendly output.
* Enhance magic URL functionality with instance ID handling and local timezone expiration display
- Added support for instance ID in magic URL processing to improve link management.
- Implemented local timezone formatting for magic link expiration timestamps, enhancing user experience.
- Updated JavaScript to dynamically display expiration information in the app accordion, ensuring accurate and user-friendly output.
* Add "Does not expire" Label and make past dates red
1 parent c5a8e71 commit abba969
2 files changed
Lines changed: 389 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
344 | 344 | | |
345 | 345 | | |
346 | 346 | | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
347 | 352 | | |
348 | 353 | | |
349 | 354 | | |
| |||
374 | 379 | | |
375 | 380 | | |
376 | 381 | | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
377 | 397 | | |
378 | 398 | | |
379 | 399 | | |
| |||
0 commit comments