Commit 062f46a
ENG-1638 Add view-only notice for imported nodes (#966)
* ENG-1638 Add view-only notice for imported nodes in Discourse context panel
Adds an amber "View only" badge with an info tooltip to the Discourse
context view when the active file is an imported node. The tooltip
(shown on hover or click) displays the source space and warns that
direct edits will be overwritten on refresh. Tooltip uses explicit
dark/light-adaptive colours for readability in both Obsidian themes.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* address PR comments and increase contrast
* use setTooltip
---------
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 9a43f51 commit 062f46a
1 file changed
Lines changed: 28 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
26 | 41 | | |
27 | 42 | | |
28 | 43 | | |
| |||
211 | 226 | | |
212 | 227 | | |
213 | 228 | | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
214 | 240 | | |
215 | | - | |
| 241 | + | |
216 | 242 | | |
217 | 243 | | |
218 | 244 | | |
| |||
0 commit comments