Skip to content
Merged
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
1 change: 1 addition & 0 deletions .github/workflows/labels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@

jobs:
xpeho_workflows_labels:
uses: actions/checkout@v4
uses: XPEHO/Xpeho-Workflows/.github/workflows/labels.yaml@main

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}
3 changes: 2 additions & 1 deletion app/src/main/java/com/xpeho/xpeapp/enums/Screens.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ enum class Screens {
Colleague,
Qvst,
Profile,
Agenda
Agenda,
Agency
}
7 changes: 7 additions & 0 deletions app/src/main/java/com/xpeho/xpeapp/ui/Navigation.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import com.xpeho.xpeapp.data.FeatureFlippingEnum
import com.xpeho.xpeapp.enums.Screens
import com.xpeho.xpeapp.ui.components.Layout
import com.xpeho.xpeapp.ui.components.layout.DisabledFeaturePlaceHolder
import com.xpeho.xpeapp.ui.page.AgencyPage
import com.xpeho.xpeapp.ui.page.HomePage
import com.xpeho.xpeapp.ui.page.LoginPage
import com.xpeho.xpeapp.ui.page.NewsletterPage
Expand Down Expand Up @@ -90,4 +91,10 @@ fun NavGraphBuilder.navigationBuilder(
}
}
}

composable(route = Screens.Agency.name) {
Layout(navigationController) {
AgencyPage()
}
}
}
11 changes: 11 additions & 0 deletions app/src/main/java/com/xpeho/xpeapp/ui/components/layout/Sidebar.kt
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,17 @@ fun Sidebar(
)
}
}
SidebarItem(
icon = painterResource(id = R.drawable.building),
label = stringResource(id = R.string.agency_view_label),
onClick = {
navigationController.navigate(Screens.Agency.name)
}
)
Spacer(
modifier = Modifier
.height(20.dp)
)
SidebarItem(
icon = painterResource(id = R.drawable.about),
label = stringResource(id = R.string.about_view_about_label),
Expand Down
Loading
Loading