-
Notifications
You must be signed in to change notification settings - Fork 239
feat: DM inline field name edit COMPASS-9798 #7454
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
Changes from all commits
169cf7a
7fffb59
3ba08f8
b3ab579
4388560
355934b
eaf8089
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,7 +13,7 @@ import type { | |
| Relationship, | ||
| } from '../services/data-model-storage'; | ||
| import { traverseSchema } from './schema-traversal'; | ||
| import { areFieldPathsEqual } from './utils'; | ||
| import { areFieldPathsEqual, isIdField } from './utils'; | ||
|
|
||
| const NO_HIGHLIGHTED_FIELDS = {}; | ||
|
|
||
|
|
@@ -100,6 +100,7 @@ export const getFieldsFromSchema = ({ | |
| selected: | ||
| !!selectedField?.length && | ||
| areFieldPathsEqual(fieldPath, selectedField), | ||
| editable: !isIdField(fieldPath), | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are we sure we want to exclude There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure.. would we then need to go into validating the collection and highlighting if it's missing _id because it was renamed? I'd rather wait if we get requests for this. On the other hand, changing the type might be a valid use-case, especially because we create this field automatically for a new collection 🤔 . There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. At the moment this is in line with the sidebar behaviour ( |
||
| variant: | ||
| highlightedFields.length && | ||
| highlightedFields.some((highlightedField) => | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.