Skip to content

feat: Add ContactCard state, primitives and small components - #820

Open
Elouan1411 wants to merge 8 commits into
vcard-2-setup-modulefrom
vcard-3-viewmodel-primitives
Open

feat: Add ContactCard state, primitives and small components#820
Elouan1411 wants to merge 8 commits into
vcard-2-setup-modulefrom
vcard-3-viewmodel-primitives

Conversation

@Elouan1411

Copy link
Copy Markdown
Contributor

No description provided.

@Elouan1411
Elouan1411 force-pushed the vcard-2-setup-module branch from 0bafc8e to aae8c4b Compare July 24, 2026 06:59
@Elouan1411
Elouan1411 force-pushed the vcard-3-viewmodel-primitives branch from 2af33ef to 74b2c73 Compare July 24, 2026 06:59
@Elouan1411
Elouan1411 force-pushed the vcard-2-setup-module branch from aae8c4b to 4f33bc9 Compare July 24, 2026 07:21
@Elouan1411
Elouan1411 force-pushed the vcard-3-viewmodel-primitives branch from 74b2c73 to 4772e69 Compare July 24, 2026 07:23
@Elouan1411
Elouan1411 force-pushed the vcard-2-setup-module branch from 4f33bc9 to 18b6d27 Compare July 24, 2026 07:26
@Elouan1411
Elouan1411 force-pushed the vcard-3-viewmodel-primitives branch from 4772e69 to d1fb95a Compare July 24, 2026 07:28
@Elouan1411 Elouan1411 changed the title feat: Add ContactCard state, primitives and small components  feat: Add ContactCard state, primitives and small components Jul 24, 2026
@Elouan1411
Elouan1411 force-pushed the vcard-3-viewmodel-primitives branch from d1fb95a to f11001f Compare July 24, 2026 07:53
@Elouan1411
Elouan1411 force-pushed the vcard-3-viewmodel-primitives branch from f11001f to 71026ed Compare July 24, 2026 07:56
@Elouan1411
Elouan1411 force-pushed the vcard-3-viewmodel-primitives branch from 71026ed to fdb1a22 Compare July 24, 2026 08:09
@sonarqubecloud

Copy link
Copy Markdown

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds reusable state, styling defaults, and Compose primitives for the Contact Card feature.

Changes:

  • Adds top-bar state and customizable colors.
  • Adds editor, preview, loading, dialog, and layout components.
  • Adds preview fixtures for contact-card UI tooling.

Reviewed changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
ContactCardTopBarState.kt Defines top-bar modes and callbacks.
ContactCardDefaults.kt Provides theme-aware card colors.
SectionCard.kt Adds section container UI.
PreviewTopBar.kt Adds preview navigation actions.
PreviewData.kt Provides preview model fixtures.
LoadingContent.kt Adds centered loading UI.
FieldDivider.kt Adds field separator styling.
EditorTopBar.kt Adds editor cancel/save actions.
EditorField.kt Adds reusable single-line input.
DefaultValidationErrorDialog.kt Adds validation error dialog.
DefaultDeleteConfirmationDialog.kt Adds deletion confirmation dialog.
ContactInfoRows.kt Displays available contact information.
ContactCardTopBar.kt Adds shared centered top bar.
ContactCardConstants.kt Defines shared card radius.
BottomSheetAction.kt Adds reusable bottom-sheet action row.

IconButton(onClick = onClose) {
Icon(
imageVector = Icons.Filled.Close,
contentDescription = stringResource(RCore.string.buttonCancel),
onDismissRequest = onDismiss,
confirmButton = {
TextButton(onClick = onConfirm) {
Text(text = stringResource(android.R.string.ok))
Comment on lines +44 to +46
card.links.orEmpty().firstOrNull { it.type == CardLinkType.Website }?.let {
add(stringResource(R.string.webSite) to it.url)
}
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.

2 participants