# scgrs/uyap-hizli-giris-ve-duyuru-kapatma architecture

> Architecture diagram of the GitHub repository scgrs/uyap-hizli-giris-ve-duyuru-kapatma, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/scgrs/uyap-hizli-giris-ve-duyuru-kapatma
- Repository: https://github.com/scgrs/uyap-hizli-giris-ve-duyuru-kapatma

## Overview

UYAP Hızlı Giriş ve Duyuru Kapatma is a Chrome extension that automates selected tasks on the UYAP Avukat Portal. The main workflow is: the content script scans supported portal pages, closes announcements and performs enabled page actions, then reports closed announcements to the background service worker. The worker keeps session-only logs and badge state, updates the toolbar, and can play a sound through an offscreen document. The popup configures features and displays logs; the welcome page guides first-time users. The README documents these capabilities; the graph’s implementation links are limited to relationships visible in the supplied excerpts.

Main entry points: [`background.js`](https://github.com/scgrs/uyap-hizli-giris-ve-duyuru-kapatma/blob/main/background.js) (Background service), [`content.js`](https://github.com/scgrs/uyap-hizli-giris-ve-duyuru-kapatma/blob/main/content.js) (Page scanner), [`popup.js`](https://github.com/scgrs/uyap-hizli-giris-ve-duyuru-kapatma/blob/main/popup.js) (Settings and logs), [`welcome.js`](https://github.com/scgrs/uyap-hizli-giris-ve-duyuru-kapatma/blob/main/welcome.js) (Welcome guidance)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_portal["Portal automation"]
  node_content["Page scanner<br/>[content.js]"]
  node_announcements["Announcement closing<br/>[content.js]"]
  node_quicklogin["Quick login<br/>[content.js]"]
  node_menu["Menu hiding<br/>[content.js]"]
end

subgraph group_runtime["Extension runtime"]
  node_worker["Background service<br/>[background.js]"]
  node_sound["Background sound<br/>[offscreen.js]"]
end

subgraph group_interface["User interface"]
  node_popup["Settings and logs<br/>[popup.js]"]
  node_welcome["Welcome guidance<br/>[welcome.js]"]
end

subgraph group_state["Settings and session state"]
  node_local[("Persistent settings")]
  node_session[("Session logs and counts")]
end

node_user(("User"))
node_uyap["UYAP portal"]
node_chrome["Chrome extension APIs"]

node_uyap -->|"hosts script"| node_content
node_content -->|"scans and closes"| node_announcements
node_content -->|"clicks and focuses"| node_quicklogin
node_content -->|"collapses menu"| node_menu
node_announcements -->|"reports closure"| node_worker
node_worker -->|"stores logs and counts"| node_session
node_worker -->|"reads and writes settings"| node_local
node_local -->|"notifies changes"| node_content
node_popup -->|"requests state and logs"| node_worker
node_worker -->|"returns state and logs"| node_popup
node_popup -->|"stores theme"| node_local
node_worker -->|"requests beep"| node_sound
node_worker -->|"updates toolbar badge"| node_chrome
node_worker -->|"opens on install"| node_welcome
node_welcome -->|"checks pin status"| node_chrome
node_user -->|"opens controls"| node_popup
node_user -->|"follows guidance"| node_welcome

click node_content "https://github.com/scgrs/uyap-hizli-giris-ve-duyuru-kapatma/blob/main/content.js"
click node_announcements "https://github.com/scgrs/uyap-hizli-giris-ve-duyuru-kapatma/blob/main/content.js"
click node_quicklogin "https://github.com/scgrs/uyap-hizli-giris-ve-duyuru-kapatma/blob/main/content.js"
click node_menu "https://github.com/scgrs/uyap-hizli-giris-ve-duyuru-kapatma/blob/main/content.js"
click node_worker "https://github.com/scgrs/uyap-hizli-giris-ve-duyuru-kapatma/blob/main/background.js"
click node_sound "https://github.com/scgrs/uyap-hizli-giris-ve-duyuru-kapatma/blob/main/offscreen.js"
click node_popup "https://github.com/scgrs/uyap-hizli-giris-ve-duyuru-kapatma/blob/main/popup.js"
click node_welcome "https://github.com/scgrs/uyap-hizli-giris-ve-duyuru-kapatma/blob/main/welcome.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_content,node_announcements,node_quicklogin,node_menu,node_user toneBlue
class node_worker,node_sound toneAmber
class node_popup,node_welcome,node_chrome toneMint
class node_local,node_session toneRose
class node_uyap toneIndigo
```

## Components

### Portal automation

- [Page scanner](https://github.com/scgrs/uyap-hizli-giris-ve-duyuru-kapatma/blob/main/content.js): `content.js`
- [Announcement closing](https://github.com/scgrs/uyap-hizli-giris-ve-duyuru-kapatma/blob/main/content.js): `content.js`
- [Quick login](https://github.com/scgrs/uyap-hizli-giris-ve-duyuru-kapatma/blob/main/content.js): `content.js`
- [Menu hiding](https://github.com/scgrs/uyap-hizli-giris-ve-duyuru-kapatma/blob/main/content.js): `content.js`

### Extension runtime

- [Background service](https://github.com/scgrs/uyap-hizli-giris-ve-duyuru-kapatma/blob/main/background.js): `background.js`
- [Background sound](https://github.com/scgrs/uyap-hizli-giris-ve-duyuru-kapatma/blob/main/offscreen.js): `offscreen.js`

### User interface

- [Settings and logs](https://github.com/scgrs/uyap-hizli-giris-ve-duyuru-kapatma/blob/main/popup.js): `popup.js`
- [Welcome guidance](https://github.com/scgrs/uyap-hizli-giris-ve-duyuru-kapatma/blob/main/welcome.js): `welcome.js`

### Settings and session state

- **Persistent settings**
- **Session logs and counts**

### Other components

- **User**
- **UYAP portal**
- **Chrome extension APIs**

## Connections

- UYAP portal → Page scanner: hosts script (evidence: `README.md`)
- Page scanner → Announcement closing: scans and closes (evidence: `content.js`)
- Page scanner → Quick login: clicks and focuses (evidence: `content.js`)
- Page scanner → Menu hiding: collapses menu (evidence: `content.js`)
- Announcement closing → Background service: reports closure (evidence: `content.js`)
- Background service → Session logs and counts: stores logs and counts (evidence: `background.js`)
- Background service → Persistent settings: reads and writes settings (evidence: `background.js`)
- Persistent settings → Page scanner: notifies changes (evidence: `content.js`)
- Settings and logs → Background service: requests state and logs (evidence: `popup.js`)
- Background service → Settings and logs: returns state and logs (evidence: `background.js`)
- Settings and logs → Persistent settings: stores theme (evidence: `popup.js`)
- Background service → Background sound: requests beep (evidence: `background.js`)
- Background service → Chrome extension APIs: updates toolbar badge (evidence: `background.js`)
- Background service → Welcome guidance: opens on install (evidence: `background.js`)
- Welcome guidance → Chrome extension APIs: checks pin status (evidence: `welcome.js`)
- User → Settings and logs: opens controls (evidence: `README.md`)
- User → Welcome guidance: follows guidance (evidence: `README.md`)
