Skip to content

Commit

Permalink
feat: support validation and error message handling
Browse files Browse the repository at this point in the history
1. **Add Copy Button for Error Messages**
   - Added a copy button to error message tooltips for easier copying.
   - Resolves: #102

2. **Adjust Tooltip Styles**
   - Updated tooltip styles for better readability.
   - Resolves: #101

3. **Update Validation Status Handling**
   - Moved `setProcessStatus` and `setResultStatus` functions to `MeiTools.ts` for improved organization.
   - Resolves: #99

4. **Reformat Code**
   - Reformatted files for consistency and readability.

5. **Refactor Mei Validation Class**
   - Created a `MeiValidation` class to streamline validation logic.
   - References: #100
  • Loading branch information
yinanazhou committed Jul 5, 2024
1 parent 1edfcb8 commit 27146fb
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 2 deletions.
45 changes: 45 additions & 0 deletions Cress-gh/assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -665,3 +665,48 @@ a:hover {
width: 100%;
height: 100%;
}

/* ----------------------- */
/* Section: Invalid Cell
/* ----------------------- */

.invalid-container {
display: flex;
align-items: flex-start;
justify-content: space-between;
}

.tooltip-container {
display: flex;
align-items: flex-start;
justify-content: end;
max-width: 50%;
}

.tooltip-container .tooltip-text {
display: none;
position: relative;
background-color: #fff8c5;
border: 1px solid #d4a72c;
padding: 5px;
margin-top: 5px;
margin-bottom: 5px;
z-index: 10;
color: black;
border-radius: 5px;
}

.tooltip-container:hover .tooltip-text {
display: flex;
flex-direction: column;
align-items: flex-end;
}

.tooltip-container .tooltip-icon {
width: 20px;
margin: 5px;
}

.tooltip-copy:hover {
cursor: pointer;
}
3 changes: 3 additions & 0 deletions Cress-gh/assets/img/copy-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions Cress-gh/assets/img/info-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions Cress-gh/editor.js

Large diffs are not rendered by default.

0 comments on commit 27146fb

Please sign in to comment.