new calendar component
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- javascript, sql
Direzione di ricerca
Start by comparing sqlpage/templates/chart.handlebars and map.handlebars, then read sqlpage/apexcharts.js and the chart/map component migrations for existing patterns. The proposal also points to the timeline component for color handling and the dynamic component for JSON loading. Done means implementing and integrating the calendar template and JavaScript, registering and documenting its properties, and adding the proposed tests and examples.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
SQLPage Calendar Component - Technical Design Document
Overview
The Calendar component will allow users to visualize and interact with time-based data in a familiar calendar interface. This document outlines the technical design and implementation strategy.
Component Properties
Top-Level Properties
-
title (optional)
- Text displayed above calendar
- Similar to chart/map components' title implementation
-
initial_view (optional)
- Controls initial calendar display format
- Options: "month", "week", "day"
- Defaults to "month"
-
height (optional)
- Sets fixed calendar height in pixels
- Similar to chart component's height property
- Defaults to auto-height
-
json_url (optional)
- Enables dynamic event loading
- Points to SQLPage JSON endpoint
- Similar to dynamic component's implementation
-
navigation (optional, boolean)
- Enables/disables date navigation controls
- Defaults to true
-
today (optional, boolean)
- Shows/hides "Today" button
- Defaults to true
Row-Level Properties
-
title (required)
- Event title text
- Displayed in calendar cells
-
start (required)
- Event start time
- Supports both date and datetime
-
end (optional)
- Event end time
- Defaults to start time for single-day events
-
color (optional)
- Event visual styling
- Uses SQLPage color system (like chart/timeline components)
-
url (optional)
- Click destination
- Similar to list component's link property
-
description and description_md (optional)
- Event details
- Shown in tooltip/popup
-
all_day (optional, boolean)
- Indicates full-day events
- Affects visual display
Technical Implementation Details
File Structure
Look at these existing files for reference patterns:
sqlpage/templates/chart.handlebars- For component template structuresqlpage/apexcharts.js- For JavaScript initialization patternsexamples/official-site/sqlpage/migrations/- For component documentation
Required Changes
- Component Registration
- Location:
examples/official-site/sqlpage/migrations/ - New file:
XX_calendar.sql(XX = next number in sequence) - Purpose: Register component and document properties
- Reference: See how chart/map components are documented
- Template Creation
- Location:
sqlpage/templates/ - New file:
calendar.handlebars - Structure:
- Card wrapper (like map component)
- Title section
- Calendar container
- Data embedding section
- Reference: Study
map.handlebarsfor structure
- JavaScript Integration
- Location:
sqlpage/ - New file:
calendar.js - Key sections:
- Initialization function
- Event handling
- View management
- Data processing
- Reference: Study
apexcharts.jsinitialization patterns
Integration Points
- JSON API Integration
- Uses existing JSON component
- Enables dynamic event loading
- Reference: Study dynamic component implementation
- SQLPage Core Integration
- Component registration
- Reference: Study how chart component is integrated
- Color System Integration
- Uses existing SQLPage color system
- Reference: Study timeline component's color handling
Testing Strategy
- Unit Tests
- Test date handling
- Validate property processing
- Integration Tests
- Add a spec file to the end to end tests
Documentation
- Component Documentation
- Usage examples
- Property descriptions
- Common patterns
- Location:
examples/official-site/sqlpage/migrations/XXX-calendar.sql
- Example Application
- Basic calendar
- Dynamic calendar
- Multi-calendar view
- Location: Create new directory in
examples/
- Lingua principale
- Rust
- Stelle
- 2.6k
- Fork
- 175
- Merge medio
- 14h 16m
- PR unite (30g)
- 43
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di sqlpage/SQLPage
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
sqlpage/SQLPage#1218 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
There is no convenient way to reproduce issuesForse già presa @81reap l’ha presa 26 giorni fa. Apertaenhancement
sqlpage/SQLPage#1566 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Confusing sort interfaceForse già presa @lovasoa l’ha presa 74 giorni fa. Apertabug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 20/100
sqlpage/SQLPage#1442 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Mutation Testing Results :: Dead Code + Missing TestsForse di nuovo libera @81reap l’ha presa 61 giorni fa e non c’è nessuna pull request aperta. Aperta
sqlpage/SQLPage#1396 · 5 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di sqlpage/SQLPage
Issue simili
-
CI/CD ignore-for-release
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
eclipse-ankaios/ankaios#844 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
std: `SliceIndex<str>` missing for `std::ops` ranges, so generic `R: SliceIndex<str>` bounds failAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
symposium-dev/symposium#530 ·
I maintainer di solito rispondono entro 5 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno