Skip to content

Commit 7741e83

Browse files
authored
feat(assembleAgencyPage): create the agency page (#27)
1 parent 9e47249 commit 7741e83

File tree

13 files changed

+486
-1
lines changed

13 files changed

+486
-1
lines changed

.github/workflows/labels.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ name: Add labels when pull request is opened
77

88
jobs:
99
xpeho_workflows_labels:
10+
uses: actions/checkout@v4
1011
uses: XPEHO/Xpeho-Workflows/.github/workflows/labels.yaml@main

app/src/main/java/com/xpeho/xpeapp/enums/Screens.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ enum class Screens {
88
Colleague,
99
Qvst,
1010
Profile,
11-
Agenda
11+
Agenda,
12+
Agency
1213
}

app/src/main/java/com/xpeho/xpeapp/ui/Navigation.kt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import com.xpeho.xpeapp.data.FeatureFlippingEnum
88
import com.xpeho.xpeapp.enums.Screens
99
import com.xpeho.xpeapp.ui.components.Layout
1010
import com.xpeho.xpeapp.ui.components.layout.DisabledFeaturePlaceHolder
11+
import com.xpeho.xpeapp.ui.page.AgencyPage
1112
import com.xpeho.xpeapp.ui.page.HomePage
1213
import com.xpeho.xpeapp.ui.page.LoginPage
1314
import com.xpeho.xpeapp.ui.page.NewsletterPage
@@ -90,4 +91,10 @@ fun NavGraphBuilder.navigationBuilder(
9091
}
9192
}
9293
}
94+
95+
composable(route = Screens.Agency.name) {
96+
Layout(navigationController) {
97+
AgencyPage()
98+
}
99+
}
93100
}

app/src/main/java/com/xpeho/xpeapp/ui/components/layout/Sidebar.kt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,17 @@ fun Sidebar(
145145
)
146146
}
147147
}
148+
SidebarItem(
149+
icon = painterResource(id = R.drawable.building),
150+
label = stringResource(id = R.string.agency_view_label),
151+
onClick = {
152+
navigationController.navigate(Screens.Agency.name)
153+
}
154+
)
155+
Spacer(
156+
modifier = Modifier
157+
.height(20.dp)
158+
)
148159
SidebarItem(
149160
icon = painterResource(id = R.drawable.about),
150161
label = stringResource(id = R.string.about_view_about_label),

0 commit comments

Comments
 (0)