Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
baf402b
Initialize OudsBulletList component
paulinea Oct 13, 2025
8c7d042
Fix after rebase
paulinea Dec 18, 2025
f3a6df0
Add bullet drawable resources to NOTICE.txt
paulinea Dec 19, 2025
cbfeae6
Finalize bullet list component
paulinea Jan 14, 2026
22b333c
Apply brand color on Unordered bullet list type
paulinea Jan 23, 2026
cee2d60
Add samples
paulinea Jan 23, 2026
9af0ad1
Fix bullet list levels paddings
paulinea Jan 27, 2026
dbf4afc
Remove useless enum
paulinea Jan 27, 2026
8a1c54b
Update bullet list type default value
paulinea Jan 27, 2026
aa01bea
Rename OudsBulletListUnorderedBullet into OudsBulletListUnorderedIcon
paulinea Jan 27, 2026
69f079d
Update sample
paulinea Jan 27, 2026
9ba9ab9
Add snapshot tests for OudsBulletList
paulinea Jan 27, 2026
383fa6c
Add bullet list component to demo app
paulinea Jan 27, 2026
82460e8
Add bullet list tokens for Orange Business Tools theme
paulinea Jan 27, 2026
de3ddbc
Fix after rebase
paulinea Jan 27, 2026
435e0bf
Fix crash on recomposition
paulinea Jan 27, 2026
06b6d71
Add bullet list snapshots
paulinea Jan 27, 2026
8a909d8
Update wording keys
paulinea Jan 27, 2026
c8dd9da
Update bullet list Arabic description
paulinea Jan 27, 2026
d770ef7
Update wording key
paulinea Jan 28, 2026
76b8876
Review: Add Bullet list component for version update in documentation
paulinea Jan 29, 2026
aa1cebc
Review: Add Dsl annotation
paulinea Jan 29, 2026
41b2774
Review: Simplify code
paulinea Jan 29, 2026
27b9852
Review: Rename variable to nextHasBoldText
paulinea Jan 29, 2026
3d98d63
Review: Remove useless builder interface
paulinea Jan 29, 2026
9e81162
Review: Rename children in subListItems
paulinea Jan 29, 2026
aed4bb6
Review: Use tokens for icon and icon container sizes
paulinea Jan 29, 2026
b494f74
Review: Remove Box display for Bare bullet list
paulinea Jan 29, 2026
d70bb37
Review: Replace Box by Text for ordered bullet
paulinea Jan 29, 2026
06d6f42
Review: Add missing space after dot in doc
paulinea Jan 29, 2026
74a6a44
Review: Transform Ordered and Bare type in objects
paulinea Jan 29, 2026
daa1e30
Review: Replace OudsBulletListItemNestedLevel by an Int
paulinea Jan 29, 2026
1028d06
Review: Improve code by using repeat
paulinea Jan 29, 2026
dd6a15d
Review: Remove useless verticalAlignment
paulinea Jan 29, 2026
d1d5062
Review: Remove headers from drawables
paulinea Jan 29, 2026
cd129c6
Review: Fix samples
paulinea Jan 29, 2026
16bbb4b
Review: Add a level 2 with unordered items in preview
paulinea Jan 29, 2026
ea3f160
Review: Remove app_components_badge_type_label wording key
paulinea Jan 29, 2026
f5e3f43
Review: Replace level count chips labels by numbers
paulinea Jan 29, 2026
a882192
Review: Replace home icon by tipsAndTrick icon
paulinea Jan 29, 2026
c038014
Review: Remove useless this
paulinea Jan 29, 2026
ef163b6
Review: Save class name instead of OudsBulletListUnorderedIcon
paulinea Jan 29, 2026
999291b
Review: Fix customization types display
paulinea Jan 29, 2026
bbd085d
Review: Disable customization elements linked to unordered type
paulinea Jan 29, 2026
2671b0b
Review: Use repeat to improve code
paulinea Jan 29, 2026
c19c747
Review: Make code snippet short by setting isMultiline to false
paulinea Jan 29, 2026
1480afa
Review: Update DSM url
paulinea Jan 29, 2026
55cd885
Review: Manage combination of ordered and unordered levels for bullet…
paulinea Jan 29, 2026
9b89ad1
Review: Fix bullet alignment when enlarging text
paulinea Jan 29, 2026
81f7170
Review: Remove useless class
paulinea Jan 30, 2026
d7b5290
Review: Transform OudsBulletListUnorderedIcon in OudsBulletListUnorde…
paulinea Jan 30, 2026
3cf1ad3
Review: Minor updates
florentmaitre Jan 30, 2026
1ce9706
Review: Refactor BulletListDemoScreen
florentmaitre Jan 30, 2026
6b0406e
Review: Rename icon to asset
florentmaitre Jan 30, 2026
d8c04b8
Review: Refactor level computation
florentmaitre Jan 30, 2026
ee0e973
Review: Use OudsComponentIcon whenever possible
florentmaitre Jan 30, 2026
3b2db9a
Update snapshots
florentmaitre Jan 30, 2026
3291835
Review: Move bold parameter to OudsBulletListTextStyle
florentmaitre Jan 30, 2026
d1bc57a
Review: Ordered bullet text now circles back to A when reaching Z
florentmaitre Feb 2, 2026
65224bb
Review: Add missing tokens and refactor the code related to the bullet
florentmaitre Feb 3, 2026
4519bdc
Review: Fix a bug where bullet max height was wrong
florentmaitre Feb 5, 2026
f62656a
Review: Fix a bug where bullet max height was wrong (again)
florentmaitre Feb 5, 2026
5a0b8a2
Review: Scale unordered list icon for visual consistency
florentmaitre Feb 5, 2026
2b3037b
Review: Fix component illustration
paulinea Feb 6, 2026
8e363ef
Review: Prevent Talkback to read unordered bullets
paulinea Feb 6, 2026
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
8 changes: 8 additions & 0 deletions .idea/markdown.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions NOTICE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ theme-orange/src/main/res/drawable/ic_orange_component_alert_info_fill.xml
theme-orange/src/main/res/drawable/ic_orange_component_alert_tick_confirmation_fill.xml
theme-orange/src/main/res/drawable/ic_orange_component_alert_warning_external_shape.xml
theme-orange/src/main/res/drawable/ic_orange_component_alert_warning_internal_shape.xml
theme-orange/src/main/res/drawable/ic_orange_component_bullet_list_level0.xml
theme-orange/src/main/res/drawable/ic_orange_component_bullet_list_level1.xml
theme-orange/src/main/res/drawable/ic_orange_component_bullet_list_level2.xml
theme-orange/src/main/res/drawable/ic_orange_component_bullet_list_tick.xml
theme-orange/src/main/res/drawable/ic_orange_component_checkbox_selected.xml
theme-orange/src/main/res/drawable/ic_orange_component_checkbox_undetermined.xml
theme-orange/src/main/res/drawable/ic_orange_component_chip_tick.xml
Expand All @@ -126,6 +130,10 @@ theme-sosh/src/main/res/drawable/ic_sosh_component_alert_info_fill.xml
theme-sosh/src/main/res/drawable/ic_sosh_component_alert_tick_confirmation_fill.xml
theme-sosh/src/main/res/drawable/ic_sosh_component_alert_warning_external_shape.xml
theme-sosh/src/main/res/drawable/ic_sosh_component_alert_warning_internal_shape.xml
theme-sosh/src/main/res/drawable/ic_sosh_component_bullet_list_level0.xml
theme-sosh/src/main/res/drawable/ic_sosh_component_bullet_list_level1.xml
theme-sosh/src/main/res/drawable/ic_sosh_component_bullet_list_level2.xml
theme-sosh/src/main/res/drawable/ic_sosh_component_bullet_list_tick.xml
theme-sosh/src/main/res/drawable/ic_sosh_component_checkbox_selected.xml
theme-sosh/src/main/res/drawable/ic_sosh_component_checkbox_undetermined.xml
theme-sosh/src/main/res/drawable/ic_sosh_component_chip_tick.xml
Expand All @@ -151,6 +159,10 @@ theme-wireframe/src/main/res/drawable/ic_wireframe_component_alert_info_fill.xml
theme-wireframe/src/main/res/drawable/ic_wireframe_component_alert_tick_confirmation_fill.xml
theme-wireframe/src/main/res/drawable/ic_wireframe_component_alert_warning_external_shape.xml
theme-wireframe/src/main/res/drawable/ic_wireframe_component_alert_warning_internal_shape.xml
theme-wireframe/src/main/res/drawable/ic_wireframe_component_bullet_list_level0.xml
theme-wireframe/src/main/res/drawable/ic_wireframe_component_bullet_list_level1.xml
theme-wireframe/src/main/res/drawable/ic_wireframe_component_bullet_list_level2.xml
theme-wireframe/src/main/res/drawable/ic_wireframe_component_bullet_list_tick.xml
theme-wireframe/src/main/res/drawable/ic_wireframe_component_checkbox_selected.xml
theme-wireframe/src/main/res/drawable/ic_wireframe_component_checkbox_undetermined.xml
theme-wireframe/src/main/res/drawable/ic_wireframe_component_chip_tick.xml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import androidx.compose.runtime.Composable
import androidx.compose.runtime.Immutable
import com.orange.ouds.app.R
import com.orange.ouds.app.ui.components.badge.BadgeDemoScreen
import com.orange.ouds.app.ui.components.bulletlist.BulletListDemoScreen
import com.orange.ouds.app.ui.components.button.ButtonDemoScreen
import com.orange.ouds.app.ui.components.checkbox.CheckboxDemoScreen
import com.orange.ouds.app.ui.components.checkbox.CheckboxItemDemoScreen
Expand Down Expand Up @@ -61,6 +62,13 @@ sealed class Component(
demoScreen = { BadgeDemoScreen() }
)

