Commit Graph

407 Commits

Author SHA1 Message Date
Linty 1eb083bc63 fixes #2316 improve album selector validation and keyboard interaction
also add an error in the global batch manager when we perform an album association but without choosing an album
2025-01-27 16:08:32 +01:00
Linty 8f75afd625 fixes #2314 hide the error message when writing or closing the modal 2025-01-22 14:56:56 +01:00
Linty 64064b5974 fixes #2310 check whether there is a textarea when pressing enter 2025-01-09 10:33:09 +01:00
Linty 5182e69dcd fixes #2286 trigger the click action on pressing enter
...and if the value of applyAction is not equal to -1
2024-12-06 12:02:46 +01:00
Linty e2fbf45cd8 fixes #2288 display the correct mail after changed it 2024-12-04 14:54:56 +01:00
Linty 1525f9ced2 fixes #2283 reduce font-size for initials
...and add no wrap for username
2024-11-25 11:27:32 +01:00
Linty 34296598d4 fixes #2281 add two default conf for reset and activation link
When a password activation or reset link is generated, the link expiry time is now defined in two conf: $conf[’password_reset_duration‘] with a default time of one hour and $conf[’password_activation_duration‘] with a default time of 72 hours.
2024-11-20 17:09:26 +01:00
Linty 0cee869971 fixes #2275 wrap the category name in another span
...with a plaintext style
2024-11-12 14:44:42 +01:00
Linty 25b919390e fixes #2274 load node when moving album in another one 2024-11-12 11:16:26 +01:00
Linty bc0a4bb107 fixes #2237 added a temporary parameter to pwg.images.setInfo
it's also adapted in the batch manager unit js file
2024-11-05 18:20:42 +01:00
Linty 95e85f264e fixes #2253 use only bulk_manager_filter category for album selection
I've also adapted the tpl and js files
2024-10-31 12:13:52 +01:00
Linty 29b1c32fbc fixes #2252 add null check for parent_node
...before accessing properties
2024-10-25 11:43:47 +02:00
Linty 75da48dadd fixes #2252 hide pencil icon during upload
...to prevent opening the album selector
2024-10-24 17:06:44 +02:00
Linty e53d7332de fixes #2250 add tooltip on main user icon 2024-10-24 16:00:09 +02:00
Linty 4f07c75b89 fixes #2247 load child nodes and open the node
...before adding a new one
2024-10-24 15:10:55 +02:00
Linty 1d087ebefe fixes #2158 refactor user data assignment
...with spread operator for cleaner code. This change also allows for compatibility with additional fields that may be returned by the API, such as those added by plugins, ensuring all elements are captured without explicitly defining each one.
2024-10-16 15:18:05 +02:00
Linty 1634bcf5cf fixes #2233 use .trigger('focus') instead of .focus()
because its deprecated
2024-09-25 14:54:05 +02:00
Linty 77c09413f0 fixes #2233 reset events on children node toggle
added preventDefault() to prevent page scroll to top caused by href attribute in `move-cat-add` events.
2024-09-25 14:43:37 +02:00
Linty f23ca21102 add focus and Enter key trigger for first album modal 2024-09-23 15:34:02 +02:00
Linty 91bb79c893 fixes #2226 implement album selector in batch manager filter and action 2024-09-23 12:44:00 +02:00
Linty 9a46f14f1c issue #2226 refactor album selector to class-based structure
- Update existing album selectors to new instantiation method
2024-09-23 12:40:33 +02:00
Linty 2121386ed0 fixes #2231 merging album search into album manager
- Delete old files (cat_search.php and cat_search.tpl) and his tab un add_core_tabs.inc.php
- Add search field and result in albums.tpl
- Separate js code from template
- Reuse data of albums.tpl for jqtree for the search algorithm
2024-09-20 16:19:07 +02:00
marsooooo e66de5a513 issue #2164 Update Metadata Sync function
Yet to be implemented, tags and date_creation
2024-09-13 16:53:18 +02:00
marsooooo 811bee3eb5 issue #2164 update extensibility for unit mode
Added new options of validation and updated existing code injection methods
see Skeleton extension for more details about extensibility
2024-09-09 15:51:51 +02:00
marsooooo 3d36978f84 issue #2164 optimize batchmanager JS
Added more verification to saveChanges Ajax call
optimized batchManagerFilter.js variables
2024-09-05 11:37:39 +02:00
mistic100 3f07808d7f Fix "total_count" type on some WS methods 2024-08-30 20:24:42 +02:00
marsooooo 12ca607727 issue #2164 updated & fixed bugs on batch manager
Added dark mode for unit mode
Templatized filter block for both unit and global mode
Optimized JS functions and added extensibility for unit mode
Modified images.setInfo method so unit mode could save orphan images
Fixed a bug where php would break if filter selection was empty in unit mode
2024-08-26 14:14:57 +02:00
Linty 815a0221aa [albums] fixed warning messages in album edit page 2024-08-23 19:39:59 +02:00
Linty d0eeb2852c fixes #2209 high-volume optimization
- Sub-albums in the album manager now load their html content progressively
- Scrolling on album focus corrected
2024-08-23 17:50:02 +02:00
plegall 3ee277f8e0 fixes #171 ability to filter user list on a specific user 2024-08-21 12:11:27 +02:00
Linty 7bd8b7e274 fixes #2206 add album selector on the add photo page
- replace older selector with the new album selector
- moving javascript to a js file
- changed the logic for the first album (now its work with api)
- changed labels in album selector and also added an escape event (to close modal)
2024-08-19 16:09:50 +02:00
Linty bfe1e85801 fixes #2201 better implementation for the number of associated users
removed the javascript part to directly manage disabling an option via the tpl in a foreach and data in php
2024-08-07 12:41:52 +02:00
Linty 316c20e5bd fixes #2201 for each filter we add the number of associated users
and the select is deactivated if no users are associated.
2024-08-05 17:50:10 +02:00
Linty 8cff72906d fixes #2132 remove unused console.log 2024-07-31 11:55:57 +02:00
Linty 653b03aacc fixes #2132 implementing and improving new album selector
- Moved all related logic into album_selector.js for better maintainability and separation of concerns.

