Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces significant changes to the
support_sphere
project, focusing on adding support for clusters and their captains, and integrating this information into various parts of the application. The most important changes include the creation of new models and services for clusters, updates to theHousehold
model, and modifications to theProfileCubit
andProfileState
to handle cluster information.Cluster Support:
src/support_sphere/lib/data/models/clusters.dart
: AddedCluster
andCaptains
models. ([src/support_sphere/lib/data/models/clusters.dartR1-R46](https://github.com/uw-ssec/post-disaster-comms/pull/135/files#diff-ae9161abbe55e2943c206f7a06c19ad8c7c3aedbfa4b1078600680a036b97417R1-R46)
)src/support_sphere/lib/data/services/cluster_service.dart
: AddedClusterService
to fetch cluster and captain data from the database. ([src/support_sphere/lib/data/services/cluster_service.dartR1-R36](https://github.com/uw-ssec/post-disaster-comms/pull/135/files#diff-5a89b944181c0d1ff7b1feb092c6f59d052d72822165c1ba7cfc0e5d6ae627a7R1-R36)
)Household Model Updates:
src/support_sphere/lib/data/models/households.dart
: UpdatedHousehold
model to includecluster_id
and updatedprops
andcopyWith
methods accordingly. ([[1]](https://github.com/uw-ssec/post-disaster-comms/pull/135/files#diff-de165e1e8b1c9f4df4b28427f9c5de33e816034098d636d39a97e20b400d7613R8)
,[[2]](https://github.com/uw-ssec/post-disaster-comms/pull/135/files#diff-de165e1e8b1c9f4df4b28427f9c5de33e816034098d636d39a97e20b400d7613R19)
,[[3]](https://github.com/uw-ssec/post-disaster-comms/pull/135/files#diff-de165e1e8b1c9f4df4b28427f9c5de33e816034098d636d39a97e20b400d7613L26-R28)
,[[4]](https://github.com/uw-ssec/post-disaster-comms/pull/135/files#diff-de165e1e8b1c9f4df4b28427f9c5de33e816034098d636d39a97e20b400d7613R38)
,[[5]](https://github.com/uw-ssec/post-disaster-comms/pull/135/files#diff-de165e1e8b1c9f4df4b28427f9c5de33e816034098d636d39a97e20b400d7613R48)
)User Repository Enhancements:
src/support_sphere/lib/data/repositories/user.dart
: Integrated cluster and captains data retrieval methods. ([[1]](https://github.com/uw-ssec/post-disaster-comms/pull/135/files#diff-5abdbbb4cf14f250918444515ff2ae28c7ca9c1b52c5a43fd58181ea0d94b29cR5-R15)
,[[2]](https://github.com/uw-ssec/post-disaster-comms/pull/135/files#diff-5abdbbb4cf14f250918444515ff2ae28c7ca9c1b52c5a43fd58181ea0d94b29cR66)
,[[3]](https://github.com/uw-ssec/post-disaster-comms/pull/135/files#diff-5abdbbb4cf14f250918444515ff2ae28c7ca9c1b52c5a43fd58181ea0d94b29cR95-R134)
)Profile Management:
src/support_sphere/lib/logic/cubit/profile_cubit.dart
: Added methods to handle cluster changes and fetch cluster data. ([[1]](https://github.com/uw-ssec/post-disaster-comms/pull/135/files#diff-e4cb3324581bb15d356b7d5827567e716ec0ef780c1e133f2dd3333f7f35811cR4)
,[[2]](https://github.com/uw-ssec/post-disaster-comms/pull/135/files#diff-e4cb3324581bb15d356b7d5827567e716ec0ef780c1e133f2dd3333f7f35811cR32-R35)
,[[3]](https://github.com/uw-ssec/post-disaster-comms/pull/135/files#diff-e4cb3324581bb15d356b7d5827567e716ec0ef780c1e133f2dd3333f7f35811cR62-R83)
)src/support_sphere/lib/logic/cubit/profile_state.dart
: UpdatedProfileState
to includeCluster
. ([src/support_sphere/lib/logic/cubit/profile_state.dartR8-R29](https://github.com/uw-ssec/post-disaster-comms/pull/135/files#diff-341cb3e8f6fdfc9aed4fd128a464a077eacd2066c0134bf59033a85462d4b500R8-R29)
)UI Enhancements:
src/support_sphere/lib/presentation/pages/main_app/profile/profile_body.dart
: Updated UI to display cluster information and captains. ([[1]](https://github.com/uw-ssec/post-disaster-comms/pull/135/files#diff-4f8fa883208165c32b6369633dd5323a173c40e56237aad060b3115491324856R6)
,[[2]](https://github.com/uw-ssec/post-disaster-comms/pull/135/files#diff-4f8fa883208165c32b6369633dd5323a173c40e56237aad060b3115491324856L291-R320)
,[[3]](https://github.com/uw-ssec/post-disaster-comms/pull/135/files#diff-4f8fa883208165c32b6369633dd5323a173c40e56237aad060b3115491324856L318-R339)
)These changes collectively enhance the application's capability to manage and display cluster-related information, improving the overall user experience.
Related issue
Resolves #124
Demo