data object BulletList : Component(
R.string.app_components_bulletList_label,
R.string.app_components_bulletList_description_text,
{ BulletListIllustration() },
demoScreen = { BulletListDemoScreen() }
)

data object Button : Component(
R.string.app_components_button_label,
R.string.app_components_button_description_text,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

package com.orange.ouds.app.ui.components

import android.content.res.Configuration
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
Expand All @@ -23,6 +24,7 @@ import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.runtime.Composable
import androidx.compose.runtime.CompositionLocalProvider
import androidx.compose.ui.Modifier
import androidx.compose.ui.platform.LocalConfiguration
import androidx.compose.ui.platform.LocalDensity
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.res.stringResource
Expand All @@ -35,6 +37,8 @@ import com.orange.ouds.app.ui.utilities.composable.Illustration
import com.orange.ouds.core.component.OudsBadge
import com.orange.ouds.core.component.OudsBadgeSize
import com.orange.ouds.core.component.OudsBadgeStatus
import com.orange.ouds.core.component.OudsBulletList
import com.orange.ouds.core.component.OudsBulletListType
import com.orange.ouds.core.component.OudsButton
import com.orange.ouds.core.component.OudsButtonAppearance
import com.orange.ouds.core.component.OudsCheckbox
Expand Down Expand Up @@ -66,6 +70,15 @@ fun BadgeIllustration() = ComponentIllustration {
)
}

