Commit d3691fd
authored
feat: edit exercise button (#290)
* feat: add exercise guide and update ActionBar (#290)
* Introduced a new guide for adding and editing exercises in Starklings.
* Enhanced ActionBar with an "Add Exercise" button that opens the guide in a new tab.
* Updated Workspace component to handle the new button functionality.
* feat: enhance exercise editing capabilities in Starklings
* Added quick edit buttons for exercises and hints in the ActionBar, visible when connected to GitHub.
* Implemented functionality to open the corresponding files directly in the user's GitHub fork for easy editing.
* Updated the add_exercises.md guide to include new editing workflows and benefits of the quick edit system.
* Improved Workspace component to support new edit actions and detect GitHub connection status.
* feat: unify exercise editing options in Starklings
* Replaced multiple edit buttons with a single "Edit Options" button in the ActionBar for a streamlined user experience.
* Introduced a dialog that provides clear editing options and requirements when editing exercises and hints.
* Updated the add_exercises.md guide to reflect the new editing workflow and benefits of the unified editing system.
* Enhanced the Workspace component to support the new edit dialog and display the current exercise name.
* refactor: replace add_exercises.md with CONTRIBUTION_GUIDE.md
* Deleted the outdated add_exercises.md file and replaced it with a new CONTRIBUTION_GUIDE.md that consolidates instructions for adding and editing exercises in Starklings.
* Updated ActionBar and Workspace components to reflect the new guide and ensure users are directed to the correct documentation for exercise contributions.
* Translated relevant text in the ActionBar from Spanish to English for consistency and improved accessibility.
* refactor: update ActionBar edit button for improved clarity
* Replaced the "Edit options" tooltip with a simplified "Edit" tooltip for the edit button in the ActionBar.
* Adjusted the layout to enhance user experience and maintain consistency in the interface.
* docs: add EXERCISE_CONTRIBUTION_GUIDE.md for exercise management
* Introduced a comprehensive guide detailing the process for adding and editing exercises in the Starklings project.
* Updated the ActionBar to remove the outdated edit options dialog reference.
* Modified the Workspace component to link to the new exercise contribution guide, ensuring users have access to the latest instructions for exercise contributions.
* refactor: simplify handleEditExerciseClick in Workspace component
* Removed unnecessary conditional check in handleEditExerciseClick, allowing direct opening of the GitHub edit link for exercises.
* Streamlined the code for improved readability and efficiency.
* fix: add conditional check in handleEditExerciseClick for GitHub link
* Implemented a conditional check to ensure data.path is defined before attempting to open the GitHub edit link in handleEditExerciseClick.
* This change prevents potential errors when the path is not available, enhancing the robustness of the Workspace component.
* resolve comments
* resolve comments
* update GitHub username
* remove new line
* add new line1 parent ca1d287 commit d3691fd
2 files changed
Lines changed: 361 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
0 commit comments