Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[sparkle] - refacto: deprecate citation #9342

Merged
merged 9 commits into from
Dec 16, 2024
Merged

Conversation

JulesBelveze
Copy link
Contributor

Description

This PR deprecates the old Citation component to rename CitationNew -> Citation

Risk

Low, breaking UI

Deploy Plan

  • Publish RC
  • Update front
  • Publish sparkle
  • Update sparkle version in front and deploy front

@JulesBelveze JulesBelveze marked this pull request as draft December 12, 2024 23:23
@JulesBelveze JulesBelveze force-pushed the sparkle/deprecate-citation branch from 69fe3b8 to a035385 Compare December 13, 2024 15:34
@JulesBelveze JulesBelveze marked this pull request as ready for review December 13, 2024 15:34
@JulesBelveze JulesBelveze requested a review from tdraier December 13, 2024 15:35
@tdraier
Copy link
Contributor

tdraier commented Dec 13, 2024

layout is broken in compact (ConversationMessage story)

Screenshot 2024-12-13 at 19 13 38

@JulesBelveze
Copy link
Contributor Author

@tdraier The layout wasn't actually set to compact.. Should be fine now 👌🏼

…ure and remove CitationNew

 - Refactored Citation component to be more modular, introducing subcomponents for better readability and maintenance
 - Removed the now redundant CitationNew component and related stories in favor of the updated Citation structure
 - Streamlined and condensed citation components into a more cohesive and manageable set of subcomponents
 - Simplified the usage of Citation components in stories by using the new subcomponent architecture
 - Updated class names and ordering for better consistency and to follow naming conventions

[src/stories] - refactor: update stories to reflect changes in Citation components

 - Adapted Citation stories to utilize the new subcomponents introduced in the Citation refactor
 - Removed CitationNew stories as the component has been deprecated and merged with Citation

[src/components/Sheet.tsx] - fix: adjust shadow-tale-white order for sheet header style

 - Modified the ordering of class names to adhere to styling conventions and ensure visual consistency

[src/components] - cleanup: remove deprecated export of CitationNew component

 - Removed the export statement for the now-nonexistent CitationNew component after its deprecation and merge into Citation
 - Deleted the ZoomableImageCitationWrapper to simplify the image citation features
 - Removed the component export from the main index to clean up unused code references
 - Replace individual Citation components with a more flexible structure including CitationIcons and CitationTitle
 - Remove usage of ZoomableImageCitationWrapper in favor of a unified Citation component structure
…edCitationsGrid

 - Remove the display name assignment for CitationImage component
 - Restructure Citation items to use composition rather than props in PaginatedCitationsGrid
 - Replace CitationType with icon JSX element for flexibility in citation rendering
 - Update storybook for PaginatedCitationsGrid with the new component design and DocumentIcon usage
 - Change padding specificity from general to horizontal for small, medium, and large sizes
 - Adjust the button alignment to center justify within its container
…omponent

 - Introduced a 'compact' size property to reduce the visual space taken by agent messages in conversations
 - Update `package-lock.json` and `package.json` to reflect the new package version
 - Ensure dependencies are aligned with the upgraded version
@JulesBelveze JulesBelveze force-pushed the sparkle/deprecate-citation branch from d3a33f0 to a7e0b13 Compare December 16, 2024 09:50
…ConversationMessageContent

 - Removed fixed grid column classes and added responsive grid classes to support various screen sizes
 - Included new container utility class to enhance structure in conversation message layouts
…geContent

 - Change the grid column setup at 'xs' breakpoint to start with 2 columns instead of 1
@JulesBelveze JulesBelveze merged commit 9897de6 into main Dec 16, 2024
3 checks passed
@JulesBelveze JulesBelveze deleted the sparkle/deprecate-citation branch December 16, 2024 15:58
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