Commit Graph

14 Commits

Author SHA1 Message Date
shamoon
1f8546ee33 Refactor, consistent naming 2024-08-27 08:04:02 -07:00
Jacobo de Vera
bb5ba4f421 Apply suggestions from code review
Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
2024-08-27 12:34:23 +01:00
Jacobo de Vera
7b069cc51f Change: Use the absence of "field" to refer to the root of customapi response 2024-08-26 23:47:34 +01:00
Jacobo de Vera
9b79d71ac7 Fix: Check explicitly for arrays and strings on size formatter
"length" in data was a brittle check that failed for scalar values.
2024-08-26 23:38:45 +01:00
Jacobo de Vera
2a94c465bd Feature: Support selecting the top level of a Custom API response
Some APIs return arrays at the top. With this change, a customapi widget
can select the top level object/array.

This is particularly useful when combined with the `size` formatter, but
can also be used for APIs that return scalar values directly.
2024-08-26 19:38:48 +01:00
Jacobo de Vera
4318cd6537 Feature: Add size formatter
The `size` formatter returns the length of an array or string, or the
number of keys in an object.

Some APIs do not return a summary of their contents but only the full
list of contents. The `size` formatter can be used to still show such
count on a widget.
2024-08-26 19:36:53 +01:00
sgrtye
4dca4cc892 Feature: Add list view for custom api (#2891)
---------

Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
2024-02-14 23:18:37 -08:00
0phoff
7837864841 Enhancement: locale option for date & relativeDate format (#2658) 2024-01-17 09:23:11 -08:00
Mohamed Aziz Ben Aissa
fc67e1a986 Feature: Added timeStyle to date format for custom API (#2294)
* Add timeStyle option to custom API date format

* Update documentation
2023-11-09 22:57:14 +02:00
Kirill Kuznetsov
3c4818a2b4 Feature: add date formatting option in custom api (#2228) 2023-10-23 16:54:04 -07:00
shamoon
19c25713c4 Run pre-commit hooks over existing codebase
Co-Authored-By: Ben Phelps <ben@phelps.io>
2023-10-18 09:49:33 -07:00
shamoon
cde8c658ae Fix duplicate keys on customapi widget 2023-09-15 07:47:10 -07:00
Greg Look
eb2b37063f Enhancement: add remap, scale, and suffx to customapi fields (#1958) 2023-09-14 23:50:54 -07:00
Denis Papec
fc7e73eba2 Added custom API widget (#1858)
* Added custom API widget

* Rename custom widget to customapi

---------

Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
2023-08-25 23:39:15 -07:00