Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Contact Logs & Call States #28

Merged
merged 14 commits into from
Feb 5, 2017
Merged

Contact Logs & Call States #28

merged 14 commits into from
Feb 5, 2017

Conversation

mccarron
Copy link
Collaborator

@mccarron mccarron commented Feb 5, 2017

  • Internal logging and persistence of call data. Now when returning to the app it remembers what you've done already.
  • Refactored showing completed issues and contacted representatives.
  • Added functionality to the Script screen to show if you've contacted that representative yet or already completed that issue.
  • Also shows Contact X of Y on the top of the Script screen to give better context.

Completes issues: #24 & #12

simulator screen shot feb 5 2017 2 15 59 pm
simulator screen shot feb 5 2017 2 16 23 pm
simulator screen shot feb 5 2017 2 25 48 pm
simulator screen shot feb 5 2017 2 25 58 pm

subdigital and others added 12 commits February 5, 2017 09:31
Some contacts are actually just local offices (like Corps of Engineers),
we still need to have valid contacts for these if some of the fields
aren’t present.
(This normally happens for us by default if we’re using UITableViewController,
but alas…)
Instead of having a key for each type of location & value, we use
3 keys:  type, display, and value. Each will store a string.
This seemed to cause issues where an image refused to load
This allows us to separate mutable user state
from the JSON responses, and allows us to ask
questions like "Have I completed this issue?"
or "Have I called this contact about this issue?"
in order to drive the checkmarks on the UI.
… a state to the Call Script to avoid repeating log calls when returning to a completed contact.
@mccarron mccarron changed the title Contact Logs & Call States (WIP) Contact Logs & Call States Feb 5, 2017
@subdigital
Copy link
Collaborator

🙏 for finding a useful thing to put in the title!

@subdigital
Copy link
Collaborator

Looks good, but needs another merge from master

# Conflicts:
#	FiveCalls/FiveCalls.xcodeproj/project.pbxproj
#	FiveCalls/FiveCalls/CallScriptViewController.swift
@mccarron mccarron merged commit 9136be2 into master Feb 5, 2017
@mccarron mccarron deleted the save-contact-logs branch February 5, 2017 23:58
@mccarron mccarron mentioned this pull request Feb 6, 2017
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.

None yet

2 participants