Skip to content

Conversation

ryan-pratt
Copy link
Contributor

Items were not being cleared when a screen is rendered, meaning that if you added an item that doesn't exist, the error alerting you to that fact would persist until you completely closed and reopened the screen (even after removing the bad item from the screen definition and clicking "save"). Clearing out screenItems when the screen definition is parsed fixes this, so all you have to do to clear the error is save the screen:

image image

@ryan-pratt ryan-pratt requested review from ryanmelt and clayandgen May 30, 2025 17:37
Copy link

codecov bot commented May 30, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.79%. Comparing base (7336229) to head (cb7b142).
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2101      +/-   ##
==========================================
- Coverage   79.80%   79.79%   -0.01%     
==========================================
  Files         633      633              
  Lines       47968    48026      +58     
  Branches      754      754              
==========================================
+ Hits        38281    38324      +43     
- Misses       9604     9619      +15     
  Partials       83       83              
Flag Coverage Δ
python 83.88% <ø> (+0.08%) ⬆️
ruby-api 78.69% <ø> (ø)
ruby-backend 82.99% <ø> (-0.09%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link

@@ -442,6 +451,7 @@ export default {
parseDefinition: function () {
// Each time we start over and parse the screen definition
this.clearErrors()
this.screenItems = []
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the actual fix. The rest of the changes are just linter things

@ryan-pratt ryan-pratt merged commit 8806f28 into main May 30, 2025
29 checks passed
@ryan-pratt ryan-pratt deleted the bug/screen-errors branch May 30, 2025 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants