Skip to content

Conversation

HarshMN2345
Copy link
Member

@HarshMN2345 HarshMN2345 commented Aug 15, 2025

What does this PR do?

Introduces a new ExpandableTable component

Test Plan

image image

Related PRs and Issues

(If this PR is related to any other PR or resolves any issue or related to any issue link all related PR and issues here.)

Have you read the Contributing Guidelines on issues?

yes

Copy link

changeset-bot bot commented Aug 15, 2025

⚠️ No Changeset found

Latest commit: f4da718

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

💥 An error occurred when fetching the changed packages and changesets in this PR
Some errors occurred when validating the changesets config:
The package or glob expression "@appwrite.io/pink" specified in the `linked` option does not match any package in the project. You may have misspelled the package name or provided an invalid glob expression. Note that glob expressions must be defined according to https://www.npmjs.com/package/micromatch.
The package or glob expression "@appwrite.io/pink-icons" specified in the `linked` option does not match any package in the project. You may have misspelled the package name or provided an invalid glob expression. Note that glob expressions must be defined according to https://www.npmjs.com/package/micromatch.
The package or glob expression "@appwrite.io/kitchensink" is specified in the `ignore` option but it is not found in the project. You may have misspelled the package name or provided an invalid glob expression. Note that glob expressions must be defined according to https://www.npmjs.com/package/micromatch.
The package or glob expression "@appwrite.io/fonts" is specified in the `ignore` option but it is not found in the project. You may have misspelled the package name or provided an invalid glob expression. Note that glob expressions must be defined according to https://www.npmjs.com/package/micromatch.
The package or glob expression "@appwrite.io/pink-design" is specified in the `ignore` option but it is not found in the project. You may have misspelled the package name or provided an invalid glob expression. Note that glob expressions must be defined according to https://www.npmjs.com/package/micromatch.

Copy link

appwrite bot commented Aug 15, 2025

Pink

Project ID: 688b850d003678e26eb4

Sites (1)
Site Status Logs Preview QR
 pink
688b852d002905ceebe1
Ready Ready View Logs Preview URL QR Code

Note

Appwrite has a Discord community with over 16 000 members.

@coolify-appwrite-org
Copy link

coolify-appwrite-org bot commented Aug 15, 2025

The preview deployment is ready. 🟢

Open Preview | Open Build Logs

Last updated at: 2025-08-17 19:13:58 CET

@HarshMN2345 HarshMN2345 requested a review from ItzNotABug August 15, 2025 12:14
Copy link
Contributor

Uh oh! @HarshMN2345, the image you shared is missing helpful alt text. Check your pull request body.

Alt text is an invisible description that helps screen readers describe images to blind or low-vision users. If you are using markdown to display images, add your alt text inside the brackets of the markdown image.

Learn more about alt text at Basic writing and formatting syntax: images on GitHub Docs.

Copy link
Contributor

github-actions bot commented Aug 15, 2025

🚀 Previews available on pkg.vc!

📦 @appwrite.io/pink-svelte

Install @appwrite.io/pink-svelte with:

pnpm install https://pkg.vc/-/@appwrite/@appwrite.io/pink-svelte@f4da718

Alternatively, you may specify a branch name or pull request number:

pnpm install https://pkg.vc/-/@appwrite/@appwrite.io/pink-svelte~feat-SER-205-new-expansion-table-component
pnpm install https://pkg.vc/-/@appwrite/@appwrite.io/pink-svelte!354

📦 @appwrite.io/pink-icons-svelte

Install @appwrite.io/pink-icons-svelte with:

pnpm install https://pkg.vc/-/@appwrite/@appwrite.io/pink-icons-svelte@f4da718

Alternatively, you may specify a branch name or pull request number:

pnpm install https://pkg.vc/-/@appwrite/@appwrite.io/pink-icons-svelte~feat-SER-205-new-expansion-table-component
pnpm install https://pkg.vc/-/@appwrite/@appwrite.io/pink-icons-svelte!354

@HarshMN2345 HarshMN2345 changed the title Feat: new expansion table component and left chevron variant of accordian Feat: new expansion table component Aug 17, 2025
Copy link
Contributor

Uh oh! @HarshMN2345, the image you shared is missing helpful alt text. Check your pull request body.

Alt text is an invisible description that helps screen readers describe images to blind or low-vision users. If you are using markdown to display images, add your alt text inside the brackets of the markdown image.

