Skip to content

AddBabyView testing#51

Merged
Calvin-Xu merged 60 commits intomainfrom
shryea/ui-tests
Mar 13, 2025
Merged

AddBabyView testing#51
Calvin-Xu merged 60 commits intomainfrom
shryea/ui-tests

Conversation

@shreyadsouza
Copy link
Copy Markdown
Contributor

@shreyadsouza shreyadsouza commented Mar 13, 2025

Merge AddBabyView Testing

Screenshot 2025-03-12 at 8 04 59 PM

This adds testing for AddBabyView, including delete baby functionality.

📝 Code of Conduct & Contributing Guidelines

By submitting creating this pull request, you agree to follow our Code of Conduct and Contributing Guidelines:

Calvin-Xu and others added 30 commits January 30, 2025 21:34
fixes REUSE testing error.
# *Name of the PR*

## ♻️ Current situation & Problem
*Link any open issues or pull requests (PRs) related to this PR. Please
ensure that all non-trivial PRs are first tracked and discussed in an
existing GitHub issue or discussion.*


## ⚙️ Release Notes 
*Add a bullet point list summary of the feature and possible migration
guides if this is a breaking change so this section can be added to the
release notes.*
*Include code snippets that provide examples of the feature implemented
or links to the documentation if it appends or changes the public
interface.*


