-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
gui: add xattr filter editor (fixes #8660) #8734
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
I've had a quick look just at the GUI side of things.
Edit: |
1.) Probably. But the reasoning I'm not entirely behind. If I'm not wrong any browser post april-2016 has support for this, we talk about almost 7 years without updates. How far back do we go?...can't use this argument till eternity ;) |
For me, it's mainly about Internet Explorer. The current Web GUI supports IE11 which used to be the only browser bundled into some editions of Windows (e.g. Windows Server and the whole Enterprise LTSB/C line). This state has only started to change last and this year (with Enterprise LTSC 2021 and Server 2022 which come with Edge, although IE11 is still present). I don't think it's worth to break the perfectly functioning GUI in those systems just yet. Just for the record, IE11 still receives security updates, although it shouldn't really matter that much in this case, as we're talking about controlling a local application here. There's also the Android app but that's probably not important anymore, as support for pre-5 Android has recently been dropped in it, and the Android 5+ WebView does seem to support arrow functions. |
Textual update:
|
Thank you for all the fixes! Everything GUI-wise seems to work as expected (including in IE11) with the exception for the last item. Not a deal breaker, as the buttons are still functional. Just for the record, I test in Chromium using DevTools and toggling the device toolbar to switch to phone/tablet mode. Then, I set the screen size either to iPhone SE or responsive and shrink it horizontally. I would test and try to find the culprit to this one myself but I'll only have the time around the weekend or so. |
…ayout for smaller screens
* main: (48 commits) build: Use Go 1.19.6 for Windows build: Update dependencies gui, man, authors: Update docs, translations, and contributors gui: Remove duplicate Spanish (Spain) translation (fixes syncthing#8781) (syncthing#8782) gui: Add xattr filter editor (fixes syncthing#8660) (syncthing#8734) gui: Switch to Weblate for translations (syncthing#8777) all: Use new Go 1.19 atomic types (syncthing#8772) gui, man, authors: Update docs, translations, and contributors build: Update quic-go and pfilter for Go 1.20 (fixes syncthing#8768) (syncthing#8769) Add forgotten copyright notices cmd, docker: Updates for infrastructure cmd/ursrv: The driver import is important, though cmd/ursrv: Remove old, unused migration code cmd/ursrv: Harmonize timespan of charts cmd/ursrv: Remove broken and unsustainable join/leave chart cmd/ursrv: Fix broken block transfer chart gui, man, authors: Update docs, translations, and contributors gui: Fix broken link to Transifex in lang/README.txt (syncthing#8761) gui, man, authors: Update docs, translations, and contributors Handle relay connect timeout (fixes syncthing#8749) (syncthing#8755) ...
* main: (46 commits) build: Update dependencies lib/api: Expose `blocksHash` in file info (syncthing#8810) gui, man, authors: Update docs, translations, and contributors lib/discover: Don't leak relay-tokens to discovery (syncthing#8762) gui, man, authors: Update docs, translations, and contributors gui: Add Croatian (hr) translation template (syncthing#8801) build(deps): bump github.com/quic-go/quic-go from 0.32.0 to 0.33.0 (syncthing#8800) cmd/stupgrades: Cache should apply to HEAD as well as GET build: Add more GitHub Actions gui: Remove non-existent customicons.css file reference (fixes syncthing#8797) (syncthing#8798) Only fail after chmod error if permissions differ (e.g. on config file) (syncthing#8771) gui, man, authors: Update docs, translations, and contributors build: Use Go 1.19.6 for Windows build: Update dependencies gui, man, authors: Update docs, translations, and contributors gui: Remove duplicate Spanish (Spain) translation (fixes syncthing#8781) (syncthing#8782) gui: Add xattr filter editor (fixes syncthing#8660) (syncthing#8734) gui: Switch to Weblate for translations (syncthing#8777) all: Use new Go 1.19 atomic types (syncthing#8772) gui, man, authors: Update docs, translations, and contributors ...
### Purpose Discovered while working on the WebAuthn credentials table in #9175: there's a style on `td input[type="checkbox"]` that modifies margins for all checkboxes in `<table>`s. It looks like this style is specially tailored to the particular table that added it (PR #8734), so it should have a correspondingly special-purpose class to not accidentally apply it to other tables. As best as I could tell there are only 2 instances of `<input type="checkbox">` in `<td>`s, shown in the screenshots below. ### Testing - Open "Actions > Logging > Debugging Facilities" and observe the vertical spacing of the checkboxes. - Open "Edit Folder > Advanced", check "Sync Extended Attributes" or "Send Extended Attributes", click "Add filter entry" and observe the vertical spacing of the checkbox that appears. ### Screenshots #### Before   #### After Logs > Debugging Facilities now more compact:  Add filter entry unchanged: 
Purpose
Added a GUI element in the advanced folder configuration panel to be able to manipulate the extended attribute filter settings.
I intended to keep it as simple as possible, no automatic additions or other magic behind the screens. Mostly because I expect that the users who will use this will know what they are doing. But also because I'm not a fan myself of automatically added rules/lines when manipulating settings, unnecessary complexity. However, some information will still be shown when appropriate;
Otherwise empty rules are being cleaned up on saving the configuration and new entries are being pushed before a wild-card/any rule, if that one is present as last element.
Any further logic/validation is not present, on purpose.
Testing
Screenshots
Documentation
Supporting documentation is prepared as well, syncthing/docs#779