Commit 5bdad42
Fix AI feature UX issues in chart creation flow
Three UX improvements for better AI feature accessibility:
1. Image Upload Lock Icon - Fixed alignment and popup navigation
- Repositioned lock overlay to top of container (40px padding)
- Changed lock icon to display:block for proper centering
- Added onclick handler to close popup and navigate to AI Settings in parent window
2. AI Chat Sidebar - Improved Settings/Chat section behavior
- Added Settings section with conditional collapse (collapsed when API key exists)
- Made Chat section grayed out when no API key configured
- Fixed incorrect URL (viz-ai-settings → visualizer-ai-settings)
- Added popup escape to all AI Settings links
3. Chart Creation Modal - Fixed auto-scroll behavior
- Removed scrollIntoView() that was hiding image upload section
- Modal now stays scrolled to top, making AI image upload visible by default
Files modified:
- classes/Visualizer/Render/Page/Types.php (lock icon alignment)
- classes/Visualizer/Render/Sidebar.php (Settings/Chat sections)
- js/frame.js (removed auto-scroll)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent a31a9a8 commit 5bdad42
3 files changed
Lines changed: 23 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
864 | 864 | | |
865 | 865 | | |
866 | 866 | | |
867 | | - | |
| 867 | + | |
868 | 868 | | |
869 | 869 | | |
870 | 870 | | |
871 | 871 | | |
872 | 872 | | |
873 | | - | |
874 | | - | |
875 | 873 | | |
876 | 874 | | |
877 | 875 | | |
878 | 876 | | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
879 | 880 | | |
880 | 881 | | |
881 | 882 | | |
| |||
904 | 905 | | |
905 | 906 | | |
906 | 907 | | |
907 | | - | |
| 908 | + | |
908 | 909 | | |
909 | 910 | | |
910 | 911 | | |
911 | 912 | | |
912 | 913 | | |
913 | 914 | | |
914 | 915 | | |
915 | | - | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
916 | 921 | | |
917 | 922 | | |
918 | 923 | | |
| |||
943 | 948 | | |
944 | 949 | | |
945 | 950 | | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
946 | 955 | | |
947 | 956 | | |
948 | 957 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
0 commit comments