Repository navigation
feat(#383): Improvements to "Building App Forms" page #1986
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
Merged
mrjones-plip
merged 6 commits into
medic:main
from
jomcarvajal:383-improvements-to-Building_App_Forms-page
Sep 26, 2025
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
f111296
feat(#383): improvements in Building App Forms page
jomcarvajal fccd360
feat(#383): remove unused styles
jomcarvajal 69349e2
feat(#383): add more description to step 1
jomcarvajal 6e8f3f1
feat(#383): update button styles, add new notes for style-guide
jomcarvajal 18f2abb
feat(#383): rename shortcode
jomcarvajal a7e7b05
feat(#383): remove emojis from style guide doc
jomcarvajal 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
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,91 @@ | ||
| <style> | ||
| :root { | ||
| --btn-bg: #f3f4f6; | ||
| --btn-text: #374151; | ||
| --btn-border: #d1d5db; | ||
| --btn-hover-bg: #e5e7eb; | ||
| --btn-hover-text: #111827; | ||
| --btn-active-bg: #d1d5db; | ||
| } | ||
|
|
||
| html.dark { | ||
| --btn-bg: #1f2937; | ||
| --btn-text: #e5e7eb; | ||
| --btn-border: #4b5563; | ||
| --btn-hover-bg: #374151; | ||
| --btn-hover-text: #f9fafb; | ||
| --btn-active-bg: #4b5563; | ||
| } | ||
|
|
||
| .copy-btn { | ||
| display: inline-flex; | ||
| align-items: center; | ||
| gap: 0.5em; | ||
| background: var(--btn-bg); | ||
| color: var(--btn-text); | ||
| border: 1px solid var(--btn-border); | ||
| border-radius: 6px; | ||
| padding: 0.35em 0.9em; | ||
| font-size: 0.95em; | ||
| font-weight: 500; | ||
| cursor: pointer; | ||
| transition: background 0.2s, color 0.2s, border 0.2s; | ||
| margin-bottom: 0.2em; | ||
| text-decoration: none; | ||
| } | ||
|
|
||
| .copy-btn:hover { | ||
| background: var(--btn-hover-bg); | ||
| color: var(--btn-hover-text); | ||
| } | ||
|
|
||
| .copy-btn:active { | ||
| background: var(--btn-active-bg); | ||
| } | ||
|
|
||
| .copied-msg { | ||
| display: none; | ||
| color: #22c55e; | ||
| font-weight: bold; | ||
| margin-left: 10px; | ||
| font-size: 1em; | ||
| } | ||
| .tsv-table-visual { | ||
| width: 100%; | ||
| border-collapse: collapse; | ||
| margin-bottom: 0.5em; | ||
| font-family: 'Fira Mono', 'Menlo', 'Monaco', 'Consolas', monospace; | ||
| font-size: 1em; | ||
| background: transparent; | ||
| } | ||
| .tsv-table-visual th, .tsv-table-visual td { | ||
| border: 1px solid #e5e7eb; | ||
| padding: 6px 10px; | ||
| background: transparent; | ||
| } | ||
| .tsv-table-visual th { | ||
| background: #f3f4f6; | ||
| font-weight: bold; | ||
| } | ||
| </style> | ||
| {{ $id := .Get "id" | default (now.UnixNano) }} | ||
| {{ $tsv := .Inner | safeHTML }} | ||
| <br> | ||
| <button class="copy-btn" onclick="navigator.clipboard.writeText(document.getElementById('tsv-{{ $id }}').innerText);const msg=document.getElementById('copied-msg-{{ $id }}');msg.style.display='inline';setTimeout(function(){msg.style.display='none';},1500);"> | ||
| 📋 {{ .Get "label" | default "Copy table" }} | ||
| </button> | ||
| <span id="copied-msg-{{ $id }}" class="copied-msg">Copied!</span> | ||
| {{/* Render visual table for user, but keep <pre> for copy-paste */}} | ||
| {{ $lines := split $tsv "\n" }} | ||
| <table class="tsv-table-visual"> | ||
| {{ range $i, $line := $lines }} | ||
| {{ if ne (len (trim $line " ")) 0 }} | ||
| <tr> | ||
| {{ range (split $line "\t") }} | ||
| {{ if eq $i 0 }}<th>{{ . }}</th>{{ else }}<td>{{ . }}</td>{{ end }} | ||
| {{ end }} | ||
| </tr> | ||
| {{ end }} | ||
| {{ end }} | ||
| </table> | ||
| <pre id="tsv-{{ $id }}" style="display:none;">{{ $tsv }}</pre> | ||
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.