Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
c580ec2
Document recovered baseline and private continuation provenance
marcus Nov 6, 2026
e4c93c9
Identify private continuation without replacing upstream credits
marcus Nov 6, 2026
f8e1d06
Install raster conversion dependency for background integration tests
marcus Nov 6, 2026
d37441d
Provide Qt Controls modules for synthetic picker UI checks
marcus Nov 6, 2026
625213f
Provide ffmpeg for synthetic animated-sticker conversion checks
marcus Nov 6, 2026
bede6c6
Add searchable emoji picker and guarded custom reactions
marcus Nov 6, 2026
7fdd7d8
Define first private Messages-style build and extend CI checks
marcus Nov 6, 2026
d0f4cb7
Expose running build version for deployment verification
marcus Nov 6, 2026
9f02b84
Render native sticker associations with transparent animated media
marcus Nov 6, 2026
0cdff67
Refine conversation layout and add private local backgrounds
marcus Nov 6, 2026
46496bd
Refresh private build usage links and typography documentation
marcus Nov 6, 2026
b70dbed
Explain sticker render limits and static animation fallback
marcus Nov 6, 2026
5520e32
Keep local development scratch out of source commits
marcus Nov 6, 2026
c236ab8
Strip generated PNG metadata and expose static sticker previews
marcus Nov 6, 2026
c38ce37
Decode looping APNG from private seekable input on FFmpeg 6
marcus Nov 6, 2026
29e3b88
Install WebP image plugin for Qt sticker playback in CI
marcus Nov 6, 2026
8450f95
Polish favorites grid and preserve composer emoji selection
marcus Nov 6, 2026
e1c29c7
Run composer keyboard regression and prepare audio UI dependencies
marcus Nov 6, 2026
4bf93a8
Add glass controls and scoped inline audio playback
marcus Nov 6, 2026
87fb6b6
Keep animated stickers compatible with Qt 6.4
marcus Nov 6, 2026
67c96e5
Play voice messages inline with measured waveforms and seeking
marcus Nov 6, 2026
eca3656
Verify glass and audio integration with bounded headless CI
marcus Nov 6, 2026
c17f893
Report failed automatic audio fetches after explicit play
marcus Nov 6, 2026
7948b3c
Check Qt media runtime dependencies during setup
marcus Nov 6, 2026
93f9e44
Move New Message into the conversation header and align composer cont…
marcus Nov 6, 2026
e918ae6
Document private installation and inline audio dependencies
marcus Nov 6, 2026
b54836c
Distinguish native sticker reactions from placed decorations
marcus Nov 6, 2026
7a5f95c
Document sticker reaction presentation metadata
marcus Nov 6, 2026
d01a1e4
Record public glyph feasibility and unverified sending boundary
marcus Nov 6, 2026
c2ebaa8
Select exact native emoji reactions on macOS 27
marcus Nov 6, 2026
6afbfc8
Keep reaction pending-state checks on shared badges
marcus Nov 6, 2026
d95c042
Name the app window Messages and preserve desktop launch matching
marcus Nov 6, 2026
0cf9ea4
Keep focus detection safe before compositor metadata arrives
marcus Nov 6, 2026
dd6d065
Render round thought-bubble reactions and polish conversation menu
marcus Nov 6, 2026
4265f01
Document the final Messages build and verify new menu and badges in CI
marcus Nov 6, 2026
55ab272
Avoid slow Azure package mirror on hosted CI runners
marcus Nov 6, 2026
145aa14
Reveal message times with a sideways swipe; tidy the fork
marcus Nov 6, 2026
927307f
React to any message on macOS 27; float notices over the view
marcus Nov 7, 2026
25758b2
Stop the notice test depending on the font's line height
marcus Nov 7, 2026
68de47f
Stop reaching for the vanished upstream account
marcus Nov 7, 2026
94d5331
Center the new-message button in the conversation header
marcus Nov 7, 2026
dc52313
Show Delivered and keep the transcript still as a status changes
marcus Nov 7, 2026
0639a95
Keep delivery state when a self-thread folds its two rows
marcus Nov 7, 2026
08c9390
Test the new delivery field on the Mac tool
marcus Nov 7, 2026
21b2bbe
Send native replies to text and pictures
marcus Nov 7, 2026
20a581b
Record replies' known limits and probing traps
marcus Nov 7, 2026
968e767
Merge upstream nixfred/blip main (2026-11-09)
marcus Nov 9, 2026
677d8e3
Offer Mark All as Read in the conversation menu
marcus Nov 9, 2026
fd55535
Point at nixfred/blip again now the account is back
marcus Nov 9, 2026
4fc150d
Present the fork as a proposed 2.7.0, not a private continuation
marcus Nov 9, 2026
6754b84
Refresh demo screenshots; add the conversation menu
marcus Nov 9, 2026
ee644c9
Keep upstream's notes, post drafts and review tooling
marcus Nov 9, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 36 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,55 @@ on:
pull_request:
push:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: local background raster conversion
run: |
# Some hosted runners reach the Azure mirror at only tens of KB/s.
# Use Ubuntu's main mirror, with the same signed package indexes.
for source in /etc/apt/sources.list /etc/apt/sources.list.d/*.sources /etc/apt/sources.list.d/*.list; do
if [ -f "$source" ]; then
sudo sed -i 's|http://azure.archive.ubuntu.com|https://archive.ubuntu.com|g' "$source"
fi
done
sudo apt-get -o Acquire::Retries=2 -o Acquire::http::Timeout=20 -o Acquire::https::Timeout=20 update -qq
sudo apt-get -o Acquire::Retries=2 -o Acquire::http::Timeout=20 -o Acquire::https::Timeout=20 install -y -q imagemagick ffmpeg
- name: unit tests (collector, thread, tier2, ui invariants)
run: bun test
- name: QML badge regression (synthetic data, no desktop needed)
run: |
sudo apt-get update -qq
sudo apt-get install -y -q qt6-declarative-dev-tools qml6-module-qttest qml6-module-qtquick qml6-module-qtquick-window qml6-module-qtqml-workerscript
sudo apt-get -o Acquire::Retries=2 -o Acquire::http::Timeout=20 -o Acquire::https::Timeout=20 update -qq
sudo apt-get -o Acquire::Retries=2 -o Acquire::http::Timeout=20 -o Acquire::https::Timeout=20 install -y -q qt6-declarative-dev-tools qml6-module-qttest qml6-module-qtquick qml6-module-qtquick-window qml6-module-qtqml-workerscript qml6-module-qtquick-controls qml6-module-qtquick-templates qml6-module-qtquick-layouts qt6-image-formats-plugins qml6-module-qtmultimedia pulseaudio pulseaudio-utils
pulseaudio --start --exit-idle-time=-1
pactl load-module module-null-sink sink_name=blip_test >/dev/null
pactl set-default-sink blip_test
python3 scripts/test-read-ui.py
python3 scripts/test-reaction-ui.py
python3 scripts/test-reaction-badge-ui.py
python3 scripts/test-background-ui.py
python3 scripts/test-composer-emoji-ui.py
python3 scripts/test-sticker-ui.py
python3 scripts/test-audio-ui.py
python3 scripts/test-audio-session-ui.py
python3 scripts/test-conversation-menu-ui.py
python3 scripts/test-time-reveal-ui.py
python3 scripts/test-notice-ui.py
- name: OTP desktop adapter (no desktop needed)
run: |
python3 -m py_compile otp-desktop.py
python3 test_otp_desktop.py
- name: Mac tools compile (python3 syntax, no macOS needed)
run: python3 -m py_compile bridge/linux/blip-bridged bridge/mac/imsg bridge/mac/imsg-send bridge/mac/contacts bridge/mac/tcc-check bridge/mac/blip-check bridge/mac/blip-dispatch bridge/mac/imsg-read bridge/mac/imsg-react bridge/mac/calling_codes.py bridge/mac/contact-save bridge/mac/read_state.py bridge/mac/findmy_city.py
run: python3 -m py_compile bridge/linux/blip-bridged bridge/mac/imsg bridge/mac/imsg-send bridge/mac/contacts bridge/mac/tcc-check bridge/mac/blip-check bridge/mac/imsg-reply bridge/mac/blip-dispatch bridge/mac/imsg-read bridge/mac/imsg-react bridge/mac/calling_codes.py bridge/mac/contact-save bridge/mac/read_state.py bridge/mac/findmy_city.py
- name: shared city (synthetic AX and Contacts, no macOS needed)
run: python3 bridge/mac/test_findmy_city.py
- name: read pushes require verified completion (no macOS needed)
Expand All @@ -40,6 +68,8 @@ jobs:
run: python3 bridge/mac/test_unsent.py
- name: a voice message gets its MIME from the UTI (no macOS needed)
run: python3 bridge/mac/test_attachment_mime.py
- name: sticker metadata and association folding (synthetic SQLite)
run: python3 bridge/mac/test_stickers.py
- name: a waiting Send Later is flagged, never "sent" (no macOS needed)
run: python3 bridge/mac/test_scheduled.py
- name: conversation cluster pins (no macOS needed)
Expand All @@ -50,6 +80,8 @@ jobs:
run: python3 bridge/mac/test_read.py
- name: tapbacks are verified by chat.db, pressed once and never mid-scroll (no macOS needed)
run: python3 bridge/mac/test_react.py
- name: native replies refuse what is unproven and are confirmed by chat.db (no macOS needed)
run: python3 bridge/mac/test_reply.py
- name: hide Spam / unknown senders (no macOS needed)
run: python3 bridge/mac/test_filtered.py
- name: contact review across sources (no macOS needed)
Expand All @@ -71,5 +103,5 @@ jobs:
- name: shell scripts (bash -n + shellcheck)
run: |
bash -n bridge/linux/blip-shim scripts/blip-setup scripts/sync-bridge.sh scripts/demo/blip-shots bridge/mac/install.sh
sudo apt-get install -y -q shellcheck >/dev/null
sudo apt-get -o Acquire::Retries=2 -o Acquire::http::Timeout=20 -o Acquire::https::Timeout=20 install -y -q shellcheck >/dev/null
shellcheck -S warning bridge/linux/blip-shim scripts/blip-setup scripts/sync-bridge.sh bridge/mac/install.sh
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
node_modules/
*.log
__pycache__/
!CHANGE.log

# Local development scratch and private test-session artifacts.
/work/
5 changes: 1 addition & 4 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,7 @@ attempts trigger prompts on the Mac's screen.
## Deploying a change locally

```sh
bun test
cp -r *.qml *.ts *.mjs otp-desktop.py manifest.json icons ~/.config/omarchy/plugins/nixfred.blip/
omarchy-restart-shell # NOT a hot-reload: IPC would stay on the old instance
qs -p /usr/share/omarchy/shell ipc call nixfred.blip status
scripts/deploy-local # tests, backup, fast-forward the plugin to HEAD, restart, status
```

Mac-side tool changes: `scp bridge/mac/<tool> you@your-mac:~/.blip/bin/`.
Expand Down
167 changes: 167 additions & 0 deletions AudioMessage.qml
Original file line number Diff line number Diff line change
@@ -0,0 +1,167 @@
import QtQuick
import QtQuick.Controls
import QtMultimedia
import "AudioWaveform.mjs" as AudioWaveform

// One parent-owned playing intent selects the active voice message. Each
// item retains its paused position; a conversation reset stops it entirely.
Rectangle {
id: root
property url source: ""
property var waveform: []
property real durationMs: 0
property bool playing: false
property bool loading: false
property bool failed: false
property int resetToken: 0
property bool muted: false
property bool mine: false
property color fillColor: mine ? "#0a84ff" : "#34343a"
property color textColor: "white"
property string fontFamily: "sans-serif"
property int fontSize: 12
readonly property var bars: AudioWaveform.fitWaveform(waveform, Math.max(1, width - 80))
readonly property real positionMs: player.position
readonly property real totalDurationMs: player.duration > 0 ? player.duration : durationMs
readonly property real progress: AudioWaveform.playbackFraction(positionMs, totalDurationMs)
readonly property bool actuallyPlaying: player.playbackState === MediaPlayer.PlayingState
readonly property bool ready: player.mediaStatus === MediaPlayer.LoadedMedia || player.mediaStatus === MediaPlayer.BufferedMedia || player.mediaStatus === MediaPlayer.EndOfMedia
readonly property bool seekable: player.seekable
readonly property bool decodeFailed: player.error !== MediaPlayer.NoError
readonly property bool controlsFocused: playButton.activeFocus || timeline.activeFocus
signal toggleRequested()
signal playbackEnded()
signal playbackFailed()
signal contextRequested()

implicitWidth: 268
implicitHeight: 68
radius: 18
color: fillColor
onPlayingChanged: {
if (playing && String(source) !== "") {
if (player.mediaStatus === MediaPlayer.EndOfMedia) player.position = 0
player.play()
} else player.pause()
}
onResetTokenChanged: player.stop()
Component.onDestruction: player.stop()

MediaPlayer {
id: player
source: root.source
audioOutput: AudioOutput { muted: root.muted }
onMediaStatusChanged: {
if (mediaStatus === MediaPlayer.LoadedMedia && root.playing) play()
else if (mediaStatus === MediaPlayer.EndOfMedia) root.playbackEnded()
}
onErrorOccurred: root.playbackFailed()
}

Item {
id: playButton
x: 10; y: (root.height - height) / 2
width: 38; height: 38
activeFocusOnTab: true
Accessible.role: Accessible.Button
Accessible.name: root.loading ? "Loading audio message" : root.failed || root.decodeFailed ? "Retry audio message" : root.playing ? "Pause audio message" : "Play audio message"
Accessible.description: AudioWaveform.durationLabel(root.totalDurationMs)
Accessible.onPressAction: root.toggleRequested()
Rectangle { anchors.fill: parent; radius: width / 2; color: root.textColor; opacity: playButton.activeFocus ? 0.22 : 0.13 }
// Draw playback symbols geometrically, independent of emoji/font glyphs.
Canvas {
id: playSymbol
anchors.centerIn: parent; width: 20; height: 22
visible: !root.playing
onPaint: {
var c = getContext("2d")
c.reset(); c.fillStyle = root.textColor
c.beginPath(); c.moveTo(5, 3); c.lineTo(18, 11); c.lineTo(5, 19); c.closePath(); c.fill()
}
Connections { target: root; function onTextColorChanged() { playSymbol.requestPaint() } }
}
Row {
anchors.centerIn: parent; spacing: 4; visible: root.playing
Rectangle { width: 4; height: 17; radius: 1; color: root.textColor }
Rectangle { width: 4; height: 17; radius: 1; color: root.textColor }
}
TapHandler { onTapped: root.toggleRequested() }
HoverHandler { cursorShape: Qt.PointingHandCursor }
Keys.onSpacePressed: root.toggleRequested()
Keys.onReturnPressed: root.toggleRequested()
Keys.onEnterPressed: root.toggleRequested()
}

Slider {
id: timeline
objectName: "audioTimeline"
x: 58; y: 10
width: Math.max(24, root.width - x - 14); height: 30
from: 0; to: Math.max(1, root.totalDurationMs)
value: root.positionMs
stepSize: 1000
enabled: root.seekable && !root.loading && !root.decodeFailed
activeFocusOnTab: enabled
Accessible.name: "Audio message position"
Accessible.description: (root.bars.length === 0 ? "Waveform unavailable. " : "")
+ AudioWaveform.durationLabel(root.positionMs) + " of " + AudioWaveform.durationLabel(root.totalDurationMs)
onMoved: player.position = Math.round(value)
background: Item {
x: timeline.leftPadding; y: timeline.topPadding
width: timeline.availableWidth; height: timeline.availableHeight
Row {
anchors.fill: parent
spacing: root.bars.length > 1 ? 2 : 0
Repeater {
model: root.bars
delegate: Rectangle {
required property int index
required property real modelData
width: Math.max(1, (timeline.availableWidth - Math.max(0, root.bars.length - 1) * 2) / Math.max(1, root.bars.length))
height: Math.max(3, modelData * timeline.availableHeight)
y: (timeline.availableHeight - height) / 2
radius: 1.5
color: root.textColor
opacity: (index + 0.5) / root.bars.length <= root.progress ? 1 : 0.38
}
}
}
Rectangle {
visible: root.bars.length === 0
anchors.verticalCenter: parent.verticalCenter
width: parent.width; height: 3; radius: 1.5
color: root.textColor; opacity: 0.3
}
Rectangle {
visible: root.bars.length === 0
anchors.verticalCenter: parent.verticalCenter
width: parent.width * root.progress; height: 3; radius: 1.5
color: root.textColor
}
}
handle: Rectangle {
x: timeline.leftPadding + timeline.visualPosition * Math.max(0, timeline.availableWidth - width)
y: timeline.topPadding - 1
width: 2; height: timeline.availableHeight + 2; radius: 1
visible: timeline.pressed || timeline.activeFocus
color: root.textColor
}
Keys.onLeftPressed: player.position = Math.max(0, player.position - 5000)
Keys.onRightPressed: player.position = Math.min(root.totalDurationMs, player.position + 5000)
Keys.onSpacePressed: root.toggleRequested()
Keys.onReturnPressed: root.toggleRequested()
Keys.onEnterPressed: root.toggleRequested()
}
Text {
x: timeline.x + 4; y: 42
width: timeline.width - 8
text: root.loading ? "Loading…" : root.failed || root.decodeFailed ? "Audio unavailable · retry"
: root.totalDurationMs > 0 ? AudioWaveform.durationLabel(Math.max(0, root.totalDurationMs - root.positionMs)) : "Audio message"
textFormat: Text.PlainText
color: root.textColor
opacity: 0.88
font.family: root.fontFamily
font.pixelSize: root.fontSize
}
TapHandler { acceptedButtons: Qt.RightButton; onTapped: root.contextRequested() }
}
72 changes: 72 additions & 0 deletions AudioWaveform.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
// audio-waveform.ts
var AUDIO_WAVEFORM_BARS = 64;
var AUDIO_SAMPLE_RATE = 4000;
var AUDIO_ANALYSIS_SECONDS = 600;
function normalizeWaveform(value) {
if (!Array.isArray(value) || value.length > 96)
return [];
return value.map((v) => typeof v === "number" && Number.isFinite(v) ? Math.max(0, Math.min(1, v)) : 0);
}
function fitWaveform(value, width) {
const input = normalizeWaveform(value);
if (!input.length || !Number.isFinite(width) || width <= 0)
return [];
const count = Math.min(input.length, Math.max(1, Math.floor(width / 4)));
const output = [];
for (let i = 0;i < count; i++) {
let peak = 0;
for (let j = Math.floor(i * input.length / count);j < Math.floor((i + 1) * input.length / count); j++)
peak = Math.max(peak, input[j]);
output.push(peak);
}
return output;
}
function waveformFromPcm16(bytes, count = AUDIO_WAVEFORM_BARS) {
const samples = Math.floor(bytes.length / 2);
if (!samples || bytes.length > AUDIO_SAMPLE_RATE * AUDIO_ANALYSIS_SECONDS * 2 || !Number.isInteger(count) || count < 1 || count > 96)
return [];
count = Math.min(count, samples);
const bins = [];
let largest = 0;
for (let bin = 0;bin < count; bin++) {
const first = Math.floor(bin * samples / count), last = Math.floor((bin + 1) * samples / count);
let sum = 0;
for (let i = first;i < last; i++) {
const unsigned = bytes[2 * i] | bytes[2 * i + 1] << 8;
const sample = unsigned >= 32768 ? unsigned - 65536 : unsigned;
sum += sample * sample;
}
const rms = Math.sqrt(sum / (last - first));
bins.push(rms);
largest = Math.max(largest, rms);
}
return largest === 0 ? bins : bins.map((v) => Math.round(Math.sqrt(v / largest) * 1000) / 1000);
}
function durationLabel(milliseconds) {
if (!Number.isFinite(milliseconds) || milliseconds < 0)
return "0:00";
const seconds = Math.floor(Math.min(milliseconds, 86400000) / 1000);
const minutes = Math.floor(seconds / 60), remainder = seconds % 60;
return String(minutes) + ":" + (remainder < 10 ? "0" : "") + String(remainder);
}
function playbackFraction(positionMs, durationMs) {
if (!Number.isFinite(positionMs) || !Number.isFinite(durationMs) || durationMs <= 0)
return 0;
return Math.max(0, Math.min(1, positionMs / durationMs));
}
function seekPosition(fraction, durationMs) {
if (!Number.isFinite(fraction) || !Number.isFinite(durationMs) || durationMs <= 0)
return 0;
return Math.round(Math.max(0, Math.min(1, fraction)) * durationMs);
}
export {
AUDIO_ANALYSIS_SECONDS,
AUDIO_SAMPLE_RATE,
AUDIO_WAVEFORM_BARS,
durationLabel,
fitWaveform,
normalizeWaveform,
playbackFraction,
seekPosition,
waveformFromPcm16
};
Loading
Loading