## 📚 Documentation
*Please ensure that you properly document any additions in conformance
to [Spezi Documentation
Guide](https://github.com/StanfordSpezi/.github/blob/main/DOCUMENTATIONGUIDE.md).*
*You can use this section to describe your solution, but we encourage
contributors to document your reasoning and changes using in-line
documentation.*


## ✅ Testing
*Please ensure that the PR meets the testing requirements set by CodeCov
and that new functionality is appropriately tested.*
*This section describes important information about the tests and why
some elements might not be testable.*


## 📝 Code of Conduct & Contributing Guidelines 

By submitting creating this pull request, you agree to follow our [Code
of
Conduct](https://github.com/CS342/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md):
- [ ] I agree to follow the [Code of
Conduct](https://github.com/CS342/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md).
# *Name of the PR*

## ♻️ Current situation & Problem
*Link any open issues or pull requests (PRs) related to this PR. Please
ensure that all non-trivial PRs are first tracked and discussed in an
existing GitHub issue or discussion.*


## ⚙️ Release Notes 
*Add a bullet point list summary of the feature and possible migration
guides if this is a breaking change so this section can be added to the
release notes.*
*Include code snippets that provide examples of the feature implemented
or links to the documentation if it appends or changes the public
interface.*


## 📚 Documentation
*Please ensure that you properly document any additions in conformance
to [Spezi Documentation
Guide](https://github.com/StanfordSpezi/.github/blob/main/DOCUMENTATIONGUIDE.md).*
*You can use this section to describe your solution, but we encourage
contributors to document your reasoning and changes using in-line
documentation.*


## ✅ Testing
*Please ensure that the PR meets the testing requirements set by CodeCov
and that new functionality is appropriately tested.*
*This section describes important information about the tests and why
some elements might not be testable.*


## 📝 Code of Conduct & Contributing Guidelines 

By submitting creating this pull request, you agree to follow our [Code
of
Conduct](https://github.com/CS342/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md):
- [ ] I agree to follow the [Code of
Conduct](https://github.com/CS342/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md).

---------

Co-authored-by: Shreya D'Souza <55857093+shreyadsouza@users.noreply.github.com>
# Added AddBabyView, initial Firebase support

## 📝 Code of Conduct & Contributing Guidelines 

By submitting creating this pull request, you agree to follow our [Code
of
Conduct](https://github.com/CS342/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md):
- [x] I agree to follow the [Code of
Conduct](https://github.com/CS342/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md).
# Fully working examples for basic app workflow to be implemented

## ♻️ Current situation & Problem
* Waiting to merge previous PRs

## ⚙️ Release Notes 
* Added `AddWeightEntryView`, `BabyDebugDisplayView` that fully work
with Firebase as examples for other data entry views to be added;
updated AddDataView; a

* Data mapping from Firebase to Swift data model structs is ironed-out:

```swift
baby = try await standard.getBaby(id: babyId)
```

baby = try await standard.getBaby(id: babyId)

```swift
try await standard.addWeightEntry(entry, toBabyWithId: babyId)
```


![image](https://github.com/user-attachments/assets/fd28067e-3886-47d4-bf40-d312d528a7b3)

![image](https://github.com/user-attachments/assets/bbf251a5-53f1-4fa5-b046-93dc8581b3a2)

![image](https://github.com/user-attachments/assets/857c5b75-39bb-4870-9383-5b4439ea8ac2)

## 📚 Documentation
* TODO

## ✅ Testing
* Will follow up with test coverage.

## 📝 Code of Conduct & Contributing Guidelines 

By submitting creating this pull request, you agree to follow our [Code
of
Conduct](https://github.com/CS342/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md):
- [x] I agree to follow the [Code of
Conduct](https://github.com/CS342/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md).
# *Add Dehydration and Feed Sheets and Firebase Integration*

## ♻️ Current situation & Problem
This adds new views for data entry, which are presented as sheets when
users click various data entry options. It calls on functions within
FeedBridg Standard to integrate with Firebase.

## ⚙️ Release Notes 
This does not have any changes that will break the current
implementation, but rather adds more functionality.

## 📚 Documentation
None specific to this PR


## ✅ Testing
Builds successfully in XCOde. 


## 📝 Code of Conduct & Contributing Guidelines 

By submitting creating this pull request, you agree to follow our [Code
of
Conduct](https://github.com/CS342/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md):
- [ ] I agree to follow the [Code of
Conduct](https://github.com/CS342/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md).
# Calvin/Refactor Models & Cleanup

## ⚙️ Release Notes 
This PR updates the data models to use Int for storage using units
defined to be atomic from now on; downstream code affected are updated;
data entries views are now all prefixed with "Add" to be consistent.

## 📝 Code of Conduct & Contributing Guidelines 

By submitting creating this pull request, you agree to follow our [Code
of
Conduct](https://github.com/CS342/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md):
- [x] I agree to follow the [Code of
Conduct](https://github.com/CS342/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md).

---------

Co-authored-by: shreyadsouza <55857093+shreyadsouza@users.noreply.github.com>
# Merge visualizations into main dev branch

## Overview
This merges all required visualizations for stools, wet diapers, feeds,
and weights into the main dev branch, enabling the dashboard view to be
the default view.


**add screenshots here**

By submitting creating this pull request, you agree to follow our [Code
of
Conduct](https://github.com/CS342/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md):
- [x] I agree to follow the [Code of
Conduct](https://github.com/CS342/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md).

---------

Co-authored-by: Shreya D'Souza <shreyadsouza99@gmail.com>
Co-authored-by: shamit05 <54602838+shamit05@users.noreply.github.com>
# Fix many SwiftLint warnings

Fixed all outstanding warnings from our code.

## 📝 Code of Conduct & Contributing Guidelines 

By submitting creating this pull request, you agree to follow our [Code
of
Conduct](https://github.com/CS342/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md):
- [x] I agree to follow the [Code of
Conduct](https://github.com/CS342/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md).

---------

Co-authored-by: shreyadsouza <55857093+shreyadsouza@users.noreply.github.com>
# Add more APIs to FeedbridgeStandard

## 📝 Code of Conduct & Contributing Guidelines 

By submitting creating this pull request, you agree to follow our [Code
of
Conduct](https://github.com/CS342/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md):
- [x] I agree to follow the [Code of
Conduct](https://github.com/CS342/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md).

---------

Co-authored-by: shreyadsouza <55857093+shreyadsouza@users.noreply.github.com>
# Add final data entry views

## ⚙️ Release Notes 
* Add AddWetDiaperEntryView, AddStoolEntryView;
* Integrates into AddDataView


![image](https://github.com/user-attachments/assets/49a2b2a3-fd40-4518-a52d-971e9b5f4c28)


![image](https://github.com/user-attachments/assets/d49e9b3f-816f-4d82-acf9-97d6100b5386)

## 📝 Code of Conduct & Contributing Guidelines 

By submitting creating this pull request, you agree to follow our [Code
of
Conduct](https://github.com/CS342/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md):
- [x] I agree to follow the [Code of
Conduct](https://github.com/CS342/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md).

---------

Co-authored-by: shreyadsouza <55857093+shreyadsouza@users.noreply.github.com>
#30)

# *Refreshed addentryview UI*

## ⚙️ Release Notes 
- made view conform with rest of pages
- fixed bug with add weight
- added success message


## 📝 Code of Conduct & Contributing Guidelines 

By submitting creating this pull request, you agree to follow our [Code
of
Conduct](https://github.com/CS342/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md):
- [x] I agree to follow the [Code of
Conduct](https://github.com/CS342/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md).
This adds the following updates:

- Charts for all datatypes
- Updated bubble representation
- Updated accent colors
- Typo fix for red-tinged enum
- Misc refactoring
- Mini chart updates
![Simulator Screenshot - iPhone 16 Pro - 2025-03-07 at 13 54
35](https://github.com/user-attachments/assets/bc116268-47a2-418f-ba9b-f53c560bca3e)
![Simulator Screenshot - iPhone 16 Pro - 2025-03-07 at 13 54
47](https://github.com/user-attachments/assets/746d34d5-ab99-41db-bf17-624ac25216dd)
![Simulator Screenshot - iPhone 16 Pro - 2025-03-07 at 13 55
18](https://github.com/user-attachments/assets/056607af-5ae0-4fe3-a691-7d1e7c87585c)

---------

Co-authored-by: shamit05 <54602838+shamit05@users.noreply.github.com>
This adds UI updates so that the form colors match up with the UI on the
dashboard page.

![Simulator Screenshot - iPhone 16 Pro - 2025-03-07 at 14 55
21](https://github.com/user-attachments/assets/2b29a4c3-ba60-4b53-bf9e-dbe6477deef4)
# Merge refactoring into UI updates branch

This does not add any new functionality, but rather refactors the
visualization code to resolve all closure length errors.

## 📝 Code of Conduct & Contributing Guidelines 

By submitting creating this pull request, you agree to follow our [Code
of
Conduct](https://github.com/CS342/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md):
- [x] I agree to follow the [Code of
Conduct](https://github.com/CS342/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md).

---------

Co-authored-by: Shamit Surana <shamit.surana@gmail.com>
shreyadsouza and others added 17 commits March 10, 2025 12:09
# Merge initial alerting setup into dev branch

This merges the initial setup for alerting, including the red and green
categories. We need further clarification on how the yellow and red
categories will be defined. At present, we look at whether any abnormal
measurements were taken in the past 7 days.

![Simulator Screenshot - iPhone 16 Pro - 2025-03-10 at 10 48
41](https://github.com/user-attachments/assets/4ed860ec-0feb-401f-948d-627374a69dc5)

## ✅ Testing
*Please ensure that the PR meets the testing requirements set by CodeCov
and that new functionality is appropriately tested.*
*This section describes important information about the tests and why
some elements might not be testable.*

## 📝 Code of Conduct & Contributing Guidelines 

By submitting creating this pull request, you agree to follow our [Code
of
Conduct](https://github.com/CS342/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md):
- [ ] I agree to follow the [Code of
Conduct](https://github.com/CS342/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md).
# *Finished entry deletion options*


## ⚙️ Release Notes 
- fixed swiftlint errors and finished entry delete

## 📝 Code of Conduct & Contributing Guidelines 

By submitting creating this pull request, you agree to follow our [Code
of
Conduct](https://github.com/CS342/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md):
- [x] I agree to follow the [Code of
Conduct](https://github.com/CS342/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md).
# *Added REUSE compatibility*

Passes reuse tests now.

## 📝 Code of Conduct & Contributing Guidelines 

By submitting creating this pull request, you agree to follow our [Code
of
Conduct](https://github.com/CS342/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md):
- [x] I agree to follow the [Code of
Conduct](https://github.com/CS342/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md).
# Merge visualization updates with firebase changes

These changes add a dehydration visualization to the dashboard. It also
updates "Wet Diaper" to "Void" in settings. All chart updates are now
made in real-time as data entries are added; entries and charts are
updated immediately. The delete functionality has been integrated in the
dehydration visualization.

![Simulator Screenshot - iPhone 16 Pro - 2025-03-11 at 13 41
18](https://github.com/user-attachments/assets/17e1fc47-9842-4288-9c95-03372e959b2a)
![Simulator Screenshot - iPhone 16 Pro - 2025-03-11 at 13 41
12](https://github.com/user-attachments/assets/7501dcbc-e0eb-4e32-9e8f-6241707d0569)
![Simulator Screenshot - iPhone 16 Pro - 2025-03-11 at 13 41
27](https://github.com/user-attachments/assets/e0aa77be-dcce-4965-8f8c-03b395d46416)



## 📝 Code of Conduct & Contributing Guidelines 

By submitting creating this pull request, you agree to follow our [Code
of
Conduct](https://github.com/CS342/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md):
- [x] I agree to follow the [Code of
Conduct](https://github.com/CS342/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md).
# *Fixed periphery errors*
## 📝 Code of Conduct & Contributing Guidelines 

By submitting creating this pull request, you agree to follow our [Code
of
Conduct](https://github.com/CS342/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md):
- [x] I agree to follow the [Code of
Conduct](https://github.com/CS342/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md).
…appearance (#49)

# Update dehydration visualization to support empty data and fix entry
appearance

This supports there being no dehydration symptoms associated with a
baby. Further, it edits the grid so that days are gray if there are no
symptoms entered.

![Simulator Screenshot - iPhone 16 Pro - 2025-03-12 at 16 19
22](https://github.com/user-attachments/assets/cce91a60-d79d-4655-83ea-380e540099e5)
![Simulator Screenshot - iPhone 16 Pro - 2025-03-12 at 16 19
09](https://github.com/user-attachments/assets/4173c127-6a49-47f5-ad8c-aac606492394)


## 📝 Code of Conduct & Contributing Guidelines 

By submitting creating this pull request, you agree to follow our [Code
of
Conduct](https://github.com/CS342/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md):
- [x] I agree to follow the [Code of
Conduct](https://github.com/CS342/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md).
# Update alerting to use dashboard view model

This PR integrates the DashboardViewModel into AlertsView such that
alerting is updated as entries are added.

## 📝 Code of Conduct & Contributing Guidelines 

By submitting creating this pull request, you agree to follow our [Code
of
Conduct](https://github.com/CS342/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md):
- [x] I agree to follow the [Code of
Conduct](https://github.com/CS342/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md).
@shreyadsouza shreyadsouza marked this pull request as draft March 13, 2025 00:26
Base automatically changed from calvin/set-up-data-models to main March 13, 2025 00:54
@shreyadsouza shreyadsouza marked this pull request as ready for review March 13, 2025 03:08
@shreyadsouza shreyadsouza requested a review from Calvin-Xu March 13, 2025 03:11
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 13, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 33.24%. Comparing base (aa5314c) to head (778d865).
Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##            main      #51       +/-   ##
==========================================
+ Coverage   7.84%   33.24%   +25.41%     
==========================================
  Files         39       39               
  Lines       3511     3511               
==========================================
+ Hits         275     1167      +892     
+ Misses      3236     2344      -892     

see 18 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update aa5314c...778d865. Read the comment docs.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Contributor

@Calvin-Xu Calvin-Xu left a comment

Choose a reason for hiding this comment

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

This is awesome! Thanks Shreya. Let's take it past the line!

@Calvin-Xu Calvin-Xu merged commit 5dc5324 into main Mar 13, 2025
10 checks passed
@Calvin-Xu Calvin-Xu deleted the shryea/ui-tests branch March 13, 2025 05:07
@shreyadsouza shreyadsouza restored the shryea/ui-tests branch March 13, 2025 05:07
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.

3 participants