@Composable
fun BulletListIllustration() = ComponentIllustration {
OudsBulletList(modifier = Modifier.padding(end = 16.dp), type = OudsBulletListType.Unordered()) {
repeat(2) {
item(label = "Label")
}
}
}

@Composable
fun ButtonIllustration() = ComponentIllustration {
Column(verticalArrangement = Arrangement.spacedBy(16.dp)) {
Expand Down Expand Up @@ -226,11 +239,12 @@ fun TopAppBarIllustration() = ComponentIllustration {

@Composable
private fun ComponentIllustration(content: @Composable () -> Unit) {
// Do not take user font scale into account
val configuration = Configuration(LocalConfiguration.current).apply { fontScale = 1f }
val density = Density(LocalDensity.current.density, 1f)
CompositionLocalProvider(
value = LocalDensity provides Density(
LocalDensity.current.density,
1f // Do not take user font scale into account
)
LocalDensity provides density,
LocalConfiguration provides configuration
) {
Illustration(content = content)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ private fun ComponentsScreen(components: List<Component>, onComponentClick: (Lon
@Composable
private fun PreviewComponentsScreen() = AppPreview {
ComponentsScreen(
components = listOf(Component.Button, Component.Link),
components = listOf(Component.Button, Component.BulletList),
onComponentClick = {}
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ private fun BadgeDemoBottomSheetContent(state: BadgeDemoState) {
)
CustomizationFilterChips(
applyTopPadding = true,
label = stringResource(R.string.app_components_badge_type_label),
label = stringResource(R.string.app_components_common_type_label),
chipLabels = BadgeDemoState.Type.entries.map { stringResource(it.labelRes) },
selectedChipIndex = BadgeDemoState.Type.entries.indexOf(type),
onSelectionChange = { index -> type = BadgeDemoState.Type.entries[index] }
Expand Down
Loading