Learn more about alt text at Basic writing and formatting syntax: images on GitHub Docs.

1 similar comment
Copy link
Contributor

Uh oh! @HarshMN2345, the image you shared is missing helpful alt text. Check your pull request body.

Alt text is an invisible description that helps screen readers describe images to blind or low-vision users. If you are using markdown to display images, add your alt text inside the brackets of the markdown image.

Learn more about alt text at Basic writing and formatting syntax: images on GitHub Docs.

@HarshMN2345 HarshMN2345 requested a review from ItzNotABug August 18, 2025 08:43
@HarshMN2345 HarshMN2345 changed the title Feat: new expansion table component Feat: new expandable table component Aug 19, 2025
Copy link
Contributor

Uh oh! @HarshMN2345, the image you shared is missing helpful alt text. Check your pull request body.

Alt text is an invisible description that helps screen readers describe images to blind or low-vision users. If you are using markdown to display images, add your alt text inside the brackets of the markdown image.

Learn more about alt text at Basic writing and formatting syntax: images on GitHub Docs.

@HarshMN2345 HarshMN2345 requested a review from ItzNotABug August 24, 2025 11:47
columns: ExpandableTableColumn[];
gridTemplateColumns: string;
childGridTemplate: string;
alignment: (align?: 'left' | 'center' | 'right') => string;
Copy link
Member

Choose a reason for hiding this comment

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

why do we need a function at root level?
it returns the same value of the column's align, right?

Copy link
Member Author

@HarshMN2345 HarshMN2345 Aug 29, 2025

Choose a reason for hiding this comment

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

yes, but we still need to map left-> flex-start and so on to maintain alignment,so both header and child cells use a single source.
otherwise need to add like this
justify-content: {col.align === 'right' ? 'flex-end' : col.align === 'center' ? 'center' : 'flex-start'}

unregister: (id: string) => void;
columns: ExpandableTableColumn[];
gridTemplateColumns: string;
childGridTemplate: string;
Copy link
Member

Choose a reason for hiding this comment

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

Is this for summary slot layout? If so, why do we insist it to be a grid? Does Layout.Stack not suffice with justifyContent in the slot from the user's side?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, this is for the summary slot. childGridTemplate makes summary rows stay aligned with the table columns and inherit the same styling and responsiveness. With Layout.Stack we’d have to recreate all that styling manually again

@HarshMN2345 HarshMN2345 self-assigned this Aug 28, 2025
Copy link

coderabbitai bot commented Aug 28, 2025

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat-SER-205-new-expansion-table-component

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@HarshMN2345 HarshMN2345 changed the base branch from next to feat-spreadsheet August 28, 2025 13:47
Copy link
Contributor

Uh oh! @HarshMN2345, the image you shared is missing helpful alt text. Check your pull request body.

Alt text is an invisible description that helps screen readers describe images to blind or low-vision users. If you are using markdown to display images, add your alt text inside the brackets of the markdown image.

Learn more about alt text at Basic writing and formatting syntax: images on GitHub Docs.

const rowId = getContext<string>('rowId');

$: columnIndex = root.columns.findIndex((c) => c.id === column);
$: justify = root.alignment(root.columns[columnIndex]?.align);
Copy link
Member

Choose a reason for hiding this comment

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

we don't need the root.alignment method. see - v2/pink-sb/src/lib/table/cell/Base.svelte

pointer-events: none;
}

:global(.child-row) {
Copy link
Member

Choose a reason for hiding this comment

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

does this expect the end user to always have a div or other element have this class? 🤔

@HarshMN2345 HarshMN2345 requested a review from ItzNotABug August 31, 2025 13:25
@HarshMN2345 HarshMN2345 force-pushed the feat-SER-205-new-expansion-table-component branch from 7582698 to 7a84c31 Compare August 31, 2025 14:20
Base automatically changed from feat-spreadsheet to next September 1, 2025 13:09
Copy link
Contributor

github-actions bot commented Sep 1, 2025

Uh oh! @HarshMN2345, the image you shared is missing helpful alt text. Check your pull request body.

Alt text is an invisible description that helps screen readers describe images to blind or low-vision users. If you are using markdown to display images, add your alt text inside the brackets of the markdown image.

Learn more about alt text at Basic writing and formatting syntax: images on GitHub Docs.

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