- Removed duplicates in TPL and CSS files, consolidating them into a single CSS file and a single TPL file for better organization and efficiency.

- Implementation of the album selector in the pages: photo editing, album editing and batch manager unit.

- Improved the album selector by adding a creation mode to create and select an album (only in admin pages).
2024-07-31 11:49:44 +02:00
Linty 2f89bf6726 fixes #2189 remove password link input text when email is sent
I've also modified the messages
2024-07-16 10:15:59 +02:00
Linty d1cd5b11ef fixes #2187 resize activity tooltips
...when the tooltip extends beyond the page.
I've also added the tooltips (for both storage and activity) logic to a js file `intro_tooltips.js` and imported it into `intro.tpl`
2024-07-15 17:41:18 +02:00
plegall 8c25d7d2a1 fixes #2064 re-use existing code to open an album 2024-07-15 16:47:03 +02:00
Linty fa92e9c3f7 fixes #2186 remove delete icon when a user is set as main user 2024-07-15 12:22:28 +02:00
plegall 08087ba9bb fixes #2174 batch manager, call pwg.images.syncMetadata in sequence, not parallel 2024-07-09 20:04:51 +02:00
plegall 6e6a74c348 fixes #2173 allow comma separated list for image_id in pwg.images.syncMetadata 2024-07-09 15:42:31 +02:00
HWFord 10a8db2102 fixes #2164 batch manager unit mode redesign (#2179)
* Interface Update

Update front end according to web design

Completed the implementation of album manager

* Added image delete mechanism

* Update Validation

* Added filters according to global mode

Page is now fully translated from EN_uk to FR_fr
Harmonized global and unit mode by creating a template for the filters

TODO :

Uncomment updateBlock calls in metaSync and implement tags update

Uncomment pluginSave method and test it with an updated plugin

---------

Co-authored-by: marsooooo <marso.tison@gmail.com>
2024-07-02 11:20:16 +02:00
Linty c8d7503d4e related to #2165 new add user popin
- add field for add user
- in the `pwg.users.add` method, the params `send_password_by_mail` does nothing anymore. Because we no longer want to send passwords in clear text.
- in the `pwg.users.add` add a new `auto_password` parameter to generate a random password when a user is created
- use this parameter (`auto_password`) in user_list.js
- change mail content et password page on first login
2024-06-28 18:56:28 +02:00
plegall 831e876af0 fixes #2169 sync metadata, limit to 500 image_ids per request 2024-06-19 14:59:43 +02:00
plegall f0ed96d93c fixes #1296 avoid posting page form before AJAX calls are finished 2024-06-19 14:48:53 +02:00
Linty cd8ba0a456 issue #2158 fix duplication of the icon crown and name when saving 2024-06-14 15:28:07 +02:00
Linty 27cd5cde9e related to #2158 update user and guest pop in
- Implementation of a new modal for modifying a user or guest
- Addition of a function to allow plugins to add a tab to the new user modal
- Fix bug: "badger-number" is updated when a user is added or deleted
- Fix bug: When the user who is editing has permissions to delete the user he is modifying, the delete icon is now displayed correctly
- Added a new api method for modifying the main user and generating a link to reset a password
- Passed $conf[‘webmaster_id’] in database configuration
2024-05-31 18:12:52 +02:00
Linty 0c53880707 fixes #2149 reset the create sub-albums button click event
After an ajax request we need to reset some button events
2024-04-17 11:52:34 +02:00
Linty 4d26c62470 issue #2132 album selector hierarchy added to search page 2024-03-08 15:55:43 +01:00
Linty 0c2b0175dd fixes #2119 issue #2120 uses nodes to update album UI
As we're using selectize.js to display the albums, we need to use the methods provided by selectize.js to update the data returned by the Piwigo API.
Bug correction: when moving an album, the "sub-albums" label disappeared.
2024-02-19 16:53:41 +01:00