Redesign snap page #8
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Snap page now scrolls as one cohesive element
Cue the Copilot summary:
This pull request introduces updates to the
store-tui
project, including dependency changes, code refactoring for improved type safety and functionality, and styling adjustments for the user interface. Below is a breakdown of the most important changes grouped by theme.Dependency Updates:
snap-python
dependency from0.0.5
to>0.1
for compatibility improvements. Addedsnakeviz
to development dependencies inpyproject.toml
.0.1.6
inpyproject.toml
andsnapcraft.yaml
. [1] [2]Code Refactoring:
categories
type inCategoryModal
fromlist[tuple[str, str]]
tolist[str]
for simplicity.SnapModal
class to replaceTextArea
withMarkdown
for better text rendering and adjustedget_icon_url
method to handleNone
values formedia
. Removed unusedinstall_button
attribute. [1] [2] [3]SnapResultTable
andSnapStoreTUI
classes by adding support forOptional
types and default values for empty responses. [1] [2] [3]UI Styling Adjustments:
snap_modal.tcss
to remove padding and borders for cleaner visuals, adjusted row heights, and added a bottom border to the summary row. Introduced new styles forVertical
and#description-text
elements. [1] [2] [3]Snapcraft Metadata:
source-code
field tosnapcraft.yaml
for better project documentation.These changes collectively enhance the project's maintainability, user interface, and compatibility with dependencies.