feat(home): redesign the getting started welcome screen - #4659
Open
adrianthedev wants to merge 2 commits into
Open
feat(home): redesign the getting started welcome screen#4659adrianthedev wants to merge 2 commits into
adrianthedev wants to merge 2 commits into
Conversation
Rework the dev-only /avo home page around next steps, core capabilities, and trying paid add-ons. - Replace the stale mission/vision blurb and hardcoded feature checklist (duplicated entries, long-shipped 'coming soon' items). - 'Start here' numbered stepper: create a resource, wire up current_user, set up authorization. - Copyable shell commands via the copy-to-clipboard controller (new reusable _command partial), replacing off-palette bg-sky-500 chips. - Real ui.button CTAs (accent primary) instead of a hardcoded bg-green-700 link. - Add-ons section as hover rows; dashboards moved from core to add-ons to match its actual gem packaging. - Fold the five single-purpose partials into one card body (panel.with_card), styled entirely from scheme-reactive tokens. Remove _actions/_dashboards/_docs/_filters/_resources partials.
Contributor
Generated by 🚫 Danger |
| <p class="text-sm text-content-secondary">A resource maps one of your models to a full set of screens — list, show, create, and edit. Point Avo at a model and it builds the interface around it.</p> | ||
|
|
||
| <% | ||
| models = begin |
Contributor
There was a problem hiding this comment.
reported by reviewdog 🐶
Layout/LeadingEmptyLines: Unnecessary blank line at the beginning of the source.
| <div class="font-medium text-content">Create your first resource</div> | ||
| <p class="text-sm text-content-secondary">A resource maps one of your models to a full set of screens — list, show, create, and edit. Point Avo at a model and it builds the interface around it.</p> | ||
|
|
||
| <% |
Contributor
There was a problem hiding this comment.
reported by reviewdog 🐶
Layout/TrailingWhitespace: Trailing whitespace detected.
| </div> | ||
|
|
||
| <% | ||
| addons = [ |
Contributor
There was a problem hiding this comment.
reported by reviewdog 🐶
Layout/LeadingEmptyLines: Unnecessary blank line at the beginning of the source.
| <p class="text-sm text-content-secondary">The core manages records. Add-ons take Avo the rest of the way — each is a gem you drop in when the need shows up. <span class="text-content font-medium">Every add-on runs free in development</span>, so you can install one, try it locally, and only need a license when you deploy.</p> | ||
| </div> | ||
|
|
||
| <% |
Contributor
There was a problem hiding this comment.
reported by reviewdog 🐶
Layout/TrailingWhitespace: Trailing whitespace detected.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What
Redesigns the dev-only
/avohome page (app/views/avo/home/index.html.erb) — the first screen a developer lands on after installing Avo. The old page was a stale mission/vision blurb plus a hardcoded feature checklist (duplicate "Menu editor" entries, several long-shipped "coming soon" items) that pushed nothing.The rewrite is organised around three things: next steps → what you can build → try the add-ons.
Changes
ApplicationRecord.descendantsdetection, now showing a ready command inline), wire upcurrent_user, set up authorization.copy-to-clipboardcontroller (extracted to a reusable_commandpartial), replacing the off-palettebg-sky-500chips.ui.button(accent primary + ghost) instead of a hardcodedbg-green-700link.avo-dashboardsgem)._actions,_dashboards,_docs,_filters,_resources) are folded into a singlepanel.with_cardbody, styled entirely from scheme-reactive tokens (no hardcoded colors, so light/dark both work).Notes
/admin(light theme; tokens are scheme-reactive so dark follows automatically).docs/4.0/index.mdalready tells the same next-steps + add-ons story; this mirrors its groupings.