-
Couldn't load subscription status.
- Fork 67
Rewrite tour component
#11844
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
Draft
manuthecoder
wants to merge
14
commits into
main
Choose a base branch
from
rewrite-tips
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+185
−741
Draft
Rewrite tour component
#11844
Changes from 3 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
ecdcc26
[Walkthroughs] Add walkthroughs table with user and event references
manuthecoder fb11bd6
Add `driver.js`
manuthecoder 0297c2d
Add walkthrough progress component to event navigation
manuthecoder 1422e04
Remove tour-related components and references from the application
manuthecoder 1acd2f5
[Walkthroughs] Define walkthrough steps for the ledger page
manuthecoder 2ad6b0f
Refactor walkthrough steps method to use event_id for path generation
manuthecoder 1633841
Fix partial path for walkthrough progress rendering in navigation
manuthecoder 7157f1f
Add grid
manuthecoder 851ffd4
convert to array
manuthecoder 35080e2
add progress indicator and fix steps list
manuthecoder 08bce8d
Make order more concise
manuthecoder e22cc60
Add walkthrough controller
manuthecoder e6c60ef
Add walkthrough content for donations and update UI prompts
manuthecoder 77132d1
Add reimbursements to walkthrough progress
manuthecoder File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,31 @@ | ||||||||||||
| <% steps = local_assigns[:steps] || [ | ||||||||||||
| { name: "Home", completed: true }, | ||||||||||||
| { name: "Announcements", completed: true }, | ||||||||||||
| { name: "Donations", completed: true }, | ||||||||||||
| { name: "Check deposits", completed: false } | ||||||||||||
| ] %> | ||||||||||||
| <div data-behavior="modal_trigger" data-modal="walkthrough_modal" style="border-width:2px;border-style:solid" class="cursor-pointer flex border-gray-200 bg-white p-0 pr-3 rounded-xl -mx-2"> | ||||||||||||
| <div class="flex items-center w-full"> | ||||||||||||
| <svg width="77" height="77" viewBox="-9.625 -9.625 96.25 96.25" version="1.1" xmlns="http://www.w3.org/2000/svg" style="transform:rotate(-90deg)"> | ||||||||||||
| <circle r="28.5" cx="38.5" cy="38.5" fill="transparent" stroke="#e0e0e0" stroke-width="10"></circle> | ||||||||||||
| <circle r="28.5" cx="38.5" cy="38.5" stroke="#76e5b1" stroke-width="10" stroke-linecap="round" stroke-dashoffset="38px" fill="transparent" stroke-dasharray="178.98000000000002px"></circle> | ||||||||||||
| </svg> | ||||||||||||
| <div class="flex-1"> | ||||||||||||
| <p class="my-0 font-bold" style="line-height:1.2"> | ||||||||||||
| Make the most of HCB's features | ||||||||||||
| </p> | ||||||||||||
| <p class="my-0 text-sm muted"> | ||||||||||||
| <%= steps.select { |s| s[:completed] }.count %>/<%= steps.count %> completed | ||||||||||||
| </p> | ||||||||||||
| </div> | ||||||||||||
| <%= inline_icon "view-forward", class: "opacity-60" %> | ||||||||||||
| </div> | ||||||||||||
| </div> | ||||||||||||
|
|
||||||||||||
|
|
||||||||||||
| <section class="modal modal--scroll bg-snow" data-behavior="modal" role="dialog" id="walkthrough_modal"> | ||||||||||||
|
Comment on lines
25
to
26
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||
| <header> | ||||||||||||
| <h3 class="text-center my-0">Welcome to <%= @event.name %>!</h3> | ||||||||||||
| <p class="muted text-center mt-3">Make the most of HCB's features</p> | ||||||||||||
| </header> | ||||||||||||
| </section> | ||||||||||||
|
||||||||||||
| </header> | |
| </section> | |
| </header> | |
| </section> |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| class CreateWalkthroughs < ActiveRecord::Migration[7.2] | ||
| def change | ||
| create_table :walkthroughs do |t| | ||
| t.timestamps | ||
| t.string :key, null: false | ||
| t.integer :progress, default: 0 | ||
| t.references :user, null: false, foreign_key: true | ||
| t.references :event, null: false, foreign_key: true | ||
| t.index [:user_id, :event_id, :key], unique: true | ||
| end | ||
| end | ||
| end |
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.