Commit 75dc929
committed
feat: Copy functions to all keys when converting list to dict pattern
When converting from list pattern to dict pattern (selecting group_by),
copy the current function list to ALL new dict keys instead of creating
empty lists for keys after the first one.
This provides better UX - users can start with the same functions on all
channels/wells/etc and then customize per-key as needed, rather than
having to re-add functions to each key manually.
Changes:
- List-to-dict conversion: Copy current_functions to all component_keys
- Adding new components: Copy from first non-empty existing component
- Fallback to empty list only if no reference pattern exists1 parent cfdd1e9 commit 75dc929
1 file changed
Lines changed: 21 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1805 | 1805 | | |
1806 | 1806 | | |
1807 | 1807 | | |
1808 | | - | |
| 1808 | + | |
1809 | 1809 | | |
1810 | | - | |
1811 | | - | |
| 1810 | + | |
| 1811 | + | |
1812 | 1812 | | |
1813 | 1813 | | |
1814 | 1814 | | |
| |||
1837 | 1837 | | |
1838 | 1838 | | |
1839 | 1839 | | |
| 1840 | + | |
| 1841 | + | |
| 1842 | + | |
| 1843 | + | |
| 1844 | + | |
| 1845 | + | |
| 1846 | + | |
| 1847 | + | |
| 1848 | + | |
1840 | 1849 | | |
1841 | 1850 | | |
1842 | 1851 | | |
| |||
1852 | 1861 | | |
1853 | 1862 | | |
1854 | 1863 | | |
1855 | | - | |
1856 | | - | |
1857 | | - | |
| 1864 | + | |
| 1865 | + | |
| 1866 | + | |
| 1867 | + | |
| 1868 | + | |
| 1869 | + | |
| 1870 | + | |
| 1871 | + | |
| 1872 | + | |
1858 | 1873 | | |
1859 | 1874 | | |
1860 | 1875 | | |
| |||
0 commit comments