Skip to content
Open

Dead #33

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,27 @@
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

## Build generated
build/
DerivedData/
*.xcarchive
archive.xcarchive.zip

## Various settings
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata/

## Other
*.moved-aside
*.xcuserstate

# User-specific stuff
/.idea
.idea/**/workspace.xml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class Entry {
private List<Type> types;
private List<Person> people;
private boolean isPublic;
private List<Status> status;
// private List<Status> status;
private ZonedDateTime completedDate;

}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.time.ZonedDateTime;
import java.util.Date;
import java.util.List;

@Document("person")
Expand All @@ -28,8 +28,10 @@ public class Person {
private String email;
private String password;
private String phoneNumber;
private ZonedDateTime dateCreated;
private ZonedDateTime lastLoggedIn;
private List<Entry> entries;
private List<Journey> journeys;
private Date dateCreated;
private Date lastLoggedIn;
private String profile;

}
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public Entry updateEntry(String entryId, Entry entry) {
.types(entry.getTypes())
.people(entry.getPeople())
.isPublic(entry.isPublic())
.status(entry.getStatus())
// .status(entry.getStatus())
.completedDate(entry.getCompletedDate())
.build();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ public String savePerson(Person person) {
}

@Override
public Person getPersonById(String journeyId) {
return personRepository.getPersonById(journeyId);
public Person getPersonById(String personId) {
return personRepository.getPersonById(personId);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public String savePerson(@RequestBody Person person) {
}

@GetMapping(path = "/{personId}")
public Person getPersonByTitle(@PathVariable String personId) {
public Person getPersonById(@PathVariable String personId) {
return personService.getPersonById(personId);
}

Expand Down
185 changes: 153 additions & 32 deletions ui/BragBook/BragBook.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Bucket
uuid = "13A83868-4127-41F0-9D46-ED1317E37D2D"
type = "1"
version = "2.0">
</Bucket>
3 changes: 1 addition & 2 deletions ui/BragBook/BragBook/BragBookApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ struct BragBookApp: App {
var body: some Scene {
WindowGroup {
NavigationView {
SplashView()
HomeScreenView(bragUser: BragUser.sampleUsers[0])
HomeScreenView()
}
}
}
Expand Down
60 changes: 60 additions & 0 deletions ui/BragBook/BragBook/Components/HomeProgressCardComponent.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
//
// HomeProgressCardComponent.swift
// BragBook
//
// Created by Shanice Gipson on 7/23/22.
//

import SwiftUI

struct HomeProgressCardComponent: View {
@State private var completedAmount = 45.0

var body: some View {
VStack {
Text("JUMP BACK INTO:").font(.subheadline)
.foregroundColor(Color("green"))

.padding(.bottom, 1)
.padding(.top)

Text("OVERCOMING IMPOSTER SYNDROME")
.foregroundColor(Color("Dark Green"))
.fontWeight(.semibold)
.multilineTextAlignment(.center)
.padding(3)

Text("Progress").font(.subheadline)
.frame(maxWidth: .infinity, alignment: .leading)
.multilineTextAlignment(.leading)
.padding(.bottom, -12)
.padding(.top, 12)
.padding(.leading)

ProgressView(value: completedAmount, total: 100)
.tint(Color("green"))
.scaleEffect(x: 1, y:4 , anchor: .center)
.padding()


Text("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Arcu ac tortor dignissim convallis aenean.")
.foregroundColor(Color("Dark Green"))
.multilineTextAlignment(.center)
.padding([.leading, .trailing], 14)
.padding([.top, .bottom], 8)

}
.background(Color.white)
.cornerRadius(6)
.padding(8)
.padding(.bottom, 3)
.shadow(color: Color("Dark Green"), radius: 7, x: 1, y: 4)

}
}

struct HomeProgressCardComponent_Previews: PreviewProvider {
static var previews: some View {
HomeProgressCardComponent()
}
}
45 changes: 45 additions & 0 deletions ui/BragBook/BragBook/Components/NavigationComponent.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
//
// NavigationComponent.swift
// BragBook
//
// Created by Liz Wait on 7/23/22.
//

import SwiftUI

struct NavigationComponent: View {
@State private var selectedTab = "One"

var body: some View {

VStack(spacing: 0) {
HStack {
TabView(selection: $selectedTab) {
HomeScreenView(bragUser: BragUser.sampleUsers[0])
.tabItem {
Label("Home", systemImage: "house.circle.fill")
}
EntryMainView()
.tabItem {
Label("Entries", systemImage: "pencil.circle.fill")
}
ProfileView()
.tabItem {
Label("Profile", systemImage: "person.circle.fill")
}
JourneyView()
.tabItem {
Label("Journey", systemImage: "book.closed.circle.fill")
}
}
.accentColor(Color("Dark Orange"))
}
}
}
}

struct NavigationComponent_Previews: PreviewProvider {
static var previews: some View {
NavigationComponent()
}
}
44 changes: 0 additions & 44 deletions ui/BragBook/BragBook/HomeScreenView.swift

This file was deleted.

52 changes: 0 additions & 52 deletions ui/BragBook/BragBook/Models/BragEntry.swift

This file was deleted.

5 changes: 0 additions & 5 deletions ui/BragBook/BragBook/Models/BragJourney.swift

This file was deleted.

33 changes: 0 additions & 33 deletions ui/BragBook/BragBook/Models/BragTag.swift

This file was deleted.

43 changes: 0 additions & 43 deletions ui/BragBook/BragBook/Models/BragUser.swift

This file was deleted.

Loading