Andrew Dolgov
2d041f7d28
use server-side localized formatting for matching rule to display as a tooltip (for now)
2025-03-30 20:41:50 +03:00
Andrew Dolgov
b4962b670d
stop sending matched content twice for the tooltip, use smaller objects containing only regular expression and rule type
2025-03-30 20:21:06 +03:00
wn_
10c488e1d0
Strip '[\r\n\t]' from entry content during filter test.
...
This is to help get the content and regex match strings a bit closer.
2025-03-29 10:36:08 +00:00
Andrew Dolgov
043162b0eb
enforce maximum length on resulting rule regexp match, highlight based on strings with stripped tags
2025-03-28 18:36:11 +03:00
Andrew Dolgov
42ea2ebec0
* fix filter test not returning anything for filters set for specific
...
feed ID
* show content preview after first matched rule, not article beginning
* show meaningful preview for filters matching on article link, tags,
and author
2025-03-28 16:51:15 +03:00
Andrew Dolgov
8986a3e7ee
add limited highlighting of filter test results based on matched rules
2025-03-28 07:59:46 +03:00
Andrew Dolgov
49766ab01f
filter test dialog improvements:
...
- properly return results for filter rules matching specific feeds or
categories
- fix test results never returned for Uncategorized
- show tooltip with specific word match and matched rule on resulting
item hover
2025-03-27 22:22:34 +03:00
Andrew Dolgov
5dcb8db933
allow setting update interval in subcribe to feed dialog
2025-03-19 12:47:10 +03:00
wn_
434da183e7
Support using phrases in searches (PostgreSQL only).
2025-03-18 00:31:23 +00:00
wn_
4053af899f
Some improvements in 'Feeds::_search_to_sql()'.
...
* Pass in the profile so some preferences can be retrieved correctly.
* Consistently use the owner UID that gets passed in (previously some session var uses).
2025-03-15 22:37:17 +00:00
Andrew Dolgov
d373c1f978
add Config::DISABLE_LOGIN_FORM to allow limiting logins to SSO providers
2025-03-14 11:43:25 +03:00
Andrew Dolgov
1fc4eed6cd
Merge branch 'feature/time-comparison-gen' into 'master'
...
Add and use 'Db::past_comparison_qpart()'.
See merge request tt-rss/tt-rss!105
2025-03-08 11:58:11 +00:00
wn_
89b0332d38
Add and use 'Db::now_comparison_qpart()'.
...
This introduces a helper to build a query part comparing a field against a past datetime (determined by '$now - $some_interval'), eliminating certain boilerplate code.
2025-03-04 18:34:35 +00:00
wn_
7e335de7b8
Get rid of the 'language' session variable.
...
It had issues (no profile usage, only set at login), so it's cleanest to just replace its one usage with 'Prefs::get()'.
2025-03-04 02:27:28 +00:00
wn_
f8198933b1
Use the fileinfo module for favicon validation in 'RSSUtils::update_favicon()'.
2025-02-25 20:23:17 +00:00
wn_
777c2b4c97
Move filter test results HTML building to the frontend.
2025-02-15 20:39:35 +00:00
wn_
e0d9ffcbc1
Only continue filter testing when there are likely more entries to check.
...
Prior to this, a filter test could needlessly result in up to 100 backend requests (limit 100, max_offset 10000) when the filter's associated feeds+categories have fewer than 10000 entries.
2025-02-15 16:51:25 +00:00
wn_
a34927d184
Clean up 'Pref_Filters::testFilterDo()'.
...
Use ORM, drop the '5 rule' limit, etc.
2025-02-08 16:53:12 +00:00
wn_
d361c1c65d
Remove now-unused 'Config::ICONS_URL'.
2025-01-26 17:21:12 +00:00
wn_
7618101e33
Reduce use of legacy 'Config::ICONS_DIR'.
...
Also some minor cleanup in 'API#_get_config()'.
2025-01-26 17:19:12 +00:00
wn_
5a93056c1c
Fix setting a custom title when cloning a single filter.
2025-01-06 16:04:27 +00:00
wn_
e546e73914
Use 'clone' wording for filter duplication.
2025-01-06 15:49:40 +00:00
wn_
2eb3c150c2
Fix a return type warning in 'Pref_Filters'.
...
'Pref_Filters#get_details()' gets passed the ID of an existing filter, so we don't need to handle some edge case of it not existing.
2025-01-06 14:30:57 +00:00
wn_
0da9ef81bd
Prompt for the new filter name when only copying one.
...
This also reworks 'Pref_Filters' a bit so it's easier to retrieve filter titles.
2025-01-06 14:17:38 +00:00
wn_
91496a0d24
Add the ability to copy an existing filter.
2025-01-06 00:33:18 +00:00
Andrew Dolgov
e990a3c00f
Merge branch 'feature/php-misc' into 'master'
...
More native typing, use some new PHP stuff
See merge request tt-rss/tt-rss!88
2024-12-16 06:29:28 +00:00
wn_
f9b2291c28
Don't bother passing unused arguments to 'TimeHelper::make_local_datetime()'.
...
There's no point in passing '$long' unless '$no_smart_dt' is set to 'true'.
2024-12-15 18:39:03 +00:00
wn_
119c7f13dc
Consistently handle the 'smart' display of default/never dates.
2024-12-15 17:47:27 +00:00
wn_
6f8f1b30d5
minor PHPDoc cleanup in PluginHost
2024-12-15 16:41:45 +00:00
wn_
cfbbb9d714
Clean up some virtual feed stuff in PluginHost.
...
Among other things, this makes 'PluginHost->add_feed()' return false if the feed was not added.
2024-12-15 16:09:42 +00:00
wn_
62a6191f04
Deal with FeedEnclosure property accessed before initialization.
2024-12-15 13:43:49 +00:00
wn_
18b17cbc83
Revert some stuff based upon feedback
2024-12-15 13:39:54 +00:00
wn_
57dd754e07
Use a native DNF type for 'PluginHost->get_feed_handler()'.
2024-12-14 12:26:59 +00:00
wn_
a1bd6cea1b
Use native typing in more places and clean up 'FeedEnclosure' a bit.
2024-12-14 12:26:59 +00:00
wn_
333bab90a7
Remove use of 'ReturnTypeWillChange'.
...
'ReturnTypeWillChange' was a workaround needed until we reached PHP 8.0, which introduced union types and allowed alignment with 'SessionHandlerInterface'.
2024-12-14 12:26:59 +00:00
wn_
1742fb65c5
Use the spread operator instead of 'array_merge' in more places.
...
PHP 8.1 introduced support for merging string-key arrays (last array with a wins).
2024-12-14 12:26:59 +00:00
Andrew Dolgov
e473d8ecc5
show amount of stored article in prefs feed tree
2024-12-14 11:37:58 +03:00
wn_
cd2c10f9f7
Bump the minimum required PHP version to 8.2.0.
...
Discussion: https://gitlab.tt-rss.org/tt-rss/tt-rss/-/merge_requests/85
2024-12-09 17:53:23 +00:00
wn_
b5777b5a7c
Add+use FeedParser::FEED_UNKNOWN
2024-11-26 16:50:51 +00:00
wn_
d85bdcfd78
Fix RDF feed support in FeedParser.
2024-11-26 16:45:03 +00:00
Andrew Dolgov
aaeabbc961
API: allow catchup for search results (bumps api level to 22)
2024-11-25 19:47:28 +03:00
wn_
667528d5b9
Use PHP 8 'str_' functions.
...
A few more characters in some places, but helps with readability.
2024-11-24 13:59:29 +00:00
wn_
9b0baf9b32
Use match expressions in some places.
2024-11-24 13:45:26 +00:00
Andrew Dolgov
43e8864ead
allow nullable password in auto_create_user for backwards compatibility
2024-11-24 12:55:59 +03:00
Andrew Dolgov
b089d67e26
Merge branch 'getfiltertree-eldritch-horrors' into 'master'
...
getfiltertree: switch to ORM and simplify code
See merge request tt-rss/tt-rss!79
2024-11-24 06:37:31 +00:00
Andrew Dolgov
aad69b7ca6
make filter search properly case-insensitive
2024-11-24 09:24:20 +03:00
wn_
abcd0e8ba2
Use native union types in most places.
2024-11-23 17:43:24 +00:00
Andrew Dolgov
1ce1aee40f
simplify resulting tree root object
2024-11-23 18:15:18 +03:00
Andrew Dolgov
6bc9097b0f
getfiltertree: switch to ORM and simplify code
2024-11-23 18:13:09 +03:00
Andrew Dolgov
d4636716fb
collapse actions summary list in filter tree if 'toggle rule display' is disabled, remove label-specific icon display, simplify markup
2024-11-23 17:43:20 +03:00