Jeremy Stretch
1b753ed5bc
Closes #17725 : Clean up import statements ( #17728 )
...
* #17725 : Resolve all F401 errors
* Tweak noqa designation
2024-10-10 14:52:47 -04:00
Jeremy Stretch
6a8e455294
Merge branch 'develop' into feature
2024-09-03 11:59:59 -04:00
Brian Candler
eb61a3fbf8
Hide exception in ObjectCountsWidget for models without a xxx_list view function ( #17342 )
...
* Hide exception in ObjectCountsWidget for models without a `xxx_list` view function
Fixes #17341
* Disable hyperlink for invalid view names
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-09-03 09:38:06 -04:00
Jeremy Stretch
fbdc68851b
Merge branch 'develop' into feature
2024-08-29 10:51:38 -04:00
Jeremy Stretch
eae4e44601
Fixes #17230 : Ensure consistent rendering for all dashboard widget colors
2024-08-27 10:14:07 -04:00
Jeremy Stretch
c0319de7c6
Merge branch 'develop' into feature
2024-07-26 16:39:58 -04:00
Arthur Hanson
5162179a27
16867 render dashboard if model no longer available
2024-07-26 16:20:46 -04:00
Arthur Hanson
ae9bc91d15
16867 render dashboard if model no longer available
2024-07-10 08:39:40 -04:00
Jeremy Stretch
3d23f9c099
Merge branch 'develop' into feature
2024-07-09 15:16:05 -04:00
Jeremy Stretch
02d8f90537
Fixes #16813 : Fix ordering of bookmarks in dashboard widget when filtering by object type
2024-07-04 08:23:05 -04:00
Jeremy Stretch
c23b62287a
Merge branch 'develop' into feature
2024-06-24 15:40:43 -04:00
Julio Oliveira at Encora
317b8dc2a5
16256 - Allow alphabetical ordering of bookmarks on dashboard ( #16426 )
...
* Added alphabetical ordering of bookmarks.
* Addressed PR comments.
* Rename choice constants & fix unrelated typo
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-06-11 09:21:24 -04:00
Jeremy Stretch
c60e7254c8
Closes #15908 : Establish canonical & local sources for release info ( #16420 )
...
* Closes #15908 : Establish canonical & local sources for release info
* Update references to settings.VERSION
2024-06-07 13:41:48 -04:00
Jeremy Stretch
ef64ff2d63
Fixes #16312 : Fix object list navigation for dashboard widgets
2024-05-31 13:16:41 -04:00
Arthur Hanson
dfa9d69a3f
15815 convert dashboard widgets for users/groups ( #15839 )
...
* 15815 convert dashboard widgets for users/groups
* 15815 review fixes
* 15815 catch DoesNotExist for widget content type
* 15815 add logging
2024-05-01 09:56:46 -04:00
Jeremy Stretch
7d87ab0894
Move object_type_identifier() & object_type_name() to utilities.object_types
2024-03-22 08:59:52 -04:00
Jeremy Stretch
6687d2b0a8
Rename content_type_identifier() and content_type_name()
2024-03-22 08:59:52 -04:00
Jeremy Stretch
ff36a6c70a
Move dict_to_querydict() and normalize_querydict() to utilities.querydict
2024-03-22 08:59:52 -04:00
Jeremy Stretch
59dfc72449
Move utilities.utils.get_viewname() to utilities.views
2024-03-22 08:59:52 -04:00
Jeremy Stretch
8b348d30e1
Move choice sets from utilities.choices to netbox.choices
2024-03-22 08:59:52 -04:00
Jeremy Stretch
903f02ff01
Rename ContentType proxy model to ObjectType
2024-03-04 08:33:44 -05:00
Jeremy Stretch
703791326d
Merge branch 'develop' into feature
2024-02-21 16:24:23 -05:00
Arthur Hanson
16712ad8d9
15094 Add missing gettext to error strings for internationalization ( #15155 )
...
* 15049 add missing gettext to error strings
* 15049 add missing gettext to error strings
* 15094 review change
* 15094 review change
* Formatting cleanup
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-02-20 09:44:02 -05:00
Jeremy Stretch
5272e9e2db
Closes #14740 : Remove BootstrapMixin ( #14841 )
...
* Introduce custom form widget templates to apply CSS classes
* Apply both mandatory and optional CSS classes to form widgets
* Omit required & placeholder attrs
* Move annotation of field validation failures to CSS
* Remove BootstrapMixin class
* Remove obsolete ComponentTemplateImportForm class
* Remove obsolete custom forms for login & password change
* Clean up obsolete accommodations for 'required' widget attr
2024-01-19 14:02:33 -05:00
Jeremy Stretch
d7179282e6
Closes #14153 : Filter ContentTypes by supported feature ( #14191 )
...
* WIP
* Remove FeatureQuery
* Standardize use of proxy ContentType for models
* Remove TODO
* Correctly filter BookmarksWidget object_types choices
* Add feature-specific object type validation
2023-11-16 12:12:51 -05:00
Jeremy Stretch
196964ad77
Closes #13427 : Public model registration ( #14152 )
...
* Initial work on #13427
* Clarify documentation
* Reference public models registry when populating models for ConfigTemplate context
2023-11-03 10:32:59 -04:00
Jeremy Stretch
03211beeaa
Fixes #12219 : Ensure dashboard widget heading text has sufficient contrast ( #13753 )
...
* Fixes #12219 : Ensure dashboard widget heading text has sufficient contrast in both light & dark modes
* Change foreground color for teal background
2023-09-13 10:56:03 -04:00
Jeremy Stretch
7d9df4bc85
Fixes #13513 : Prevent exception when rendering bookmarks widget for anonymous user
2023-08-23 10:53:56 -04:00
Jeremy Stretch
09795ead78
Merge branch 'develop' into feature
2023-07-11 10:09:26 -04:00
Jeremy Stretch
bcbff57394
Closes #8248 : User bookmarks ( #13035 )
...
* Initial work on #8248
* Add tests
* Fix tests
* Add feature query for bookmarks
* Add BookmarksWidget
* Correct generic relation name
* Add docs for bookmarks
* Remove inheritance from ChangeLoggedModel
2023-06-29 14:36:11 -04:00
Jeremy Stretch
b1c1b1bbbd
Fixes #12977 : Fix URL parameters for object count dashboard widgets ( #12991 )
...
* Fixes #12977 : Introduce dict_to_querydict() to ensure proper handling of QueryDicts
* Remove unused import
2023-06-26 14:21:26 -04:00
jeremystretch
b72b16df2e
Closes #12599 : Apply filter parameters to links in object count dashboard widgets
2023-05-30 16:31:34 -04:00
jeremystretch
7fbf519698
Fixes #12742 : Object counts dashboard widget should support URL-compatible query filters
2023-05-30 15:44:43 -04:00
Arthur
edc032c351
12594 add config context to object count / list widget
2023-05-16 10:52:23 -04:00
Arthur Hanson
1e5d1b4a76
12433 update object list widget to correctly parameterize urls ( #12434 )
...
* 12433 update object list widget to correctly parameterize urls
* Update netbox/extras/dashboard/widgets.py
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
* 12433 fix indent
* Correct per_page query parameter
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-05-03 09:20:53 -04:00
jeremystretch
c7e54a7c2d
Fixes #12384 : Add a three-second timeout for RSS reader widget
2023-05-01 16:19:39 -04:00
kkthxbye-code
4e4835c69f
Add ObjectChange as a valid option for ObjectListWidget and ObjectCountsWidget
2023-04-28 12:17:39 +02:00
jeremystretch
d97bee8b19
Fixes #12299 : Fix object list widget support for filtering by multiple values
2023-04-21 11:54:28 -04:00
jeremystretch
6b54afddc3
Closes #12136 : Extend object count & list widgets to support filters
2023-04-03 15:02:11 -04:00
jeremystretch
6f01eeb418
Closes #12107 : Document support for plugin-provided dashboard widgets
2023-04-03 14:15:18 -04:00
jeremystretch
8823cb582f
Fixes #12103 : Limit the types of objects available for object count & list widgets
2023-03-31 15:30:40 -04:00
jeremystretch
1c50173427
Fixes #12106 : Fix exception when saving dashboard widget with minimum width/height
2023-03-31 09:34:50 -04:00
jeremystretch
7fa19a6990
Set user agent for RSS feed requests
2023-03-30 12:44:36 -04:00
jeremystretch
012a002581
Fixes #12061 : Improve handling of insufficient permissions for widget content
2023-03-30 10:03:41 -04:00
jeremystretch
703eb12039
Closes #12062 : Avoid caching invalid RSS feed content
2023-03-27 09:29:51 -04:00
jeremystretch
6d8c168640
#9416 : cleanup & widget improvements
2023-03-22 15:44:01 -04:00
Jeremy Stretch
87847ec2e6
Closes #11826 : RSS feed widget ( #11976 )
...
* Add feedparser as a dependency
* Introduce RSSFeedWidget
* Clean up widget templates
2023-03-14 11:59:27 -04:00
jeremystretch
041be7d518
Closes #11893 : Convert ChangeLogWidget for use with all models
2023-03-14 08:39:18 -04:00
Jeremy Stretch
f5869e7ec3
Closes #9416 : Dashboard widgets ( #11823 )
...
* Replace masonry with gridstack
* Initial work on dashboard widgets
* Implement function to save dashboard layout
* Define a default dashboard
* Clean up widgets
* Implement widget configuration views & forms
* Permit merging dict value with existing dict in user config
* Add widget deletion view
* Enable HTMX for widget configuration
* Implement view to add dashboard widgets
* ObjectCountsWidget: Identify models by app_label & name
* Add color customization to dashboard widgets
* Introduce Dashboard model to store user dashboard layout & config
* Clean up utility functions
* Remove hard-coded API URL
* Use fixed grid cell height
* Add modal close button
* Clean up dashboard views
* Rebuild JS
2023-02-24 16:04:00 -05:00