- 
                Notifications
    You must be signed in to change notification settings 
- Fork 9
feat: Update Invoice View Table Design with Top-Side Border #231
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
feat: Update Invoice View Table Design with Top-Side Border #231
Conversation
| WalkthroughThe changes in this pull request enhance the  Changes
 Assessment against linked issues
 Possibly related PRs
 Suggested reviewers
 Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit: 
 Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
 Other keywords and placeholders
 CodeRabbit Configuration File ( | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Outside diff range and nitpick comments (4)
packages/invoice-dashboard/src/lib/dashboard/drawer.svelte (2)
15-20: Consider using template literals for style bindingThe style attribute string concatenation could be simplified using template literals for better readability.
- style="--mainColor: {config.colors.main}; --secondaryColor: {config.colors - .secondary};" + style={`--mainColor: ${config.colors.main}; --secondaryColor: ${config.colors.secondary};`}
131-146: Consider adding cross-browser scrollbar stylingThe scrollbar styling only includes webkit prefixes. For better cross-browser compatibility, consider adding Firefox (scrollbar-width, scrollbar-color) and standard scrollbar properties.
+ .drawer { + scrollbar-width: thin; + scrollbar-color: #888 white; + } .drawer::-webkit-scrollbar { width: 8px; }packages/invoice-dashboard/src/lib/dashboard/invoice-view.svelte (2)
732-737: Consider extracting common table stylesThere's some repetition in the table header styles. Consider extracting common styles to reduce duplication.
+ .table-common { + font-size: 14px; + line-height: 20px; + border: none; + border-spacing: 0; + } .table-header { + @extend .table-common; text-transform: uppercase; background-color: #f6f6f7; color: black; - line-height: 20px; - border: none; - border-collapse: collapse; } .table-header tr { text-align: left; - font-size: 14px; }Also applies to: 740-742, 745-751
764-765: Consider using CSS custom property for item description widthThe hardcoded width could be made configurable using a CSS custom property.
+ :root { + --item-description-width: 250px; + } .item-description { - width: 250px !important; + width: var(--item-description-width) !important; font-weight: normal; }
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (3)
- packages/invoice-dashboard/src/lib/dashboard/drawer.svelte(3 hunks)
- packages/invoice-dashboard/src/lib/dashboard/invoice-view.svelte(1 hunks)
- packages/invoice-dashboard/src/lib/view-requests.svelte(1 hunks)
🔇 Additional comments (5)
packages/invoice-dashboard/src/lib/dashboard/drawer.svelte (2)
2-2: LGTM: Config integration looks good
The addition of the IConfig type import and config prop enables proper configuration of the drawer component.
Also applies to: 7-7
85-85: LGTM: Border styling enhances visual hierarchy
The addition of the top border using the main color provides good visual separation.
packages/invoice-dashboard/src/lib/dashboard/invoice-view.svelte (2)
715-716: LGTM: Enhanced table container styling
The addition of box shadow and border radius improves the visual hierarchy and modern look of the table.
Also applies to: 725-728
721-722: LGTM: Typography improvements
The font size and line height adjustments enhance readability.
Also applies to: 724-724
packages/invoice-dashboard/src/lib/view-requests.svelte (1)
695-697: LGTM: Proper config propagation
The config is correctly passed to the Drawer component, maintaining consistency in styling across components.
Fixes #223
Task Overview
Implemented the new design for the Invoice View table in the Invoice Dashboard, including a top-side border for improved visual structure and alignment with the updated UI specifications.
Changes
Summary by CodeRabbit
New Features
configproperty for enhanced configurability in the drawer component.Enhancements
Bug Fixes