Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

iParking module: data and domain layer + placeholder example usage widgets #48

Merged
merged 16 commits into from
Apr 28, 2024

Conversation

simon-the-shark
Copy link
Member

Features:

  1. Parkings repository + model
  2. Chart data repository + model
  3. some simple widgets with example usage (charts as well)

for it to work you need to add iparking's url to .env

@simon-the-shark simon-the-shark self-assigned this Apr 24, 2024
@simon-the-shark simon-the-shark linked an issue Apr 24, 2024 that may be closed by this pull request
Copy link

@marekkedzia marekkedzia left a comment

Choose a reason for hiding this comment

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

Simple architecture but imo its enough

child: switch (parkings) {
AsyncLoading() => const CircularProgressIndicator(),
AsyncError(:final error, :final stackTrace) =>
Text(error.toString() + stackTrace.toString()),

Choose a reason for hiding this comment

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

I think error should be mapped before displaying:
function mapError(error) {
switch(error.status)
case ...:
...

something like that

@simon-the-shark simon-the-shark merged commit 7f6d82b into main Apr 28, 2024
@simon-the-shark simon-the-shark deleted the parkings_tests branch April 28, 2024 12:52
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

iparking reverse engeeneering
2 participants