-
Notifications
You must be signed in to change notification settings - Fork 18
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
Is08 channel mapping cr - filter matrix + rename label feature #53
Conversation
take commit that fix the row span from sony
merge sony git
Thanks for opening the PR, @orfar1994. I have had a play with this. The logic of both "personal" names and filtering is basically fine, but I have some concerns about the user interface. Rename UI
My suggestion is that the rename functionality should move into the (now interactive) tooltip for the cell. The "personal" name in the tool tip can have edit and delete icons next to it and the edit field can be a sensible consistent width. (I am also not sure about the word "personal", but this can be easily changed later obviously. Maybe "local", "user", "custom",... Brainstorm required!) |
so the "personal" title (with the edit & delete icon) in the tooltip will be visible always even if we don't have personal name ? |
Following on... Filtering
More to come... |
I wasn't completely sure, what do you think? Probably needs prototyping to see. |
One issue with using tooltips a lot in this page is how the app performs on touchscreen (tablet). The whole app is already not perfect on small screen of course, but it is something to consider... |
Rename UI
|
What do you think? I think that could work well. We can discuss on today's call. |
|
I agree. it looks better now. |
OK, that could work... I assume the delete (bin) icon would be hidden if there isn't currently a user-provided name? We certainly need to be consistent in how we refer to the two kinds of names/labels. Suggestions instead of "personal":
Alternatively, if we use "Name" to mean user-provided-if-present-otherwise-underlying-name, (and this ties in with only having a single Filter that searches both) and have a field for the underlying name that appears/disappears depending on whether there is a user-provided name, suggestions for that underlying name field:
None of these are great... |
Also, pressing Return in the edit field should choose the ✔️ so you don't have to click it explicitly to set the new value. |
Hi Or, thanks for all the work on this.
Are you OK to resolve this issue? |
merge sony to master.
…the max length 2. Refactor and use LinkChipField rather than ChipFunctionalLabel (which restores the margin applied by ChipField vs Chip) 2. Replace expressions like (foo ? foo : bar) with idiomatic and more efficient (foo || bar) 3. Remove unnecessary backticks
2. Use 'channel label' rather than 'channel name' 3. Reclaim some horizontal whitespace by using arrow function expressions for the tooltip title functions
e5919eb
to
cc6578e
Compare
I've had a go at this over the course of several commits. |
…ement that they need to be a single element than can hold a ref.
Reorder parameters to getCustomName/getCustomChannelLabel functions to match hierarchy
…ing of the expanded/collapsed ephemeral setting which was reversed
…d 'Match Any' (or) and tweak some other storage and UI names for better consistency.
There was an issue when e.g. an output name filter and a channel label filter were specified this mode, because filterIOByChannels was called as a second step (and thus always effectively applied with and). Removing this function will simplify the user experience, make filtering consistent with the List views in the rest of the app, provided by the dataProvider, and simplify code maintenance.
…wing naming style of react-admin useRecordContext, etc.
… of concerns, improving UX as a result
… when you're tracking along rows or columns of the matrix, using popper.js options
…ns still are, but leaving that for now!
Thank you, @orfar1994, @rhastie. This is a great addition! |
This PR include 2 features:
it will be saved locally. the user can do it by clicking the output/input/channel name (the name text became button when hover it).
when the user clicking the name button. the text become editable and the user can edit it.
The user can save it locally be pressing the
DoneIcon
, cancel editing by pressingClearIcon
(the name will be the last name that saved) and return to the original name by pressingDeleteIcon
.