aj3423/SpamBlocker

some UI feature

Closed this issue ยท 18 comments

I have 3000 and more spam numbers.
Maybe to hide all spam numbers from 'settings - list'. And to make a special list only for spam numbers.

No matter how many numbers, it won't exceed 60% of the screen height, and in the latest version there are scrollbars, they are scrollable, I don't think it's necessary to hide them.

YES, confirm. This is working well as you say. I didn't know about it :)

you can download the csv and import it manually, it'll be available in the next release.
We are waiting for this feature ๐Ÿ‘

In far future, make PLS 'search by spam number' in 'spam numbers database /chapter'

Supported in the action build: https://github.com/aj3423/SpamBlocker/actions/runs/10957829013
A new context menu item "Search Rule".

A new context menu item "Search Rule".

I tested, this is working. But I don't know how to close this 'search-window'. It is always opened.
I think - a touching in any other place must close this opened 'search-window'. Do you have another logic?

Good idea, currently it's swipe left, but I'll change it to close on losing focus, it'll more convenient and intuitive.

Yes, thanks. This is working.
But your previous 'swipe left' is also very useful.
Your 'swipe left' is the main gesture for this app. Now I know about this. :)

Some minor remark. In rules for SMS:
Field 'Description' - is abbreviated to one line in 'list-view of SMS-rules'
Field 'SMS Content' - is NOT abbreviated to one line in 'list-view of SMS-rules'. If I have several words in field 'SMS Content' - I see these ALL words after finished editing.
But it is very unusual situation. Mostly this field will have one word + regexp. I have no ideas what way is more correct (abbreviate / don't abbreviate).

No need to support swipe left since it will disappear when losing focus.

The description is supposed to be simple, one line is enough. But the regex can be very long, it's displayed in multi-lines, up to 10 lines.

Some minor remarks.
I have a lot of records in the 'Number Rules' and "Message Rules" sections.
I try to scroll the settings down. I must catch the narrow string "Message Rules" when scrolling down.
The best way is to increase the height of the line 'Message Rules' (and maybe also 'Number Rules').
IMG

You don't sort 'Message Rules'. Why?

P.S.
I did export settings in JSON. Rework (add) my big spam-number-base. I reset ID from 1 to 2000, and imported the updated JSON.
All are correct. Your app checks the last biggest ID, and adds the next correctly. Thanks.

I try to scroll the settings down. I must catch the narrow string "Message Rules" when scrolling down.

Try the scrollbar, put your finger at the most right edge of the screen and start dragging up/down.

You don't sort 'Message Rules'. Why?

Actually they are sorted, in the order of: priority -> description -> regex

BTW, those regex like 0800.... will never work, the leading 0 is ignored, unless the regex flag "Raw Number" is set. I suppose these rules were imported, not manually added, why not import them as a single rule, why 2000 rules?

I suppose these rules were imported, not manually added, why not import them as a single rule, why 2000 rules?

Yes, imported.
Do you mean to use such way?
Phone number: 411111111|4111111112|4111111113|4111111114|4111111115
and ...
And how many numbers can I set? 1-2 thousand ? It will be very usefull.

Yeah, it looks like (11|22|33...), I mean the feature "Import .csv as a single rule" by long pressing the "New" button.
2000 numbers should be fine, but you don't want to edit it later, since it's super long.

you don't want to edit it later, since it's super long.

Yes, I see a way as to insert edited (previously updated in other program) block in field 'Phone Number' with 2000 numbers
I will try csv-import.
And I remove first '0' from imported numbers.
Thanks.

CSV-import works well. Thanks.

It is beneficial to display the quantity of 'Number Rules' and to check every new rule for duplicates (previously entered rules).
Now the app allows duplicates of rules.

Added in the action build: https://github.com/aj3423/SpamBlocker/actions/runs/11033104414

"Delete All(30) Rules" and "Delete Duplicated Rules"

Yes, thanks. This is working