- Replace project selection logic with page.data.project
- Add type annotations for better type safety
- Clean up component formatting and remove unused isSelected property
- Add noScroll option to navigation to prevent page jumps
- Reorder empty state conditions to check search/filter first
- Remove unused parent parameter from page load function
Move templates loading from layout to individual pages to reduce unnecessary data loading and improve performance. Update create-function page to load templates directly instead of inheriting from parent.
The regions store is populated elsewhere already so no need to do it again here.
Also, $organization may not be defined on mount which would lead to:
TypeError: Cannot read properties of undefined (reading '$id')
Using undefined as the initial value can lead to issues when trying to access the store such as:
TypeError: Cannot read properties of undefined (reading 'regions')
The prefix should be the api endpoint instead of the base path so that
the developer goes straight to the API endpoint to view or download
their invoice.
Replace hardcoded planData array with dynamic iteration over plan.addons
and plan.usage objects. Add getPlanLimit helper function and name field
to AdditionalResource type for improved data handling.
- Set 168px width for all table columns
- Replace span with Typography.Text for better text truncation
- Add word-break styling to tooltip for long text wrapping
Replace HTML autofocus attribute with custom Svelte action to avoid
a11y warnings. Fix option layout direction from column to row and
update search input padding/margin values.
- Limit fetching only 5 projects for the navigation
- Replace custom NavbarProject type with Models.Project
- Remove redundant project filtering in shell component
- Pass selectedProject directly from page data
- Add proper TypeScript types for layout data