Skip to content

transition from pills to badges - #166

Closed
simonpcouch wants to merge 10 commits into
mainfrom
dots-149
Closed

transition from pills to badges#166
simonpcouch wants to merge 10 commits into
mainfrom
dots-149

Conversation

@simonpcouch

Copy link
Copy Markdown
Collaborator

Closes #149 (and closes #148 as wontfix). Transitions from pills (and footnote syntax for cited responses) to a small badge. Green > Blue > Yellow, as a little icon rather than dot for accessibility. For the first second or so, the badge pulses.

Screenshot 2026-08-25 at 12 29 33 PM

@github-actions

Copy link
Copy Markdown

Preview deployed to Connect (dogfood.team.pct.posit.it): https://dogfood.team.pct.posit.it/connect/#/apps/d7a36cae-8f27-448b-a478-61b81fbe3942/draft/364623

Deployed from commit 84ae179.

@github-actions

Copy link
Copy Markdown

Preview deployed to Connect (connect.staging.pct.posit.it): https://connect.staging.pct.posit.it/connect/#/apps/ad662e1b-5048-4acc-9ad7-f9478c92274e/draft/2210

Deployed from commit 84ae179.

cpsievert added a commit that referenced this pull request Aug 27, 2026
Drops this branch's redrawn caution triangle in favor of the original
yellow circle with the white exclamation glyph, matching what #166
proposes, so the two PRs differ only in mechanism, not artwork.
cpsievert added a commit that referenced this pull request Aug 27, 2026
An alternative to #166 built on shinychat's aside rendering; closes #148,
closes #149.

- Citations drop display="compact" and render as labeled identity
  asides: shinychat accumulates same-paragraph citations into one marker
  with a +N overflow and a carousel popover, instead of commons styling
  numbered markers itself.
- Verified/Untrusted/citation markers render as bare icons (the label
  stays in the DOM for aria), with tone supplied only through shinychat's
  public --shiny-chat-aside-marker-* variables, so its own hover, focus,
  and expanded states keep working. Grouped markers get a stadium shape;
  bare icons stay circular.
- Adopts #166's artwork: the warning icon's white glyph on a caution
  triangle (the familiar-signs idea from #149), and its quote-mark
  citation glyph (recolored slate, reframed for bare rendering). The
  aside's icon attribute carries the per-kind icon, so the popover title
  row shows it; the pill paints the uniform quote mark over it via CSS
  (a marked TRIAL block, deleted if shinychat gains a popover-icon
  attribute).
- Provenance markers keep a one-shot pulse, disabled under
  prefers-reduced-motion.
cpsievert added a commit that referenced this pull request Aug 27, 2026
The bare slate quote glyph read as punctuation inline and broke the
family's filled-sign-plus-white-glyph convention (shield, triangle).
The citation marker is now Bootstrap Icons' quote glyph (MIT) in
white on a mid-navy (#2e4a6b) rounded-square tile; the Untrusted
triangle likewise adopts exclamation-triangle-fill, padded to a
common viewBox. Plain paths throughout — no runtime font dependency,
unlike #166's <text>-based citation mark. The Verified shield keeps
its existing artwork. Pill tones move from slate to matching navy.
Also drops the orphaned untrusted-icon.svg.
cpsievert added a commit that referenced this pull request Aug 27, 2026
Drops this branch's redrawn caution triangle in favor of the original
yellow circle with the white exclamation glyph, matching what #166
proposes, so the two PRs differ only in mechanism, not artwork.
cpsievert added a commit that referenced this pull request Aug 27, 2026
An alternative to #166 built on shinychat's aside rendering; closes #148,
closes #149.

- Citations drop display="compact" and render as labeled identity
  asides: shinychat accumulates same-paragraph citations into one marker
  with a +N overflow and a carousel popover, instead of commons styling
  numbered markers itself.
- Verified/Untrusted/citation markers render as bare icons (the label
  stays in the DOM for aria), with tone supplied only through shinychat's
  public --shiny-chat-aside-marker-* variables, so its own hover, focus,
  and expanded states keep working. Grouped markers get a stadium shape;
  bare icons stay circular.
- Adopts #166's artwork: the warning icon's white glyph on a caution
  triangle (the familiar-signs idea from #149), and its quote-mark
  citation glyph (recolored slate, reframed for bare rendering). The
  aside's icon attribute carries the per-kind icon, so the popover title
  row shows it; the pill paints the uniform quote mark over it via CSS
  (a marked TRIAL block, deleted if shinychat gains a popover-icon
  attribute).
- Provenance markers keep a one-shot pulse, disabled under
  prefers-reduced-motion.
cpsievert added a commit that referenced this pull request Aug 27, 2026
The bare slate quote glyph read as punctuation inline and broke the
family's filled-sign-plus-white-glyph convention (shield, triangle).
The citation marker is now Bootstrap Icons' quote glyph (MIT) in
white on a mid-navy (#2e4a6b) rounded-square tile; the Untrusted
triangle likewise adopts exclamation-triangle-fill, padded to a
common viewBox. Plain paths throughout — no runtime font dependency,
unlike #166's <text>-based citation mark. The Verified shield keeps
its existing artwork. Pill tones move from slate to matching navy.
Also drops the orphaned untrusted-icon.svg.
cpsievert added a commit that referenced this pull request Aug 27, 2026
Drops this branch's redrawn caution triangle in favor of the original
yellow circle with the white exclamation glyph, matching what #166
proposes, so the two PRs differ only in mechanism, not artwork.
@simonpcouch

Copy link
Copy Markdown
Collaborator Author

Closing in favor of #180.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

consider switching to little superscript dots for Verified/Untrusted consider switching to the default shinychat citation UI

1 participant